[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unable to run virsh on bookworm



On 09/05/2023 20:10, Sean Whalen wrote:
Hi,

I've installed virt-manager on a Debian bookworm system, and that is
working fine. However, when I try to use the libvirt CLI client, virsh,
I receive this error message:

virsh: /usr/local/lib/x86_64-linux-gnu/libvirt.so.0: version
`LIBVIRT_PRIVATE_9.0.0' not found (required by virsh)

The Fedora package libvirt-libs
<https://packages.fedoraproject.org/pkgs/libvirt/libvirt-libs/fedora-38.html> 9.0.0 states that it provides libvirt.so.0(LIBVIRT_PRIVATE_9.0.0)(64bit), so I'm not sure why the Debian package wouldn't be the same way, or why virt-manager works but virsh does not.

I just filed a bug
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035808> (that was my
time using the Debi an bug tracking system). Is anyone aware of a
workaround for this bug until it is fixed?

Hi Sean,

I use virt-manager on Bookworm and it works very well.
You can investigate and fix this yourself. First, determine to which
package this file belongs:
$ apt-file search libvirt.so.0
libvirt0: /usr/lib/x86_64-linux-gnu/libvirt.so.0
libvirt0: /usr/lib/x86_64-linux-gnu/libvirt.so.0.9000.0

So, you need to install (or reinstall) libvirt0 package to make sure you
have correct version, as Sven suggested in e-mail just before mine.

$ apt-cache policy libvirt0
libvirt0:
  Installed: 9.0.0-3
  Candidate: 9.0.0-3
  Version table:
 *** 9.0.0-3 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status

I have it installed, and its all working for me.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀⠀⠀


Reply to: