Categories
Linux Mastering Development Ubuntu

Error installing xsane, sane, hplip, etc with undefined symbol: libusb_set_option error

I consistantly get this error;

xsane: symbol lookup error: /usr/lib/x86_64-linux-gnu/libsane.so.1: undefined symbol: libusb_set_option

and this error;

checking for sane_open in -lsane... no
configure: error: cannot find sane-backends-devel support (or --disable-scan-build)" 
when trying to install hplip-3.20.5

I have had this problem since Ubuntu 19, I am currently using Ubuntu 20.04. I have reinstalled libusb-1, libsane.so.1

I am trying to install an HP multifunction printer ‘HP Office jet pro 9018’

Starting off, here is the tl;dr —

apt-cache policy xsane libsane1 libsane-common libusb-1.0
xsane:
  Installed: 0.999-8ubuntu2
  Candidate: 0.999-8ubuntu2
  Version table:
 *** 0.999-8ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status
libsane1:
  Installed: 1.0.30+git20200801-focal0
  Candidate: 1.0.30+git20200802-focal0
  Version table:
     1.0.30+git20200802-focal0 500
        500 http://ppa.launchpad.net/rolfbensch/sane-git/ubuntu focal/main amd64 Packages
 *** 1.0.30+git20200801-focal0 100
        100 /var/lib/dpkg/status
     1.0.29-0ubuntu5 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
libsane-common:
  Installed: 1.0.30+git20200801-focal0
  Candidate: 1.0.30+git20200802-focal0
  Version table:
     1.0.30+git20200802-focal0 500
        500 http://ppa.launchpad.net/rolfbensch/sane-git/ubuntu focal/main amd64 Packages
        500 http://ppa.launchpad.net/rolfbensch/sane-git/ubuntu focal/main i386 Packages
 *** 1.0.30+git20200801-focal0 100
        100 /var/lib/dpkg/status
     1.0.29-0ubuntu5 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal/main i386 Packages
libusb-1.0-0:
  Installed: 2:1.0.23-2build1
  Candidate: 2:1.0.23-2build1
  Version table:
 *** 2:1.0.23-2build1 500
        500 htt_://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
libusb-1.0-0-dev:
  Installed: 2:1.0.23-2build1
  Candidate: 2:1.0.23-2build1
  Version table:
 *** 2:1.0.23-2build1 500
        500 htt_://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
libusb-1.0-doc:
  Installed: 2:1.0.23-2build1
  Candidate: 2:1.0.23-2build1
  Version table:
 *** 2:1.0.23-2build1 500
        500 htt_://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        500 htt_://archive.ubuntu.com/ubuntu focal/main i386 Packages
        100 /var/lib/dpkg/status

Leave a Reply

Your email address will not be published. Required fields are marked *