apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable
Bug #849736 reported by
Paul Collins
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Version: 0.8.16~exp5ubuntu8
Release: 11.10
I've noticed some odd behaviour from apt-cache policy where it pretends, without protest, that package versions in PPAs don't exist.
The trigger seems to be a newly-added source whose .list file I set up to be only readable by root (it contains authentication information).
When any file in /etc/apt/
summary: |
apt-cache policy silently shows inaccurate information when any file in - /etc/apt/sources.list.d are unreadable + /etc/apt/sources.list.d is unreadable |
Changed in apt (Ubuntu): | |
status: | Triaged → In Progress |
To post a comment you must log in.
Confirmed, sudo is however a workaround:
spindler@ spitfire: /etc/apt/ sources. list.d$ apt-cache policy apache2 2.22-1ubuntu1 0 archive. ubuntu. com/ubuntu/ precise/main i386 Packages spitfire: /etc/apt/ sources. list.d$ sudo apt-cache policy apache2 2.22-1ubuntu1 0 archive. ubuntu. com/ubuntu/ precise/main i386 Packages 2.14-5ubuntu8 0 archive. ubuntu. com/ubuntu/ lucid/main i386 Packages
apache2:
Installed: (none)
Candidate: 2.2.22-1ubuntu1
Version table:
2.
500 http://
spindler@
apache2:
Installed: (none)
Candidate: 2.2.22-1ubuntu1
Version table:
2.
500 http://
2.
500 http://