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 > This is with fakeroot 1.16-1, which recently learned about access() > [1]. It does work fine with the previous fakeroot 1.15.1-1 still. > > So it seems apt-cache tries an access() to see whether it can write > /var/cache/apt/pkgcache.bin and then fails to actually do so. > > It's a bit hard to say whether this is a bug in apt, or whether > fakeroot shouldn't claim that access() works when it doesn't. Clint > seems to have anticipated that in [2] already. > > It can be worked around easily enough by running apt-cache under > "env -u LD_PRELOAD". -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org