[Bug 1701852] Re: (xenial+) apt-cache fails to run if a single sources.list.d entry is not readable
Julian Andres Klode
julian.klode at gmail.com
Thu Aug 24 21:28:32 UTC 2017
Correct changelog:
apt (1.5~beta2) unstable; urgency=medium
[ M. Willis Monroe ]
* Minor grammar fix
[ Zhou Mo ]
* zh_CN.po: update Simplified Chinese programs translation
[ David Kalnischkies ]
* don't expect more downloads from failed transactions
* remove reference to a-t-debtorrent in description
* ignore SIGPIPE in dump solver if forwarding
* support compressed extended_states file for bug triage
* don't move failed pdiff indexes out of partial (Closes: 869425)
* don't try to parse all fields starting with HTTP as status-line
* send weak-only hashes to methods
* fail earlier if server answers with too much data
* fail early in http if server answer is too small as well
* use FileFd to parse all apt configuration files
* show warnings instead of errors if files are unreadable (LP: #1701852)
* reimplement and document auth.conf (Closes: #811181)
* lookup login info for proxies in auth.conf
* allow the auth.conf to be root:root owned
* update URI scheme descriptions in sources.list(5)
* show a warning for Debian shutting down FTP services
* suggest using auth.conf for sources with passwords
* ftparchive: sort discovered filenames before writing indexes.
Thanks to Chris Lamb for initial patch & Stefan Lippers-Hollmann for testing
(Closes: 869557)
* don't keep configuration files open needlessly
* don't hang if multiple sources use unavailable method (Closes: 870675)
[ Beatrice Torracca ]
* Italian manpage translation update (Closes: 858877)
[ Apollon Oikonomopoulos ]
* Handle supported components with slashes in sources.list (Closes: #868127)
[ Julian Andres Klode ]
* Drop cacheiterators.h include
* methods/aptmethod.h: Add missing fileutl.h include
* Reformat and sort all includes with clang-format
* cacheiterators: Warn about direct include and don't include pkgcache.h
* Update gitignore with new files
* Use C++11 threading support instead of pthread
* Always warn if --force-yes is validly specified, not just if used
* Work around float rounding change in gcc 7 on i386
* Handle GCC 7 std::string operator ABI break (Closes: #871275)
* debian: Update symbols for libapt-pkg5.0
[ Paul Wise ]
* Support zero delay for the various APT::Periodic activities
* Support seconds, minutes, hours and days for APT::Periodic intervals
* Switch from /org to /srv in example apt-ftparchive configuration
[ Balint Reczey ]
* Gracefully terminate process when stopping apt-daily-upgrade (LP: #1690980)
[ Dominik ]
* doc: Add '--allow-unauthenticated' to '--force-yes'
-- Julian Andres Klode <jak at debian.org> Thu, 17 Aug 2017 19:28:00 +0200
(sorry, I did not generate the .changes file against 1.5~beta1...).
--
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:
Fix Released
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