puppet-libvirt icon indicating copy to clipboard operation
puppet-libvirt copied to clipboard

Ubuntu 20 fails as it does not have a libvirt-bin package

Open cmccrorie opened this issue 3 years ago • 1 comments

Whereas Ubuntu 18 did have a libvirt-bin package, Ubuntu 20 does not. When running the following on Ubuntu 20:

class { '::libvirt':
  virtinst           => true,
  defaultnetwork     => true
}

We get errors like:

Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libvirt-bin' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package libvirt-bin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libvirt-bin' has no installation candidate
Error: /Stage[main]/Libvirt/Package[libvirt]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libvirt-bin' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package libvirt-bin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libvirt-bin' has no installation candidate
Notice: /Stage[main]/Libvirt/File[/etc/libvirt/libvirtd.conf]: Dependency Package[libvirt] has failures: true
Warning: /Stage[main]/Libvirt/File[/etc/libvirt/libvirtd.conf]: Skipping because of failed dependencies
Warning: /Stage[main]/Libvirt/File[/etc/libvirt/qemu.conf]: Skipping because of failed dependencies
Warning: /Stage[main]/Libvirt/File[/etc/sasl2/libvirt.conf]: Skipping because of failed dependencies
Warning: /Stage[main]/Libvirt/Service[libvirtd]: Skipping because of failed dependencies
Warning: /Stage[main]/Libvirt/Libvirt::Network[default]/Exec[create-/etc/libvirt/qemu/networks/default.xml]: Skipping because of failed dependencies
Warning: /Stage[main]/Libvirt/Libvirt::Network[default]/Exec[virsh-net-define-default]: Skipping because of failed dependencies
Warning: /Stage[main]/Libvirt/Libvirt::Network[default]/Exec[virsh-net-autostart-default]: Skipping because of failed dependencies
Warning: /Stage[main]/Libvirt/Libvirt::Network[default]/Exec[virsh-net-start-default]: Skipping because of failed dependencies

Is there a fix or workaround that we can use for Ubuntu 20 please?

Thanks.

cmccrorie avatar Oct 19 '21 15:10 cmccrorie

The packages that need to be installed are qemu-kvm libvirt-daemon-system.

nod0n avatar Apr 27 '23 05:04 nod0n