hp-setup fails on Ubuntu and Fedora due to expecting sane libraries in wrong directories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
Unassigned |
Bug Description
On Fedora 28, 29 and 30 I see this issue - driver is installed but I can't finish adding printer if it has to load hp-plugin module (models with scanner). Printers without scanner and no need for hp-plugin install without problem.
I'm using latest HPLIP 3.19.8 but also older HPLIP 3.19.1 has same issue.
Here is the error that shows up when hp-setup tries to install gpg keys:
sudo /usr/bin/gpg --homedir /root/.hplip/.gnupg --no-permission
gpg: requesting key A59047B9 from hkp server pgp.mit.edu
gpgkeys: key 4ABA2F66DBD5A95
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm
I also see error when trying to download hp-plugin directly from the web:
Checking for network connection...
Downloading plug-in from:
Plugin is not accessible. Trying to download it from fallback location: [https:/
Receiving digital keys: /usr/bin/gpg --homedir /home/user/
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.8 Plugin Self Extracting Archive.
After I manually download hp-plugin and load it via hp-setup gui then it installs without errors, but it still fails after that to install the printer which is really strange.
So I get same behaviour when hp-plugin fails to install and when it is installed correctly.
I have Selinux disabled.
Here is also full hp-setup log, it shows lots of missing libraries because on Fedora and Ubuntu they are located in different directories and hp-setup is not flexible enought to recognise this and work around it.
then, made the symlinks:
/usr/lib/ i386-linux- gnu/sane -> /usr/lib/sane x86_64- linux-gnu -> /usr/lib64/ x86_64- linux-gnu x86_64- linux-gnu/ sane -> /usr/lib64/sane
/usr/lib/
/usr/lib64/
and hp-setup finally works and adds printer!
Solved thanks to @zaskar_84 from LQ forums: /www.linuxquest ions.org/ questions/ showthread. php?p=6045970
https:/