errors instaling virt-manager on 11.10

Marius Gedminas marius at pov.lt
Thu Dec 13 11:58:22 UTC 2012


Somehow your replies got quoted alongside my questions, which makes the
reply hard to read.  I've tried to untangle the quoting levels.

On Wed, Dec 12, 2012 at 07:09:35PM +0530, Tapas Mishra wrote:
> > On Wed, Dec 12, 2012 at 5:58 PM, Marius Gedminas <marius at pov.lt> wrote:
> > On Wed, Dec 12, 2012 at 02:56:11PM +0530, Tapas Mishra wrote:
> > > Hi,
> > > I am trying to install virt-manager on 11.10 on 64 bit machine
> > >  sudo aptitude install virt-manager
> > >
> > > here is where it stopped the install
> > >
> > > Processing triggers for python-support ...
> > > Errors were encountered while processing:
> > >  libvirt-bin
> >
> > Which means there was an important error message somewhere above this, a
> > message you did not include in this email.  It may be the same as the
> > one apt gets when it tries to recover, or it may be different.
> >
> > > E: Sub-process /usr/bin/dpkg returned an error code (1)
> > > A package failed to install.  Trying to recover:
> > > Setting up libvirt-bin (0.9.2-4ubuntu15) ...
> > > useradd: cannot lock /etc/passwd; try again later.
> >
> > Whoa.  What happened there?
> >
> >
> >
> >
> >
> This Ubuntu thing was installed using Wubi...
> 
> >   $ ls -l /etc/passwd*
> >   $ cat /proc/mounts
> >
> ls -l /etc/passwd
> -rw-r--r-- 1 root root 1835 2012-02-28 18:35 /etc/passwd

Note: I explicitly asked for /etc/passwd* with a * at the end, because I
think useradd uses a lock file named /etc/passwd.lock, and I wanted to
see if it existed.

> cat /proc/mounts
...
> /dev/loop0 / ext4
> rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered 0 0

Ok, so it's not mounted read-only because of errors.  (Didn't think it
was likely, just wanted to be sure.)

> sudo aptitude install pastebinit
> [sudo] password for tapas:
> The following NEW packages will be installed:
>   pastebinit python-configobj{a}
> The following partially installed packages will be configured:
>   libvirt-bin
> 0 packages upgraded, 2 newly installed, 0 to remove and 13 not upgraded.
...

Ok, that's the same error:

> Setting up libvirt-bin (0.9.2-4ubuntu15) ...
> useradd: cannot lock /etc/passwd; try again later.
> adduser: `/usr/sbin/useradd -d /var/lib/libvirt -g kvm -s /bin/false -u
> 118 libvirt-qemu' returned error code 1. Exiting.

So, is there a file named /etc/passwd.lock?  If you remove it and try

  sudo dpkg --configure -a

will libvirt-bin be able to add that system user it's trying to add?

Marius Gedminas
-- 
(Why, oh! why is X not written in Lisp?)
        -- Juliusz Chroboczek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20121213/49608eb0/attachment.sig>


More information about the ubuntu-users mailing list