[Bug 1701852] Re: (xenial+) apt-cache fails to run if a single sources.list.d entry is not readable

Launchpad Bug Tracker 1701852 at bugs.launchpad.net
Tue Jul 4 12:40:54 UTC 2017


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: apt (Ubuntu)
       Status: New => Confirmed

-- 
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/1701852

Title:
  (xenial+) apt-cache fails to run if a single sources.list.d entry is
  not readable

Status in apt package in Ubuntu:
  Confirmed

Bug description:
  When evaluating:

  https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-
  tools/+bug/1700611

  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 at precise-esm:~$ ll /etc/apt/sources.list.d/staging-ubuntu-esm-precise.list
  -rw------- 1 root root 200 Jun 7 18:35 /etc/apt/sources.list.d/staging-ubuntu-esm-precise.list

  ubuntu at precise-esm:~$ apt-cache policy landscape-client
  landscape-client:
    Installed: (none)
    Candidate: 14.12-0ubuntu0.12.04
    Version table:
       14.12-0ubuntu0.12.04 0
          500 http://br.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       12.04.3-0ubuntu1 0
          500 http://br.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

  ubuntu at precise-esm:~$ sudo apt-cache policy landscape-client
  landscape-client:
    Installed: (none)
    Candidate: 14.12-0ubuntu5.12.04
    Version table:
       14.12-0ubuntu5.12.04 0
          500 https://extended.security.staging.ubuntu.com/ubuntu/ precise/main amd64 Packages
       14.12-0ubuntu0.12.04 0
          500 http://br.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       12.04.3-0ubuntu1 0
          500 http://br.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

  ubuntu at xenial-test:~$ apt-cache search juju
  E: Opening /etc/apt/sources.list.d/juju-ubuntu-stable-xenial.list - ifstream::ifstream (13: Permission denied)
  E: The list of sources could not be read.
  ubuntu at xenial-test:~$

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



More information about the foundations-bugs mailing list