errors instaling virt-manager on 11.10
Tapas Mishra
mightydreams at gmail.com
Sun Dec 16 17:38:39 UTC 2012
On Thu, Dec 13, 2012 at 5:28 PM, Marius Gedminas <marius at pov.lt> wrote:
> 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.
yes the file exists
/etc$ ls -l passwd.lock
-rw------- 1 root root 0 2012-02-28 18:35 passwd.lock
ls /etc/passwd
passwd passwd- passwd+ passwd.lock
>> 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
yes there is a file /etc/passwd.lock if I remove and try what you said
tapas at ubuntu:/etc$ sudo dpkg -configure -a
dpkg: error: unknown option -o
Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through `less' or `more' !
tapas at ubuntu:/etc$ sudo dpkg --configure -a
Setting up libvirt-bin (0.9.2-4ubuntu15) ...
useradd: cannot lock /etc/shadow; 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.
dpkg: error processing libvirt-bin (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libvirt-bin
> will libvirt-bin be able to add that system user it's trying to add?
>
Well I am not clear with this message of yours.Based on the above
error message I notice
a file
tapas at ubuntu:/etc$ ls shadow
shadow shadow- shadow.lock
I removed this also now I did
sudo dpkg --configure -a
Setting up libvirt-bin (0.9.2-4ubuntu15) ...
here I did not got any error.
Thanks for your suggestions.
I am able to get virt-manager running now.
More information about the ubuntu-users
mailing list