Re: [PATCH] FIX: unable to access dpkg status area

Johannes Schauer <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <20110627175233.GA24906@hoothoot>
Hi,

On Mon, Jun 27, 2011 at 01:56:59PM +0200, Geert Stappers wrote:
> There was the error message
>  dpkg: error: unable to access dpkg status area: No such file or directory
> 
> Adding the admin directory to dpkg did fix it, at least for stappers
True, but this is only a workaround and does not address the root cause.
As you will see, as soon as you do: --admindir=/var/lib/dpkg (instead of
--admindir=var/lib/dpkg) you will get that error again.

This is a problem with fakechroot and i reported it together with a
patch here [1]. Read more about the bug there.

Fixing the issue by the suggested workaround is also unacceptable
because this bug does not only affect dpkg but any other binary that
accesses a absolute path and hence triggers this error.

So you have to compile your own fakechroot with the patch I posted or
wait for the bug to be resolved.

cheers, josch

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=611156
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.