HPLIP, hp-doctor, hp-check should support Ubuntu 20.04 LTS with its package base

Bug #1881401 reported by Norbert
114
This bug affects 23 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned
hplip (Ubuntu)
Confirmed
High
Till Kamppeter

Bug Description

Steps to reproduce:
1. Have Ubuntu 20.04 LTS installed
2. Install HPLIP with `sudo apt-get install hplip-gui`
3. Install all stuff to satisfy `hp-doctor` requirements by:

        sudo apt-get build-dep hplip
        sudo apt-get install build-essential libtool libtool-bin libcups2-dev cups-bsd cups-client avahi-utils gtk2-engines-pixbuf xsane python3-notify2

4. Run `hp-doctor` and `hp-check`

Expected results:

* `hp-doctor` ran successfully without errors
* `hp-check` ran successfully without errors

Actual results:

```
$ hp-doctor

HP Linux Imaging and Printing System (ver. 3.20.3)
Self Diagnse Utility and Healing Utility ver. 1.0
...
Checking for Dependencies....
warning: ubuntu-20.04 version is not supported. Using ubuntu-19.10 versions dependencies to verify and install...
...
--------------
| PERMISSION |
--------------

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing or 'cups' service is not running.
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'python3-dbus.mainloop.qt' package is missing/incompatible
...

$ hp-check
Saving output in log file: /home/mate/hp-check.log

HP Linux Imaging and Printing System (ver. 3.20.3)
Dependency/Version Check Utility ver. 15.1
...
-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

Total Errors: 3
Total Warnings: 0

Done.

```

Note: many mentioned packages are already installed, Qt4 related packages are not installable:

```
$ sudo apt-get install libcups2 libcups2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcups2 is already the newest version (2.3.1-9ubuntu1.1).
libcups2-dev is already the newest version (2.3.1-9ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt-get install gtk2-engines-pixbuf
Reading package lists... Done
Building dependency tree
Reading state information... Done
gtk2-engines-pixbuf is already the newest version (2.24.32-4ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt-get install python3-pyqt4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-pyqt4

$ sudo apt-get install python3-dbus.mainloop.qt
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-dbus.mainloop.qt
E: Couldn't find any package by glob 'python3-dbus.mainloop.qt'
E: Couldn't find any package by regex 'python3-dbus.mainloop.qt'
```

Please consider to fix HPLIP package and support 20.04 LTS package base before 20.04.1 release!

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: hplip 3.20.3+dfsg0-2
ProcVersionSignature: Ubuntu 5.4.0-33.37-generic 5.4.34
Uname: Linux 5.4.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: MATE
Date: Sat May 30 12:25:39 2020
InstallationDate: Installed on 2020-04-23 (36 days ago)
InstallationMedia: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Lsusb-t:
 /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/12p, 12M
     |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/12p, 480M
MachineType: innotek GmbH VirtualBox
Papersize: a4
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-33-generic root=UUID=3947d85c-2c09-420b-802f-edf59648248a ro quiet splash
SourcePackage: hplip
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:rvnOracleCorporation:rnVirtualBox:rvr1.2:cvnOracleCorporation:ct1:cvr:
dmi.product.family: Virtual Machine
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH

Revision history for this message
Norbert (nrbrtx) wrote :
summary: - hp-doctor should support Ubuntu 20.04 LTS with its package base
+ HPLIP, hp-doctor, hp-check should support Ubuntu 20.04 LTS with its
+ package base
Changed in hplip:
status: New → In Progress
Changed in hplip (Ubuntu):
importance: Undecided → High
assignee: nobody → Till Kamppeter (till-kamppeter)
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

shivani1708, why did the previous version of HPLIP not correctly work on Ubuntu 20.04 and what did exactly get changed in HPLIP so that 3.20.5 works? I would like to have a patch to fix the HPLIP version which comes with Ubuntu 20.04.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed
Revision history for this message
Volodymyr Dudenko (volodymyr-1) wrote :

I second this, if there is something included in the lts, it should work, and HPLIP clearly doesn't. Besides that, the new version cannot be installed either because it cannot find several dependencies, including a required one (pyqt5).

