On Mon, Jun 10, 2002 at 01:02:29AM +0200, Paul Stoeber wrote:
> dpkg refuses to operate ("unable to lock dpkg status database"),
> if the F_SETLK fcntl doesn't work on the filesystem where
> /var/lib/dpkg/lock is located.
>
> That's bad because it's not easy to get F_SETLK to work on NFS.
Works for me. Did you forget to start rpc.lockd?
> I ran into this when trying to install Debian from
> woody_netinst-20020416-powerpc.iso.
I seem to recall having to manually bootstrap stuff from the
installer, because it didn't start rpc.lockd automatically
> It would be nice if the user could at least work around this problem
> from within the shell provided on the installation CD. I don't currently
> see such a workaround, but any one of the following changes to dpkg would
> make it possible:
<snip>
Just use NFS locking. The whole point of fcntl F_SETLK is that it
works over NFS, while flock() does not.
--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : http://www.debian.org/ | Dept. of Computing,
`. `' | Imperial College,
`- -><- | London, UK
Attachment:
pgpUeYnTvzOzq.pgp
Description: PGP signature