Skip to content

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

@cmccrorie

Description

@cmccrorie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions