(xenial+) apt-cache fails to run if a single sources.list.d entry is not readable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
When evaluating:
https:/
On 16.04 and greater, apt-cache fails to run if a single sources.list.d is not readable (by the current user). On Trusty, the behavior was a bit more friendly in that it would run and just not show results from the file that cannot be read.
My expectation is that when run it would warn if any .list file could not be read, but show results for everything it can see.
This terminal interaction shows the problem (trusty and precise behave the same here):
ubuntu@
-rw------- 1 root root 200 Jun 7 18:35 /etc/apt/
ubuntu@
landscape-client:
Installed: (none)
Candidate: 14.12-0ubuntu0.
Version table:
14.
500 http://
100 /var/lib/
12.
500 http://
ubuntu@
landscape-client:
Installed: (none)
Candidate: 14.12-0ubuntu5.
Version table:
14.
500 https:/
14.
500 http://
100 /var/lib/
12.
500 http://
ubuntu@
E: Opening /etc/apt/
E: The list of sources could not be read.
ubuntu@
Status changed to 'Confirmed' because the bug affects multiple users.