Tools: Cannot install libvirt and virt-manager is not running

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I checked to make sure that this issue has not already been filed
  • I’m reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

After running sudo ./kvm-qemu.sh all <username> I will be able to run virt-manager and interact with that.

Current Behavior

I updated and upgraded newly installed Ubuntu 20.04. I want to use kvm for cape sandbox so I needed to use kvm-qemu.sh. After running it and rebooting and running virt-manager I get:

Traceback (most recent call last):
  File "/usr/bin/virt-manager", line 6, in <module>
    from virtManager import virtmanager
  File "/usr/share/virt-manager/virtManager/virtmanager.py", line 16, in <module>
    gi.require_version('LibvirtGLib', '1.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace LibvirtGLib not available

During installation of only libvirt (sudo ./kvm-qemu.sh libvirt <username>) at the end I get this - https://pastebin.pl/view/246c228a. Exactly the same if I try to install sudo pip3 install libvirt-python.

I tried to investigate what could be the cause.

  • I found I should try to install libvirt-dev, but there is unmet dependencies (libvirt0)
  • libvirt0 has no installation candidate
  • I found couple more dependencies but package manager has still problem with libvirt0 or they are just not present…

I run this script few weeks ago and I was successful. I will try to search for the solution. Do you have some tip? Thank You.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. ./kvm-qemu.sh all <username> on fully updated Ubuntu 20.04
  2. reboot as suggested at the end of script log
  3. try to run virt-manager

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Question Answer
OS version Ubuntu 20.04
Software version QEMU 5.1

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 26 (14 by maintainers)

Most upvoted comments

ok thanks, i will add check for that