We made things work better for unreadable files, so I think that's fixed
in cosmic and probably bionic.
** Changed in: apt (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bug
** Changed in: apt (Ubuntu)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/849736
Title:
apt-cache policy silently shows inaccurate information when any file
i
Here is an alternate patch, using _error->Notice instead of
_error->Warning. Using Notice leaves _error->empty false and hence the
apt-get update warning is not printed. For comparison. here the output
of the two patches:
apt-unreadable_sources.patch:
$ apt-cache policy apache2
apache2:
Install
A modified version of the patch, adding "ignore the apt-get update warning
below" to the output. Background is, that if any error is detected during
cachefile.cc pkgCacheFile::BuildCaches, apt will print the warning:
W: You may want to run apt-get update to correct these problems
In the case of a
** Patch removed: "apt-unreadable_sources.patch"
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/849736/+attachment/2794165/+files/apt-unreadable_sources.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchp
The attachment "apt-unreadable_sources.patch" of this bug report has
been identified as being a patch. The ubuntu-reviewers team has been
subscribed to the bug report so that they can review the patch. In the
event that this is in fact not a patch you can resolve this situation by
removing the ta
** Patch removed: "apt-unreadable_sources.patch"
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/849736/+attachment/2794013/+files/apt-unreadable_sources.patch
** Patch added: "apt-unreadable_sources.patch"
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/849736/+attachment/2794165/+f
The attached patch returns a true from pkgSourceList::ReadAppend when
the file is not readable (!F.is_open).
It might be better to change the semantic of ReadAppend to return three
values, like ok, fail, fatal. pkgSourceList::ReadSourceDir could then
check this return value and either continue (on
Probably this method is not working correctly, it seems to return false
whenever a problem with reading and appending a file is encountered
(apt-pkg/sourcelist.cc):
// CNC:2003-03-03 - By Anton V. Denisov .
// SourceList::ReadSourceDir - Read a directory with sources files
// Based on ReadConfigDi
Confirmed, sudo is however a workaround:
spindler@spitfire:/etc/apt/sources.list.d$ apt-cache policy apache2
apache2:
Installed: (none)
Candidate: 2.2.22-1ubuntu1
Version table:
2.2.22-1ubuntu1 0
500 http://archive.ubuntu.com/ubuntu/ precise/main i386 Packages
spindler@spitfire
10 matches
Mail list logo