Hi Stephane, thanks for your report and your help to make Ubuntu better. We might have two different issues here - one being the libvirt installation/upgrade that is failing and the other one being your system hanging on shut down.
We will focus on the libvirt issue first and afterwards need to check if there is a different issue left if you agree. But out of interest, do you have an indicator that libvirt is what hangs your shutdown? Any last messages on screen related to e.g. guest shutdown or anything like it? Now for the libvirt issue, I'd assume something in the config is broken and due to that the upgrade fails - we "just" have to find what it is. In general services are restarted on upgrades, that fails in your case which is what lets the upgrade be considered as "failed". In the log I see: May 24 13:56:16 hostname libvirtd[1904]: Unable to initialize audit layer: Permission denied May 24 13:56:16 hostname libvirtd[1904]: cannot connect to netlink socket with protocol 0: Permission denied May 24 13:56:16 hostname systemd[1]: Failed to start Virtualization daemon. May 24 13:56:16 hostname systemd[1]: libvirt-bin.service: Failed with result 'exit-code'. May 24 13:56:16 hostname systemd[1]: libvirt-bin.service: Start request repeated too quickly. The other log so far only contains that libvirt failed to start, but no detail why. Checking further showed me that in your case apparmor is blocking the netlink access. For example: [108411.704036] audit: type=1400 audit(1495647072.035:50): apparmor="DENIED" operation="create" profile="/usr/sbin/libvirtd" pid=2071 comm="libvirtd" family="netlink" sock_type="raw" protocol=9 requested_mask="create" denied_mask="create" Which is odd, as your rule in "/etc/apparmor.d/usr.sbin.libvirtd" should have " network netlink," allowing just that. Could you please: 1. report if this issue persists across reboot, as even in any weird case then apparmor rules should be fully++ reloaded (since you reported about reboots as well rebooting seems not to be a problem for you) 2. check if your "/etc/apparmor.d/usr.sbin.libvirtd" has "network netlink,"? Maybe you modified that file in the past which makes the upgrade unable to replace it (being a conffile) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1693320 Title: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1693320/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
