package libvirt-bin 1.2.2-0ubuntu13.1.17 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 1

Bug #1577733 reported by Vladimir Gorelov on 2016-05-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
High
Unassigned
shadow (Ubuntu)
High
Unassigned

Bug Description

sudo apt-get install gnome-boxes then oops

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: libvirt-bin 1.2.2-0ubuntu13.1.17
ProcVersionSignature: Ubuntu 3.13.0-85.129-generic 3.13.11-ckt36
Uname: Linux 3.13.0-85-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
Date: Tue May 3 16:58:15 2016
ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 1
InstallationDate: Installed on 2014-09-01 (609 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcCmdline: BOOT_IMAGE=/vmlinuz-3.13.0-85-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: libvirt
Title: package libvirt-bin 1.2.2-0ubuntu13.1.17 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 1
UpgradeStatus: No upgrade log present (probably fresh install)

Vladimir Gorelov (virtual-lark) wrote :
Serge Hallyn (serge-hallyn) wrote :

Thanks for taking the time to reproduce this bug. I unfortunately have not been able to reproduce it.

Could you please show the contents of /etc/apt/sources.list and any files under /etc/apt/sources.list.d/ ?

It seems 'groupadd' actually failed, so please show the contents of the file /etc/group.

Changed in shadow (Ubuntu):
status: New → Incomplete
Changed in libvirt (Ubuntu):
status: New → Incomplete
importance: Undecided → High
Changed in shadow (Ubuntu):
importance: Undecided → High
Vladimir Gorelov (virtual-lark) wrote :

[1/3] Requested file(s): /etc/apt/sources.list

This is local mirror of ubuntu repositories.

Vladimir Gorelov (virtual-lark) wrote :

[2/3] Requested file(s): All files under /etc/apt/sources.list.d/

Vladimir Gorelov (virtual-lark) wrote :

[3/3] Requested file(s): /etc/group

Serge Hallyn (serge-hallyn) wrote :

Thanks for that info. The group file looks fine. Could you please check whether either

/etc/group.lock

or

/etc/gshadow.lock

exists? If so, please remove them and re-try. If not, please let us know.

Vladimir Gorelov (virtual-lark) wrote :

No, there is not such files:
$ LANG=C ls -al /etc/*lock
-rw------- 1 root lightdm 0 Sep 1 2014 /etc/mtab.fuselock

File /etc/group looks normal:
$ LANG=C ls -al /etc/group
-rw-r--r-- 1 root root 1079 Dec 25 16:53 /etc/group

Retrying...
$ LANG=C sudo apt-get install gnome-boxes
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libvirt-bin
Suggested packages:
  radvd
The following NEW packages will be installed:
  gnome-boxes libvirt-bin
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3181 kB of archives.
After this operation, 16.7 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package libvirt-bin.
(Reading database ... 310754 files and directories currently installed.)
Preparing to unpack .../libvirt-bin_1.2.2-0ubuntu13.1.17_amd64.deb ...
Unpacking libvirt-bin (1.2.2-0ubuntu13.1.17) ...
Selecting previously unselected package gnome-boxes.
Preparing to unpack .../gnome-boxes_3.8.4-1_amd64.deb ...
Unpacking gnome-boxes (3.8.4-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for libglib2.0-0:i386 (2.40.2-0ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
Setting up libvirt-bin (1.2.2-0ubuntu13.1.17) ...
Adding group `libvirtd' (GID 134) ...
groupadd: failure while writing changes to /etc/group
addgroup: `/usr/sbin/groupadd -g 134 libvirtd' returned error code 10. Exiting.
dpkg: error processing package libvirt-bin (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gnome-boxes:
 gnome-boxes depends on libvirt-bin; however:
  Package libvirt-bin is not configured yet.

dpkg: error processing package gnome-boxes (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 libvirt-bin
 gnome-boxes
No services required to be restarted.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Vladimir Gorelov (virtual-lark) wrote :

$ LANG=C sudo /usr/sbin/groupadd -g 134 libvirtd
groupadd: failure while writing changes to /etc/group

I see files group-, group+, gshadow-, but unable to remove them:
$ LANG=C sudo rm group+ group- gshadow-
rm: cannot remove 'group+': Device or resource busy
rm: cannot remove 'group-': Device or resource busy
rm: cannot remove 'gshadow-': Device or resource busy

$ (sudo) fuser group+ group- gshadow-
Returns nothing

Any ideas how to remove them or at least to know what preccess is using the files?

Hi,

does 'sudo lsof' show any results for those files?

If not, I guess try simply moving them:

 sudo mv /etc/group+ /etc/group+.bak
 sudo mv /etc/group- /etc/group-.bak
 sudo mv /etc/gshadow- /etc/gshadow-.bak

Moving didn't help untill reboot.
Now main apt command executed fine.
Thanks!
6 мая 2016 г. 5:05 AM пользователь "Serge Hallyn" <
<email address hidden>> написал:

> Hi,
>
> does 'sudo lsof' show any results for those files?
>
> If not, I guess try simply moving them:
>
> sudo mv /etc/group+ /etc/group+.bak
> sudo mv /etc/group- /etc/group-.bak
> sudo mv /etc/gshadow- /etc/gshadow-.bak
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1577733
>
> Title:
> package libvirt-bin 1.2.2-0ubuntu13.1.17 failed to install/upgrade:
> подпроцесс установлен сценарий post-installation возвратил код ошибки
> 1
>
> Status in libvirt package in Ubuntu:
> Incomplete
> Status in shadow package in Ubuntu:
> Incomplete
>
> Bug description:
> sudo apt-get install gnome-boxes then oops
>
> ProblemType: Package
> DistroRelease: Ubuntu 14.04
> Package: libvirt-bin 1.2.2-0ubuntu13.1.17
> ProcVersionSignature: Ubuntu 3.13.0-85.129-generic 3.13.11-ckt36
> Uname: Linux 3.13.0-85-generic x86_64
> NonfreeKernelModules: nvidia
> ApportVersion: 2.14.1-0ubuntu3.19
> Architecture: amd64
> Date: Tue May 3 16:58:15 2016
> ErrorMessage: подпроцесс установлен сценарий post-installation возвратил
> код ошибки 1
> InstallationDate: Installed on 2014-09-01 (609 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64
> (20140417)
> ProcCmdline: BOOT_IMAGE=/vmlinuz-3.13.0-85-generic.efi.signed
> root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
> SourcePackage: libvirt
> Title: package libvirt-bin 1.2.2-0ubuntu13.1.17 failed to
> install/upgrade: подпроцесс установлен сценарий post-installation возвратил
> код ошибки 1
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1577733/+subscriptions
>

Launchpad Janitor (janitor) wrote :

[Expired for shadow (Ubuntu) because there has been no activity for 60 days.]

Changed in shadow (Ubuntu):
status: Incomplete → Expired
Launchpad Janitor (janitor) wrote :

[Expired for libvirt (Ubuntu) because there has been no activity for 60 days.]

Changed in libvirt (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers