[Pkg-libvirt-maintainers] Bug#757330: Bug#757330: libvirt-daemon-system: fails to install: update-rc.d: error: insserv rejected the script header

Thorsten Glaser t.glaser at tarent.de
Thu Aug 7 12:50:57 UTC 2014


On Thu, 7 Aug 2014, Guido Günther wrote:

> I suspect dpkg-maintscript-helper to not identify
> /etc/init.d/libvirt-bin to be related part of libvirt-bin:amd64 and

:i386

Yes, probably.

> So this is multiarch using mostly i386 but some x86_64? Could you

No, this is i386 single-arch. There is an amd64 kernel package
for this. I’ve got an amd64 schroot, which I use to run qemu
when VMs need more than 2047 MiB RAM.

tglase at tglase:~ $ cat /usr/local/bin/qemu-in-chroot                                                        
#!/bin/sh
exec schroot -c sid-amd64 -u root -- qemu-system-x86_64 "$@"

Then, <emulator>/usr/local/bin/qemu-in-chroot</emulator>
in the domain XML, and it works.

> I meant the whole update process from the previous version
> (downgrading to the old version, then updating again).

Thanks… downgrading killed the VMs I had running, errored
out, and did all other sorts of trouble. Don’t suggest that
to “newbie” users ;-)

Anyway, did it. typescript attached.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
-------------- next part --------------
Script started on Thu Aug  7 14:48:53 2014
tglase at tglase:~ $ sudo env DPKG_DEBUG=1 apt-get --purge dist-upgrade



Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done



Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree       



Reading state information... 0%

Reading state information... 0%

Reading state information... Done


Calculating upgrade... Starting pkgProblemResolver with broken count: 0

Starting 2 pkgProblemResolver with broken count: 0

Done

Done

The following NEW packages will be installed:

  libvirt-clients libvirt-daemon libvirt-daemon-system

The following packages have been kept back:

  mailman

The following packages will be upgraded:

  libvirt-bin libvirt0

2 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.

Need to get 0 B/13.2 MB of archives.

After this operation, 5969 kB of additional disk space will be used.

Do you want to continue? [Y/n] 



Reading changelogs...

(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 255567 files and directories currently installed.)

Preparing to unpack .../libvirt-bin_1.2.7-3_i386.deb ...

DEBUG: dpkg-maintscript-helper: Executing /usr/bin/dpkg-maintscript-helper mv_conffile in preinst of libvirt-bin

DEBUG: dpkg-maintscript-helper: CONFFILE=/etc/default/libvirt-bin -> /etc/default/libvirtd PACKAGE=libvirt-bin:i386 LASTVERSION=1.2.6-1~ ACTION=upgrade PARAM=1.2.4-3.2

DEBUG: dpkg-maintscript-helper: Executing /usr/bin/dpkg-maintscript-helper mv_conffile in preinst of libvirt-bin

DEBUG: dpkg-maintscript-helper: CONFFILE=/etc/init.d/libvirt-bin -> /etc/init.d/libvirtd PACKAGE=libvirt-bin:i386 LASTVERSION=1.2.6-1~ ACTION=upgrade PARAM=1.2.4-3.2

Unpacking libvirt-bin (1.2.7-3) over (1.2.4-3.2) ...

dpkg: warning: unable to delete old directory '/etc/apparmor.d/abstractions': Directory not empty

dpkg: warning: unable to delete old directory '/etc/apparmor.d/libvirt': Directory not empty

dpkg: warning: unable to delete old directory '/etc/sasl2': Directory not empty

dpkg: warning: unable to delete old directory '/etc/libvirt/qemu/networks': Directory not empty

dpkg: warning: unable to delete old directory '/etc/libvirt/qemu': Directory not empty

dpkg: warning: unable to delete old directory '/etc/libvirt/nwfilter': Directory not empty

dpkg: warning: unable to delete old directory '/etc/libvirt': Directory not empty

dpkg: warning: unable to delete old directory '/var/log/libvirt/lxc': Directory not empty

dpkg: warning: unable to delete old directory '/var/log/libvirt/qemu': Directory not empty

dpkg: warning: unable to delete old directory '/var/log/libvirt/uml': Directory not empty

