HPLIP GUI not working properly in Linux mint20 Cinnamon

Bug #1892889 reported by Swati Biswas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

My printer model is HP Deskjet Ink Advantage 5075.
At first, tried to install hplip 3.20.6 using automatic installation steps but it showed errors-
'''
swati@Swati-PC:~$ cd Downloads/Packages
swati@Swati-PC:~/Downloads/Packages$ sh hplip-3.20.6.run
Creating directory hplip-3.20.6
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.6 Self Extracting Archive.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.20.6)
HPLIP Installer ver. 5.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Installer log saved in: hplip-install_Tue-25-Aug-2020_11:47:05.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
error: linuxmint-20 version is not supported, so all dependencies may not be installed. However trying to install using linuxmint-19.3 version packages.

Press 'y' to continue auto installation. Press 'n' to quit auto instalation(y=yes, n=no*): y

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) : a

INTRODUCTION
------------
This installer will install HPLIP version 3.20.6 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Linux Mint 20.

Is "Linux Mint 20" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y

Initializing. Please wait...

ENTER USER PASSWORD
-------------------
Please enter the sudoer (swati)'s password:

INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https://help.ubuntu.com/community/Repositories/Ubuntu for more information. Disable the CD-ROM/DVD source if you do not have the Ubuntu installation media inserted in the drive.

Please read the installation notes. Press <enter> to continue or 'q' to quit:

SECURITY PACKAGES
-----------------
AppArmor is installed.
AppArmor protects the application from external intrusion attempts making the application secure

Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ? y

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK

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
python3-pyqt4 gui_qt4 REQUIRED
python3-devel base REQUIRED
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: libjpeg (libjpeg - JPEG library)
warning: Missing REQUIRED dependency: libtool (libtool - Library building support services)
warning: Missing REQUIRED dependency: cups-devel (CUPS devel- Common Unix Printing System development files)
warning: Missing REQUIRED dependency: cups-image (CUPS image - CUPS image development files)
warning: Missing REQUIRED dependency: libusb (libusb - USB library)
warning: Missing REQUIRED dependency: python3-devel (Python devel - Python development files)
warning: Missing REQUIRED dependency: libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: Missing REQUIRED dependency: libcrypto (libcrypto - OpenSSL cryptographic library)
warning: Missing REQUIRED dependency: python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: dbus (DBus - Message bus system)
warning: Missing REQUIRED dependency: sane-devel (SANE - Scanning library development files)

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)

CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.

RUNNING PRE-PACKAGE COMMANDS
----------------------------
sudo dpkg --configure -a (Pre-depend step 1)
sudo apt-get install --yes --force-yes -f (Pre-depend step 2)
sudo apt-get update (Pre-depend step 3)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --assume-yes libjpeg8-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libtool'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libtool-bin'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups-bsd'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups-client'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libcupsimage2-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libusb-1.0.0-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-pyqt4'
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

note: Please check for more information at http://hplipopensource.com/node/369
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? y
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

note: Please check for more information at http://hplipopensource.com/node/369
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo apt-get install --assume-yes libdbus-1-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libsane-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-notify2'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes mate-notification-daemon'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-dbus.mainloop.qt'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python3-dbus.mainloop.qt'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python3-dbus.mainloop.qt'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python3-dbus.mainloop.qt'
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

note: Please check for more information at http://hplipopensource.com/node/369
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo apt-get install --no-install-recommends --assume-yes xsane'
Please wait, this may take several minutes...
Running 'sudo DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install libsnmp-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get --assume-yes install snmp-mibs-downloader'
Please wait, this may take several minutes...
Running 'sudo DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install openssl'
Please wait, this may take several minutes...
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.
swati@Swati-PC:~/Downloads/Packages$
swati@Swati-PC:~/Downloads/Packages$ apt install python3-pyqt4
[sudo] password for swati:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-pyqt4
'''

Later, I installed hplip gui using
sudo apt install hplip-gui xsane
it installed successfully but it showed a red cross on the printer logo in the hp toolbox.
'''
swati@Swati-PC:~$ dpkg -l hplip
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-==============-============-============================================
ii hplip 3.20.3+dfsg0-2 amd64 HP Linux Printing and Imaging System (HPLIP)
'''

I also tried to setup the printer using
 hp-setup -i
 and it completed successfully but in hp toolbox, it still showing red cross and error message that the printer is either busy or unplugged ( even though actually printer is connected).
'''
swati@Swati-PC:~$ hp-setup -i

HP Linux Imaging and Printing System (ver. 3.20.3)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  -------- ---------- ----------------------------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

Setting up device: hp:/usb/DeskJet_5000_series?serial=TH79E491RM

---------------------
| PRINT QUEUE SETUP |
---------------------

Please enter a name for this print queue (m=use model name:'DeskJet_5000'*, q=quit) ?m
Using queue name: DeskJet_5000
Locating PPD file... Please wait.

Found PPD file: hplip:0/ppd/hplip/HP/hp-deskjet_5000_series.ppd
Description:

Note: The model number may vary slightly from the actual model number on the device.

Does this PPD file appear to be the correct one (y=yes*, n=no, q=quit) ? y
Advantage 5075on description for this printer (q=quit) ?HP Deskjet Ink
Enter additonal information or notes for this printer (q=quit) ?

Adding print queue to CUPS:
Device URI: hp:/usb/DeskJet_5000_series?serial=TH79E491RM
Queue name: DeskJet_5000
PPD file: hplip:0/ppd/hplip/HP/hp-deskjet_5000_series.ppd
Location: HP Deskjet Ink Advantage 5075
Information:

---------------------
| PRINTER TEST PAGE |
---------------------

Would you like to print a test page (y=yes*, n=no, q=quit) ? n

Done.
'''

