I cannot install HPLIP on any flavor of Ubuntu 20.04

Bug #1876205 reported by CaioCosta
76
This bug affects 14 people
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
Undecided
Unassigned

Bug Description

HPLIP depends on python3-pyqt4 but i can't download it because it's not available on the main Ubuntu repo anymore. Just python3-pyqt5. That's what is being shown to me when i try to install it:

sudo apt install python3-pyqt4
[sudo] password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pyqt4

If you could update the pyqt version, that would already fix the problem. Thanks

Tags: focal
Norbert (nrbrtx)
tags: added: focal
Revision history for this message
Norbert (nrbrtx) wrote :

Binary `hplip-3.20.3.run` is not installable on Ubuntu 20.04 LTS (focal):

```
$ sh hplip-3.20.3.run
...
error: ubuntu-20.04 version is not supported, so all dependencies may not be installed. However trying to install using ubuntu-19.10 version packages.

...
MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
libjpeg base REQUIRED
libtool base REQUIRED
cups-devel base REQUIRED
cups-image base REQUIRED
libusb base REQUIRED
sane-devel scan REQUIRED
xsane scan OPTIONAL
dbus fax REQUIRED
libnetsnmp-devel network REQUIRED
libcrypto network REQUIRED
python3-notify2 gui_qt4 OPTIONAL
python3-pyqt4-dbus gui_qt4 OPTIONAL <--- critical
python3-pyqt4 gui_qt4 REQUIRED <--- critical
python3-devel base REQUIRED

...

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt4': python3-notify2 (Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: Missing OPTIONAL dependency for option 'gui_qt4': python3-pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: Missing OPTIONAL dependency for option 'scan': xsane (xsane - Graphical scanner frontend for SANE)
...
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python3-pyqt4'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python3-pyqt4'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python3-pyqt4'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
note: Some packages may not get installed on python3 due to distro incompatibilites
...

```

But the official repository has hplip-gui 3.20.3+dfsg0-2 (see https://packages.ubuntu.com/focal/hplip-gui ) build against python3-pyqt5 -
so possible workaround is to use packaged version of HPLIP with:

```
sudo add-apt-repository universe
sudo apt-get install hplip-gui
```

and then add printer using `hp-setup` and/or `hp-plugin` (see https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index for compatibilty check).

By the way HPLIP team should include support of Ubuntu 20.04 LTS (!!!) in next binary releases of HPLIP!

summary: - I cannot install HPLIP on Ubuntu MATE 20.04
+ I cannot install HPLIP on any flavor of Ubuntu 20.04
Revision history for this message
Anam Alam (anam03) wrote :

Hi

HPLIP still doesn't support Ubuntu 20.04, it will be there in the upcoming releases I think, but you can check for available version from Ubuntu website

Changed in hplip:
status: New → In Progress
status: In Progress → Fix Committed
Revision history for this message
Rinke Hoekstra (rinke) wrote :

I had the same problem, it works now with hplip-gui

Changed in hplip:
status: Fix Committed → Fix Released
Revision history for this message
Rob (rob-drrob1) wrote :

It does not work for me.

I tried several options I read online. Installing hplip-gui does not help me; manually compiling and using flags to the configure script to enable pyqt5 and disable pyqt4 did not work. This was for code I downloaded from the hplip website, to version 3.20.6.

This is for an OfficeJet Pro 8625

Just my 2 cents.

Revision history for this message
estolle (estolle) wrote :

I upgraded from Kubuntu 18.04.5 to 20.04.1 end of september. The problem still persists and according to the release notes (https://developers.hp.com/hp-linux-imaging-and-printing/release_notes), after half a year no flavor of Ubuntu 20.04 is being supported by any release of hplip.

Revision history for this message
spaaam (spaaaaaam) wrote :

Hello,

I managed to install hplip 3.20.11 on ubuntu 20.04.1 by following these steps:
- uninstall all previously installed hplip versions
- set python3 to be the default python (I did this with "sudo apt install python-is-python3" but you probably can do it manually if you prefer)
- run the hplip-3.20.11.run as specified on hp's website
- configure the printer in interactive mode (rather than GUI)

HTH

Revision history for this message
Denis Silva Nogueira (denis-nogueira) wrote :

Até que fim uma luz no fim do túnel! #6 de spaaam funcionou para mim!
Muito obrigado mesmo!

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.