[Bug 849736] [NEW] apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

Paul Collins paul.collins at canonical.com
Wed Sep 14 07:02:45 UTC 2011


Public bug reported:

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/sources.list.d is unreadable, apt-cache won't
try to read further files, and it also apparently discards information
from any of the files it did manage to read.  (Assuming it reads them as
it goes — I was only tracing calls to open(2).)

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d are unreadable
+ apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/849736

Title:
  apt-cache policy silently shows inaccurate information when any file
  in /etc/apt/sources.list.d is unreadable

Status in “apt” package in Ubuntu:
  New

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/sources.list.d is unreadable, apt-cache
  won't try to read further files, and it also apparently discards
  information from any of the files it did manage to read.  (Assuming it
  reads them as it goes — I was only tracing calls to open(2).)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/849736/+subscriptions




More information about the foundations-bugs mailing list