Plugin installation failed in hplip-3.20.9 & ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Hello,
Problems
In some circonstances, hp-plugin command ends with this line: "Plugin installation failed".
In the same circonstances, somes libraries for hp-plugin are missing.
I use workarounds.
Environment
hplip-3.20.9
xubuntu 18.04 (LTS), in a virtualbox
HP Deskjet 2700 series
Circonstances
The printer was added via the hp-setup command.
i.e. 2 cases:
- after running hplip-3.20.9.run
- the printer was removed, then re-added via hp-setup.
This bug DONT happens if the printer was added by hplip-3.20.9.run.
Missing libraries
I use "hp-plugin -i -g -p hplip-3.
One can see them in debug log of hp-plugin; there are several lines like this below:
hp-plugin[1466]: debug: Either /usr/lib/
Missing libraries workaround
2 commands:
- sudo ln -s /usr/lib /usr/lib/
- sudo ln -s /usr/lib64 /usr/lib64/
Plugin installation failed workaround
Before hp-plugin command
- sudo apt install apparmor-utils
- sudo aa-disable /usr/share/
Warning: the others .py are also disabled.
Note
This kinds of problem is old: I have found workarounds on the net.
But they remain in hplip-3.20.9 for ubuntu.
Steps to recreate the problems
- create a vbox; take care of usb filter
- install xubuntu 18.04 in the vbox
- verify usb
-- plug the printer, power on the printer
-- type "lsusb", the printer must be in the list
- uninstall the ubuntu hplip 3.17.10:
-- sudo apt-get purge hplip hplip-data hplip-doc hplip-gui hpijs-ppds libsane-hpaio printer-
-- sudo rm -rf /usr/share/hplip/
-- sudo apt-get autoremove
- download hplip 3.20.9, i.e.:
-- hplip-3.20.9-run
-- hplip-3.
-- hplip-3.
-- hplip-3.
put them in a temporary directory, and do the gpg verifications
- in a terminal, execute hplip-3.20.9-run
-- when there is a question in the terminal, accept (tape enter) until "RESTART OR RE-PLUG IS REQUIRED"
-- on "RESTART OR RE-PLUG IS REQUIRED", exit by RESTART
- restart the vbox
- setup the printer via the hp-setup command
- install the plugin
-- getting a key from pgp.mit.edu can be very long; give preventively the key from another server:
/usr/bin/gpg --homedir /home/<
-- in a terminal, from the temporary directory, type "hp-plugin -i -g -p hplip-3.
-- One can see the lines about missing libraries.
-- Stop the script (Ctrl C)
-- apply the Missing libraries workaround (see above)
-- in a terminal, from the temporary directory, type "hp-plugin -i -g -p hplip-3.
-- there is no line about missing libraries.
-- if popup "Unable to recieve key from server" "Do you still want to install the plug-in?", answer yes
-- accept the conditions, give the sudo password
-- the script finish with theses lines:
Plugin installation failed
error: Plugin installation failed
- apply the Plugin installation failed workaround (see above)
- install the plugin
-- in a terminal, from the temporary directory, type "hp-plugin -i -g -p hplip-3.
-- if popup "Unable to recieve key from server" "Do you still want to install the plug-in?", answer yes
-- accept the conditions, give the sudo password
-- the script finish with no line like "Plugin installation successful" or "Plugin installation failed".
- do a scan
Hi ,
Can you install plugin using below command instead of hp-plugin:
$sh hplip-3. 20.9.plugin. run
Let me know the results.