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:
4error: 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 for more infomation.
error: hp-setup failed. Please run hp-setup manually.
4 Answers
Same here. I solved this way:
please run:
hp-setup -g &> ~/hp-setup.logafter your error read the log:
cat ~/hp-setup.logyou 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-hp2000S1you 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-gnurun again hp-setup
done
3I also had the problem where the HP printer installs fine but the scanner plugin does not install (Ubuntu 19).Disabling the plugin.py worked!!! (thank you) but I had to install apparmor-utils first.
sudo apt install apparmor-utils
sudo aa-disable /usr/share/hplip/plugin.py
hp-pluginThe last step runs the HP Plugin installer which is needed for printer scanning to work.
I had a slightly different problem. My HP Printer installed fine, but the scanner plugin would not install properly. It seems the trick was to get AppArmor to lower its shields for a Python script.
Edit: Looking at other answers, it looks like it is common to not have AppArmor utils installed, so you may also need to install it first
sudo apt install apparmor-utils
sudo aa-disable /usr/share/hplip/plugin.pyAfter I did this, the plugin installed correctly.
After following Kai Kramer's answer here I got:
error: Python gobject/dbus may be not installed
error: Plug-in install failed.AND
cannot access '/var/lib/hp/hplip.state': No such file or directoryA search on the web got me to try the following and it worked:
$ aa-disable /usr/share/hplip/plugin.py
Command 'aa-disable' not found, but can be installed with:
sudo apt install apparmor-utilsInstall apparmor utils (mind you I didn't have it installed!!!)
sudo apt-get install apparmor-utilsThen run
sudo aa-disable /usr/share/hplip/plugin.py
& the run as normal user, not as root:
hplip-pluginNow my printer (laserjet 1020) was installed.
Source: