Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to run virsh on bookworm

84 views
Skip to first unread message

Sean Whalen

unread,
May 9, 2023, 3:20:07 PM5/9/23
to

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 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 (that was my time using the Debi an bug tracking system). Is anyone aware of a workaround for this bug until it is fixed?

-- 
Respectfully,
Sean Whalen
signature.asc

Sven Joachim

unread,
May 9, 2023, 3:32:12 PM5/9/23
to
On 2023-05-09 19:10 +0000, Sean Whalen wrote:

> 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)

Note the '/usr/local/lib/…' path here. This version of libvirt.so.0 is
most likely older than the one in the libvirt0 package. Probably at
some time in the past you installed it.

> 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 Debian bug tracking system). Is anyone aware of a
> workaround for this bug until it is fixed?

You can and you have to fix it yourself, by moving the locally installed
libvirt.so.0 out of the way.

Cheers,
Sven

piorunz

unread,
May 9, 2023, 3:40:06 PM5/9/23
to
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/
⠈⠳⣄⠀⠀⠀⠀
0 new messages