dpkg: warning: unable to delete old directory '/var/log/libvirt': Directory not empty

dpkg: warning: unable to delete old directory '/var/lib/libvirt/images': Directory not empty

dpkg: warning: unable to delete old directory '/var/lib/libvirt/qemu': Directory not empty

dpkg: warning: unable to delete old directory '/var/lib/libvirt': Directory not empty

dpkg: warning: unable to delete old directory '/var/cache/libvirt/qemu': Directory not empty

dpkg: warning: unable to delete old directory '/var/cache/libvirt': Directory not empty

Preparing to unpack .../libvirt0_1.2.7-3_i386.deb ...

Unpacking libvirt0 (1.2.7-3) over (1.2.4-3.2) ...

Selecting previously unselected package libvirt-clients.

Preparing to unpack .../libvirt-clients_1.2.7-3_i386.deb ...

Unpacking libvirt-clients (1.2.7-3) ...

Selecting previously unselected package libvirt-daemon.

Preparing to unpack .../libvirt-daemon_1.2.7-3_i386.deb ...

Unpacking libvirt-daemon (1.2.7-3) ...

Selecting previously unselected package libvirt-daemon-system.

Preparing to unpack .../libvirt-daemon-system_1.2.7-3_i386.deb ...

DEBUG: dpkg-maintscript-helper: Executing /usr/bin/dpkg-maintscript-helper mv_conffile in preinst of libvirt-daemon-system

DEBUG: dpkg-maintscript-helper: CONFFILE=/etc/default/libvirt-bin -> /etc/default/libvirtd PACKAGE=libvirt-bin LASTVERSION=1.2.6-1~ ACTION=install PARAM=

DEBUG: dpkg-maintscript-helper: Executing /usr/bin/dpkg-maintscript-helper mv_conffile in preinst of libvirt-daemon-system

DEBUG: dpkg-maintscript-helper: CONFFILE=/etc/init.d/libvirt-bin -> /etc/init.d/libvirtd PACKAGE=libvirt-bin LASTVERSION=1.2.6-1~ ACTION=install PARAM=

DEBUG: dpkg-maintscript-helper: Executing /usr/bin/dpkg-maintscript-helper rm_conffile in preinst of libvirt-daemon-system

DEBUG: dpkg-maintscript-helper: CONFFILE=/etc/apparmor.d/libvirtd/TEMPLATE PACKAGE=libvirt-daemon-system:i386 LASTVERSION=1.2.6-1~ ACTION=install PARAM=

Unpacking libvirt-daemon-system (1.2.7-3) ...

Processing triggers for man-db (2.6.7.1-1) ...

Setting up libvirt0 (1.2.7-3) ...

Setting up libvirt-clients (1.2.7-3) ...

Setting up libvirt-daemon (1.2.7-3) ...

Setting up libvirt-daemon-system (1.2.7-3) ...

Installing new version of config file /etc/libvirt/libvirtd.conf ...

Installing new version of config file /etc/libvirt/qemu-lockd.conf ...

Installing new version of config file /etc/libvirt/qemu.conf ...

Installing new version of config file /etc/libvirt/qemu-sanlock.conf ...

Installing new version of config file /etc/init.d/libvirt-guests ...

Installing new version of config file /etc/apparmor.d/abstractions/libvirt-lxc ...

insserv: script libvirtd: service libvirt-bin already provided!

insserv: exiting now!

update-rc.d: error: insserv rejected the script header

dpkg: error processing package libvirt-daemon-system (--configure):

 subprocess installed post-installation script returned error exit status 1

dpkg: dependency problems prevent configuration of libvirt-bin:

 libvirt-bin depends on libvirt-daemon-system (>= 1.2.7-3); however:

  Package libvirt-daemon-system is not configured yet.



dpkg: error processing package libvirt-bin (--configure):

 dependency problems - leaving unconfigured

Processing triggers for libc-bin (2.19-7) ...

Errors were encountered while processing:

 libvirt-daemon-system

 libvirt-bin

E: Sub-process /usr/bin/dpkg returned an error code (1)

100|tglase at tglase:~ $ ^D



Script done on Thu Aug  7 14:49:26 2014


More information about the Pkg-libvirt-maintainers mailing list