I cannot install HPLIP on any flavor of Ubuntu 20.04
Bug #1876205 reported by
CaioCosta
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: | added: focal |
Changed in hplip: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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!