[Backport] libvirt-daemon-system won't install on Focal

Bug #2058278 reported by Sergio Durigan Junior
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
High
Bryce Harrington

Bug Description

When installing libvirt-daemon-system (from https://launchpad.net/~canonical-server/+archive/ubuntu/server-backports) on a Focal system, one will see the following error:

# apt install libvirt-daemon-system
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libvirt-daemon-system : Depends: polkitd but it is not installable
                         Depends: polkitd-pkla but it is not installable
                         Recommends: dnsmasq-base
                         Recommends: mdevctl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

As discussed with Bryce, I believe polkit should be backported to Focal as well.

Tags: server-todo
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Kudos to gpiccoli for finding the bug.

Changed in libvirt (Ubuntu):
status: New → Triaged
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Thanks Sergio for opening the issue, and thanks in advance Bryce for looking.

So, it seems changing polkitd for polkit-1 in the dependency of this package (for the 20.04 backport) is a sensible fix - seems to be working here, I've used dpkg-deb to rebuild this package with such change and it's working fine so far.

Cheers!

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks, Guilherme.

I found:

https://salsa.debian.org/utopia-team/polkit/-/commit/81c21cdadbe0a98ca016738b8c2cc7d4f225f067

and then:

https://salsa.debian.org/libvirt-team/libvirt/-/commit/b9b2923abfae8ec80507bc267767db4b51fb4021

which explain why we're depending on polkitd. So yeah, I believe Guilherme's suggestion might be enough to fix this issue on Focal.

Bryce Harrington (bryce)
tags: added: server-todo
Bryce Harrington (bryce)
Changed in libvirt (Ubuntu):
importance: Undecided → High
Revision history for this message
Bryce Harrington (bryce) wrote :

I've reproduced the reported issue, applied the fix as suggested to packaging, and confirmed it resolves the issue. This was done using the server-backports-experimental PPA. I've gone ahead and rolled out the fix to the release PPA:

WAS:
  libvirt 9.0.0-2ubuntu1.3~backport20.04.202312120050~ubuntu20.04.1
IS:
  libvirt 9.0.0-2ubuntu1.3~backport20.04.202403200544~ubuntu20.04.1

I believe this should fix the problem, so am closing it as such. If you find it does not fix the original problem, please reopen with status set to New and I'll take another look. Or, if this resolves the original problem but there are additional ones, please file a new bug and let me know.

Changed in libvirt (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Btw, I'm also working on backporting the noble version of libvirt to jammy and focal, so the version of this package will probably change again (to 10.0.0-something) in coming weeks.

description: updated
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Thanks a bunch for the prompt fix.

Tested here and it's working fine =)

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.