Plugin installation failed in hplip-3.20.9 & ubuntu

Bug #1899101 reported by Dominique PAUL
6
This bug affects 1 person
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.20.9-plugin.run" command to see the missing libraries
One can see them in debug log of hp-plugin; there are several lines like this below:
hp-plugin[1466]: debug: Either /usr/lib/i386-linux-gnu/sane/hpgt2500_ntdcmsdll.so file is not present or symbolic link is missing

Missing libraries workaround
2 commands:
- sudo ln -s /usr/lib /usr/lib/i386-linux-gnu
- sudo ln -s /usr/lib64 /usr/lib64/x86_64-linux-gnu

Plugin installation failed workaround
Before hp-plugin command
- sudo apt install apparmor-utils
- sudo aa-disable /usr/share/hplip/plugin.py
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-driver-hpcups printer-driver-hpijs
-- sudo rm -rf /usr/share/hplip/
-- sudo apt-get autoremove

- download hplip 3.20.9, i.e.:
-- hplip-3.20.9-run
-- hplip-3.20.9-run.asc
-- hplip-3.20.9-plugin.run
-- hplip-3.20.9-plugin.run.asc
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/<user>/.hplip/.gnupg --no-permission-warning --keyserver pool.sks-keyservers.net --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
-- in a terminal, from the temporary directory, type "hp-plugin -i -g -p hplip-3.20.9-plugin.run"
-- 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.20.9-plugin.run"
-- 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.20.9-plugin.run"
-- 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

Revision history for this message
shivani mandora (shivani1708) wrote :

Hi ,

Can you install plugin using below command instead of hp-plugin:

$sh hplip-3.20.9.plugin.run

Let me know the results.

Revision history for this message
Dominique PAUL (domjcpa) wrote : Re: [Bug 1899101] Re: Plugin installation failed in hplip-3.20.9 & ubuntu

Hi,

No errors
After that, I can scan.

Le 09/10/2020 à 09:41, shivani mandora a écrit :
> Hi ,
>
> Can you install plugin using below command instead of hp-plugin:
>
> $sh hplip-3.20.9.plugin.run
>
> Let me know the results.
>

Revision history for this message
shivani mandora (shivani1708) wrote :

Hi ,

If your issue is resolved , can you please close the bug?

Changed in hplip:
status: New → In Progress
Revision history for this message
Dominique PAUL (domjcpa) wrote :

Hi,

Thank you for your alternative way. But the bug remains: ht-plugin
fails. Other people than me can be impacted.
If a close the bug, can this bug be fixed?

Le 12/10/2020 à 07:36, shivani mandora a écrit :
> Hi ,
>
> If your issue is resolved , can you please close the bug?
>
> ** Changed in: hplip
> Status: New => In Progress
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.