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.
Same here. I solved this way:
please run:
after your error read the 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:
you will get the right place like:
now you only have to make a symbolic link:
run again hp-setup
done
I 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.
The 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
After I did this, the plugin installed correctly.
After following Kai Kramer's answer here I got:
AND
A search on the web got me to try the following and it worked:
Install apparmor utils (mind you I didn't have it installed!!!)
Then run
sudo aa-disable /usr/share/hplip/plugin.py
& the run as normal user, not as root:
Now my printer (laserjet 1020) was installed.
Source: https://bugs.launchpad.net/hplip/+bug/1813768