The problems might be arising due to bug in the driver. I am unable to access the printer functionalities using hplip gui in Linux mint 20 Cinnamon.

I also ran the script "hp-doctor" in a terminal, output is given below:
swati@Swati-PC:~$ hp-doctor

HP Linux Imaging and Printing System (ver. 3.20.3)
Self Diagnse Utility and Healing Utility ver. 1.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

HP Linux Imaging and Printing System (ver. 3.20.3)
Self Diagnse Utility and Healing Utility ver. 1.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Checking for Deprecated items....
No Deprecated items are found

Checking for HPLIP updates....
error: Failed to locate hp-upgrade utility

Checking for Dependencies....
warning: linuxmint-20 version is not supported. Using linuxmint-19.3 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 GNU/Linux
 Host: Swati-PC
 Proc: 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 GNU/Linux
 Distribution: linuxmint 20
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.20.3
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for linuxmint distro 20 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.20.3

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.3
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[fax]
email_address =
voice_phone =

[installation]
date_time = 08/25/20 21:09:06
version = 3.20.3

[last_used]
device_uri = "hp:/usb/DeskJet_5000_series?serial=TH79E491RM"
printer_name = DeskJet_5000
working_dir = .

[polling]
device_list =
enable = false
interval = 5

[refresh]
enable = false
rate = 30
type = 1

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1596788018
notify_upgrade = false
pending_upgrade_time = 0

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

-------------------------
| External Dependencies |
-------------------------

 error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.50 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.29 OK -
 dbus DBus - Message bus system REQUIRED - 1.12.16 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 network network -wget OPTIONAL - 1.20.3 OK -
 avahi-utils avahi-utils OPTIONAL - 0.7 OK -

------------------------
| General Dependencies |
------------------------

 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - OK -
 cups-image CUPS image - CUPS image development files REQUIRED - - OK -
 libpthread libpthread - POSIX threads library REQUIRED - b'2.31' OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 sane SANE - Scanning library REQUIRED - - OK -
 sane-devel SANE - Scanning library development files REQUIRED - - OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.8 OK -
 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
 python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.8.2 OK -
 python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
 python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
 python3-xml Python XML libraries REQUIRED - 2.2.9 OK -
 python3-devel Python devel - Python development files REQUIRED 2.2 3.8.2 OK -
 python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 7.0.0 OK -
 python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.34 OK -

--------------
| COMPILEDEP |
--------------

 libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 9.3.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.2.1 OK -

---------------------
| Python Extentions |
---------------------

 cupsext CUPS-Extension REQUIRED - 3.20.3 OK -
 hpmudext IO-Extension REQUIRED - 3.20.3 OK -

----------------------
| Scan Configuration |
----------------------

'/etc/sane.d/dll.d/hpaio' not found.
 hpaio HPLIP-SANE-Backend REQUIRED - 3.20.3 OK 'hpaio found in /etc/sane.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.20.3 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `escl:http://127.0.0.1:60000' is a ESCL HP DeskJet 5000 series [D9B468] (USB) flatbed scanner
device `hpaio:/usb/DeskJet_5000_series?serial=TH79E491RM' is a Hewlett-Packard DeskJet_5000_series all-in-one

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI Model
  -------------------------------- ----------------------
  hp:/usb/DeskJet_5000_series?seri HP DeskJet 5000 series
  al=TH79E491RM

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

DeskJet_5000
------------
Type: Printer
Device URI: hp:/usb/DeskJet_5000_series?serial=TH79E491RM
PPD: /etc/cups/ppd/DeskJet_5000.ppd
warning: Failed to read /etc/cups/ppd/DeskJet_5000.ppd ppd file
PPD Description:
Printer status: printer DeskJet_5000 is idle. enabled since Tuesday 25 August 2020 07:05:33 PM
Communication status: Good

HP_DeskJet_5000_series_D9B468_USB_
----------------------------------
Type: Unknown
Device URI: implicitclass://HP_DeskJet_5000_series_D9B468_USB_/
PPD: /etc/cups/ppd/HP_DeskJet_5000_series_D9B468_USB_.ppd
warning: Failed to read /etc/cups/ppd/HP_DeskJet_5000_series_D9B468_USB_.ppd ppd file
PPD Description:
Printer status: printer HP_DeskJet_5000_series_D9B468_USB_ is idle. enabled since Tuesday 25 August 2020 09:09:10 PM
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

--------------
| PERMISSION |
--------------

USB DeskJet_5000 Required - - OK Node:'/dev/bus/usb/001/009' Perm:' root lp rw- rw- rw- rw- r--'
Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing or 'cups' service is not running.
error: 'python3-pyqt4' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

ENTER SUDO PASSWORD
-------------------
Please enter the sudoer (swati)'s password:

Checking Permissions....

Checking for Configured Queues....
warning: Fail to read ppd=/etc/cups/ppd/DeskJet_5000.ppd file
warning: Insufficient permission to access file /etc/cups/ppd/DeskJet_5000.ppd
warning: Could not complete Queue(s) configuration check

Checking for HP Properitery Plugin's....
No plug-in printers are configured.

Diagnose completed...

More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html
swati@Swati-PC:~$

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

Hi Swati,

We will provide support for Linux Mint 20.04 in our september release.
Please wait till then.

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.