libusb-0.1.so.4 shared lib error in ubuntu 64 bit system

To install the 32-bit version, run:

apt-get install libusb-0.1-4:i386

This only works if MultiArch is enabled (maybe it doesn't if you upgraded from an older Ubuntu version). Look for foreign-architecture i386 in /etc/dpkg/dpkg.cfg.d/multiarch to check if MultiArch is enabled, and if it doesn't, run echo "foreign-architecture i386" | sudo tee /etc/dpkg/dpkg.cfg.d/multiarch to enable MultiArch and apt-get update to get the new package lists.


to install libusb use sudo apt-get install libusb-0.1-4


It failed for me even after sudo apt-get install libusb-0.1-4:i386/sudo apt-get install libusb-0.1-4.

So I did sudo apt-get install libusb-dev instead, and it worked fine on my Ubuntu 64-bit system.