package uvtool-libvirt (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1641801 reported by John Neffenger
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
New
Undecided
Unassigned

Bug Description

Upgraded from Ubuntu 14.04.5 to 16.04.1 and package "uvtool-libvirt" failed to upgrade. All other packages seemed to be installed just fine.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: uvtool-libvirt (not installed)
ProcVersionSignature: Ubuntu 4.4.0-47.68-generic 4.4.24
Uname: Linux 4.4.0-47-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Mon Nov 14 18:40:59 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2015-08-04 (469 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.15
SourcePackage: uvtool
Title: package uvtool-libvirt (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2016-11-15 (0 days ago)

Revision history for this message
John Neffenger (jgneff) wrote :
Revision history for this message
Robie Basak (racb) wrote :

From log:

Setting up uvtool-libvirt (0~bzr99-0ubuntu1) ...
2016/11/14 18:40:59 socat[16105] E connect(5, AF=1 "/var/run/libvirt/libvirt-sock", 31): No such file or directory
libvirtd does not appear to be listening on "/var/run/libvirt/libvirt-sock".
On Ubuntu, libvirtd is managed with the "libvirt-bin" upstart job.
Repair libvirtd, then reconfigure uvtool-libvirt with:
    sudo apt-get -f install
dpkg: error processing package uvtool-libvirt (--configure):
 subprocess installed post-installation script returned error exit status 1

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

It looks like libvirtd was not running at the time of an upgrade, and this caused uvtool-libvirt's postinst to fail. So this is a libvirt bug, not a uvtool bug. Reassigning.

We've seen a few cases of libvirtd failing to start. I wonder if this is related?

affects: uvtool (Ubuntu) → libvirt (Ubuntu)
Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1641801] Re: package uvtool-libvirt (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Quoting Robie Basak (<email address hidden>):
> Thank you for taking the time to report this bug and helping to make
> Ubuntu better.
>
> It looks like libvirtd was not running at the time of an upgrade, and
> this caused uvtool-libvirt's postinst to fail. So this is a libvirt bug,
> not a uvtool bug. Reassigning.

Wait, what? Perhaps he purposely had disabled it on purpose?

> We've seen a few cases of libvirtd failing to start. I wonder if this is
> related?

There could well be a libvirt bug as well, but if postinst fails ungracefully
if libvirt is stopped isn't that a packaging bug in uvtool-libvirt?

Revision history for this message
John Neffenger (jgneff) wrote :

On 2016-11-15 06:52 AM, Serge Hallyn wrote:
> Wait, what? Perhaps he purposely had disabled it on purpose?

I may have done just that, but I can't remember. I was eager to switch
to LXD in Ubuntu 16.04 instead of using LXC and uvtool in Ubuntu 14.04.

I was surprised that it made the upgrade fail, though, and also
surprised it prompted me to file a bug report. I thought it was just
going to send an automated crash report.

I just rebooted, removed all of the orphaned packages, and cleaned up
after the upgrade myself, and everything seems fine now.

Revision history for this message
John Neffenger (jgneff) wrote :

Maybe it's related to this problem:

KVM + Xenial Server. libvirt-bin won't configure
http://askubuntu.com/questions/762924/kvm-xenial-server-libvirt-bin-wont-configure#763935

I had to do something similar to get libvirt-bin started again:

$ sudo systemctl stop apparmor.service
$ sudo apt-get install --reinstall qemu-kvm libvirt-bin
$ sudo systemctl start apparmor.service
$ sudo systemctl restart libvirt-bin

and then:

$ sudo apt-get install --reinstall uvtool uvtool-libvirt

Now it all seems to be working again.

tags: removed: need-duplicate-check
Revision history for this message
Robie Basak (racb) wrote :

Serge said:

> There could well be a libvirt bug as well, but if postinst fails ungracefully
if libvirt is stopped isn't that a packaging bug in uvtool-libvirt?

I disagree. uvtool-libvirt requires libvirtd to be running, and libvirt-bin is expected to ship it running. If a user intervenes by stopping libvirtd or otherwise disabling it, I think the user gets to keep the pieces. Otherwise, what should uvtool-libvirt do gracefully that isn't surprising to the user? The point of a postinst failure is to point out to the user that the package won't work.

John, I think we may have some issue with libvirtd not running as a bug in libvirt packaging. I've seen more than one occurrence of this, but unfortunately we don't have a reliable reproducer.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.