On Wed, Jun 15, 2011 at 03:22:51PM +0000, Clint Adams wrote:
> On Wed, Jun 15, 2011 at 02:41:01PM +0200, Martin Pitt wrote:
> > I tracked this down to apt-cache now failing to work under fakeroot:
> > 
> > $ fakeroot apt-cache policy coreutils
> > E: Could not open file /var/cache/apt/pkgcache.bin - open (13: Permission 
> > denied)
> > E: Failed to truncate file - ftruncate (9: Bad file descriptor)
> > E: The package lists or status file could not be parsed or opened.
> 
> This isn't relevant to the more general problem, but I have to wonder
> why apt-cache policy would ever need to write
> to /var/cache/apt/pkgcache.bin
If mtime on any index or the list of indexes changed changed, the cache
must be rebuilt (index=Packages list or status file).

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Attachment: pgpgZ0YsQLSpT.pgp
Description: PGP signature

Reply via email to