Revision history for this message
Michael Johnson (samualblair) wrote :

Seems to be the same bug as 1878974 , although this one may have a better description.

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

Hi Till,

Here packages are failing on ubuntu 20.04 for user.
For 3.20.5,package installation will be working properly.
Yes but print and scan through usb will not work because of ippusbxd in ubuntu 20.04.

Revision history for this message
Volodymyr Dudenko (volodymyr-1) wrote :

Hello Shivani,
I cannot install HPLIP 3.20.5 in Ubuntu 20.04, because it requires a pyqt5 package which is nowhere to be found. I know this should be a separate bug, but I'm just replying to your statement that 3.20.5 installation should work.

Revision history for this message
Norbert (nrbrtx) wrote :

The Qt4 is missed in 20.04 LTS, not the Qt5.
All other seems to be true.

Anyway HPLIP developers should fix all issues running it on 20.04 LTS. I see many negative reports about running HPLIP on 20.04 LTS. Check https://askubuntu.com/search?tab=newest&q=hplip%2020.04 .

Revision history for this message
Karl Meyer (karl34) wrote :

Norbert, thank you for this list. Therein I found https://askubuntu.com/a/1248018, which solved the issue for me to bring my printer back to work with 20.04. Not a real solution, but for me a practical workaround.

Chris York (1-0hris-x)
Changed in hplip (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Norbert (nrbrtx) wrote :

@Chris York (1-0hris-x)

please show us the packages with fixes!

Revision history for this message
Volodymyr Dudenko (volodymyr-1) wrote :

@Chris York (1-0hris-x)

If by fix you mean the new downloadable hplip-3.20.6, it has the same issue as 3.20.5 - can't install required dependency python-pyqt5.

Norbert (nrbrtx)
Changed in hplip (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
vmagnin (vincent-magnin) wrote :

Since the upgrade from Kubuntu 19.10 to 20.04, the scanner of my HP Photosmart 5524 is not recognized anymore. And the HPLIP 3.20.3 utilities can not be used because of python problems...

Revision history for this message
Mark Burns (hiraethmarkb) wrote :

In my case, I was experiencing the same issues with a fresh install of 20.04[1], for HP PhotoSmart 5520 (MFD).

I was generally able to print, it was a bit more finicky than it had been previously, however scanning didn't work. Simple Scan noted an error message about being unable to communicate with the device.

Running hp-doctor, or hp-check -t resulted the in getting same list of 'Missing Required Dependencies' as the OP did.

After doing a bit of digging, I did the following:

* Purged all HPLIP packages [2], e.g.

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

* Reinstalled the HPLIP packages from the repos (after having a failed run of the Automated Installer available on HP's website) [3]

sudo apt-get install hplip hplip-gui

After that, both printing and scanning worked without issue.

Interestingly enough, running hp-doctor notes the same 'Missing Required Dependencies' as it did previously.

[1] Regolith Linux, https://regolith-linux.org/
[2] https://askubuntu.com/questions/1056077/how-to-install-latest-hplip-on-my-ubuntu-to-support-my-hp-printer-and-or-scanner
[3] https://askubuntu.com/questions/1137815/how-to-install-hplip-on-my-ubuntu-to-support-my-hp-printer-and-or-scanner

Revision history for this message
Mark Burns (hiraethmarkb) wrote :

It seems I may have spoken too soon...

So I got the both the printer and the scanner working, however on next boot, it had reverted right back to only the being able to print.

Any attempt to scan resulted in the "Can't communicate with the device" error message.

Interestingly, *something* appears to automatically detect both the printer and scanner, as both the Gnome Control Center and Simple Scan list my device.

However, this apparently doesn't extend to HPLIP toolbox.

I have attached a copy the output from hp-check -i

Revision history for this message
Mark Burns (hiraethmarkb) wrote :

Screenshot of auto-detected printer in the Gnome Control Center

Revision history for this message
Mark Burns (hiraethmarkb) wrote :

Scanner listed/detected by SimpleScan

Revision history for this message
Mark Burns (hiraethmarkb) wrote :

Scanner error displayed by SimpleScan

Revision history for this message
Mark Burns (hiraethmarkb) wrote :

Printer displayed in CUPS

Revision history for this message
Mark Burns (hiraethmarkb) wrote :

HP Toolbox showing no devices.

Revision history for this message
Mark Burns (hiraethmarkb) wrote :

By running hp-setup, I am able to add my device, however it shows "Device communication error" with error code 5012.

Revision history for this message
Mark Burns (hiraethmarkb) wrote :

Screenshot showing error code (HP Toolbox).

Revision history for this message
Marek Wasenczuk (markwasenczuk) wrote :

Have recently changed from Ubuntu 18.04 to 20.04. Tried printing on my HP DeskJet 3630 All in One Series printer and cannot print - keep getting 'Device communication error'. Running 'hp-doctor'shows missing dependencies the same as reported by Norbert:

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing or 'cups' service is not running.
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

Need help to resolve this. Am NOT an expert in using the terminal. Need clear instructions PLEASE.

Revision history for this message
user1138 (user1138) wrote :

Quick FYI to possibly help others in the interim.

Despite the above detailed issues, which I share (KDE neon 5.19 User Edition (Ubuntu 20.04 LTS), HPLIP 3.20.3), I managed to get my HP OfficeJet 6950 printing, connected via USB, by doing the following.

1. "sudo apt-get install hplip" - with all the usual dependencies (cups, etc). Note: I did not install hplip-gui (unclear if this makes a difference or not).
2. Access the cups web interface in a browser "http://localhost:631" and go to > Administration > Add Printer.
3. Choosing the printer, I then selected - "Discovered Network Printers: HP OfficeJet 6950 (driverless) (HP OfficeJet 6950)"
4. Then set the printer Name/Description, next, next, next... and
5. Hey presto - it was printing again via USB.

Don't ask me how or why, but it'll do me for now! :-)

Scanning with XSane however is still not possible, and I couldn't find a workaround... so I'll hold out for the bug fix on that one.

Hope that helps somebody.

Revision history for this message
Marek Wasenczuk (markwasenczuk) wrote :

Thank you Webmaster4362. However cannot access the cups web interface "http://localhost:361" !! Any suggestions?

Revision history for this message
user1138 (user1138) wrote :

So long as the cups package is installed it should "just work" - https://ubuntu.com/server/docs/service-cups

    "CUPS can be configured and monitored using a web interface, which by default is available at http://localhost:631/admin. The web interface can be used to perform all printer management tasks."

AND - I'm assuming your ":361" was a typo...

Revision history for this message
Volodymyr Dudenko (volodymyr-1) wrote :

A Reddit user here https://www.reddit.com/r/Ubuntu/comments/jcx9y9/my_64_year_old_mom_upgraded_from_1804_to_2004_by/
has found the following solution:

In 20.04 hplip is broken for many HP Printers including mine. This is what I did to get it working again (basically using 20.10 hplip packages).
$ sudo apt purge hplip*
$ sudo apt autoremove
Download following packages from https://packages.ubuntu.com/groovy/hplip . Now the version number might be updated a little.
hplip_3.20.5+dfsg0-3build1_amd64.deb
hplip-data_3.20.5+dfsg0-3build1_all.deb
libhpmud0_3.20.5+dfsg0-3build1_amd64.deb
libsane-hpaio_3.20.5+dfsg0-3build1_amd64.deb
printer-driver-hpcups_3.20.5+dfsg0-3build1_amd64.deb
python3-pexpect_4.6.0-4_all.deb
python3-pil_7.2.0-1_amd64.deb
python3-reportlab_3.5.47-1_all.deb
python3-reportlab-accel_3.5.47-1_amd64.deb
$ sudo dpkg -i *.deb
Now auto install all dependencies
$ sudo apt -f install

So, basically, they installed hplip 3.20.5 for Ubuntu 20.10 on Ubuntu 20.04. Is there a way to move those packages to Ubuntu 20.04 repositories?

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.