Bug#972703: gnome-boxes does not start, undefined symbol libusb_set_option

Carnë Draug carandraug+dev at gmail.com
Fri Oct 23 22:10:11 BST 2020


On Thu, 22 Oct 2020 at 21:47, Simon McVittie <smcv at debian.org> wrote:
>
> On Thu, 22 Oct 2020 at 19:14:54 +0100, David Miguel Susano Pinto wrote:
>> gnome-boxes does not start.  Trying from command line, issues this error:
>>
>>     $ gnome-boxes
>>     gnome-boxes: symbol lookup error: /usr/lib/x86_64-linux-gnu/libusbredirhost.so.1: undefined symbol: libusb_set_option
>>
>> Similar issue when starting qemu:
>>
>>     $ qemu-system-x86_64
>>     qemu-system-x86_64: symbol lookup error: qemu-system-x86_64: undefined symbol: libusb_set_option
>
> It starts fine on a Debian 10 system for me. According to
> /var/lib/dpkg/info/libusb-1.0-0:amd64.symbols, that symbol has been provided
> by libusb-1.0-0 since version 2:1.0.22, which you have.
>
> Do you have an older version of libusb-1.0.so.0 somewhere in the library
> search path, perhaps in /usr/local/lib?

I checked and other than "/lib/x86_64-linux-gnu/libusb-1.0.so.0"
(provided by libusb-1.0-0) I also have "/lib/libusb-1.0.so.0" (which
seems to be what is loaded:

    $ ldd /usr/bin/gnome-boxes | grep usb
        libusb-1.0.so.0 => /lib/libusb-1.0.so.0 (0x00007f49d1393000)
        libusbredirhost.so.1 =>
/usr/lib/x86_64-linux-gnu/libusbredirhost.so.1 (0x00007f49c88fb000)
        libusbredirparser.so.1 =>
/usr/lib/x86_64-linux-gnu/libusbredirparser.so.1 (0x00007f49c88f00

Removing "/lib/libusb-1.0.so*" (and run ldconfig to update the linker
cache), makes it load the right libusb:

    $ ldd /usr/bin/gnome-boxes | grep usb
        libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0
(0x00007fc22ff71000)
        libusbredirhost.so.1 =>
/usr/lib/x86_64-linux-gnu/libusbredirhost.so.1 (0x00007fc2274b3000)
        libusbredirparser.so.1 =>
/usr/lib/x86_64-linux-gnu/libusbredirparser.so.1 (0x00007fc2274a8000)

And gnome-boxes now works properly.

The thing is, I have no idea where this /lib/libusb came from.  I'm
pretty sure I didn't install anything other than debs from the
official debian repos.  dpkg-query also does not know which package
installed it:

    $ dpkg-query -S /lib/libusb-1.0.so.0.1.0
    dpkg-query: no path found matching pattern /lib/libusb-1.0.so.0.1.0

I have one other Debian machine which has the same file.  Any clues
where that file came from and what it may be used for?

Thank you
David



More information about the pkg-gnome-maintainers mailing list