Ubuntu – Cannot install HP printer: plugin installation not successful

hardwarehphplipprinting

I am trying to set up my HP LaserJet P1102 on Ubuntu 19.04.

I know the theoretical procedure to install the printer, but this procedure does not work for me, following the "correct" procedure to install the printer (the software + the plugin) fails as follows.

I have downloaded and installed hplip 3.19.5 from here.

At first the installation seems to succeed. It asks for plugin to be installed, then it says "Plugin installation successful". But after I click OK on this message, it returns to the window in which I should choose which printer to install, and another message pops up:

error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins. Visit http://hplipopensource.com for more infomation.

error: hp-setup failed. Please run hp-setup manually.

Best Answer

Same here. I solved this way:

please run:

hp-setup -g &> ~/hp-setup.log

after your error read the log:

cat ~/hp-setup.log

you will find some lines like:

hp-setup[19265]: debug: Either /usr/lib/i386-linux-gnu/sane/libsane-hp2000S1.so file is not present or symbolic link is missing

if you run:

locate libsane-hp2000S1

you will get the right place like:

  • /usr/lib/sane/libsane-hpgt2500-x86_64.so.1.0.22
  • /usr/lib/sane/libsane-hpgt2500-x86_64.so.1.0.27
  • /usr/lib/sane/libsane-hpgt2500.so
  • /usr/lib/sane/libsane-hpgt2500.so.1
  • /usr/lib/x86_64-linux-gnu/sane/libsane-hpgt2500.so
  • /usr/lib/x86_64-linux-gnu/sane/libsane-hpgt2500.so.1
  • /usr/lib64/sane/libsane-hpgt2500-x86_64.so.1.0.22
  • /usr/lib64/sane/libsane-hpgt2500-x86_64.so.1.0.27
  • /usr/lib64/sane/libsane-hpgt2500.so /usr/lib64/sane/libsane-hpgt2500.so.1

now you only have to make a symbolic link:

sudo ln -s /usr/lib /usr/lib/i386-linux-gnu

sudo ln -s /usr/lib64 /usr/lib64/x86_64-linux-gnu

run again hp-setup

done

Related Question