HPLIB not working on Ubuntu 22.10

Asked by Luca

Good morning. I am unable to install HPLIB on Ubuntu 22.10. The error consists of some required packages that are not present. Do you know approximately when the updated version of HPLIB with support for 22.10 will be released?

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

Your printer make and model? Connection method?

Revision history for this message
Luca (lucapada) said :
#2

It's an HP LaserJet MFP M277dw connected to PC using through network using LAN cable. The problem I've is on required dependencies that cannot be installed. I tried to manually install them but they seem not to exist...
Here you can find what happens in terms of shell results:

./hplip-3.22.10.run
Creating directory hplip-3.22.10
Verifying archive integrity... 100% All good.
Uncompressing HPLIP 3.22.10 Self Extracting Archive./hplip-3.22.10.run: 540: cd: can't cd to hplip-3.22.10
  100% ./hplip-3.22.10.run: 542: cd: can't cd to hplip-3.22.10
chown: impossibile leggere la directory './hplip-3.22.10': Permesso negato
chgrp: impossibile leggere la directory './hplip-3.22.10': Permesso negato

./hplip-3.22.10.run: 555: cd: can't cd to hplip-3.22.10
find: ‘./hplip-3.22.10’: Permesso negato

HP Linux Imaging and Printing System (ver. 3.22.10)
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_Sat-17-Dec-2022_21:53:57.log

-
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
error: ubuntu-22.10 version is not supported, so all dependencies may not be installed. However trying to install using ubuntu-22.04 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.22.10 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Ubuntu 22.10.

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

Initializing. Please wait...

ENTER USER PASSWORD
-------------------
Please enter the sudoer (luca)'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

RUNNING HPLIP LIBS REMOVE COMMANDS
----------------------------------
sudo apt-get remove libhpmud0 libsane-hpaio printer-driver-postscript-hp
sudo apt-get remove libhpmud0 libsane-hpaio printer-driver-postscript-hp ( hp_libs_remove step 1)
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
libtool base REQUIRED
cups-devel base REQUIRED
cups-image base REQUIRED
libusb base REQUIRED
sane-devel scan REQUIRED
libavahi-dev scan REQUIRED
xsane scan OPTIONAL
dbus fax REQUIRED
libnetsnmp-devel network REQUIRED
libcrypto network REQUIRED
python3-notify2 gui_qt5 OPTIONAL
python3-pyqt4-dbus gui_qt4 OPTIONAL
python3-pyqt4 gui_qt4 REQUIRED
python3-pyqt5-dbus gui_qt5 OPTIONAL
python3-pyqt5 gui_qt5 REQUIRED
python3-devel base REQUIRED
python3-pil scan OPTIONAL
python3-reportlab fax OPTIONAL
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: 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: This installer cannot install 'python3-pyqt4' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.

Revision history for this message
brian_p (claremont102) said :
#3

Thanks for the info. Please give the outputs of

  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp
  driverless

Revision history for this message
Luca (lucapada) said :
#4

luca@luca-optiplex755:~$ avahi-browse -rt _ipp._tcp
+ enp6s0 IPv6 HP Color LaserJet MFP M277dw (AF5A9B) Internet Printer local
+ enp6s0 IPv4 HP Color LaserJet MFP M277dw (AF5A9B) Internet Printer local
= enp6s0 IPv6 HP Color LaserJet MFP M277dw (AF5A9B) Internet Printer local
   hostname = [NPIAF5A9B.local]
   address = [fd00::de4a:3eff:feaf:5a9b]
   port = [631]
   txt = ["mopria_certified=1.2" "print_wfds=T" "mac=dc:4a:3e:af:5a:9b" "usb_MDL=HP Color LaserJet MFP M277dw" "usb_MFG=Hewlett-Packard" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=564e4238-4843-4e33-4d4d-dc4a3eaf5a9b" "Fax=T" "Scan=T" "Duplex=T" "Color=T" "note=" "adminurl=http://NPIAF5A9B.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus" "priority=10" "product=(HP Color LaserJet MFP M277dw)" "ty=HP Color LaserJet MFP M277dw" "URF=V1.4,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,DM1,IS1,MT1-2-3-5-12,RS600" "rp=ipp/print" "pdl=image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg" "qtotal=1" "txtvers=1"]
= enp6s0 IPv4 HP Color LaserJet MFP M277dw (AF5A9B) Internet Printer local
   hostname = [NPIAF5A9B.local]
   address = [192.168.1.22]
   port = [631]
   txt = ["mopria_certified=1.2" "print_wfds=T" "mac=dc:4a:3e:af:5a:9b" "usb_MDL=HP Color LaserJet MFP M277dw" "usb_MFG=Hewlett-Packard" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=564e4238-4843-4e33-4d4d-dc4a3eaf5a9b" "Fax=T" "Scan=T" "Duplex=T" "Color=T" "note=" "adminurl=http://NPIAF5A9B.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus" "priority=10" "product=(HP Color LaserJet MFP M277dw)" "ty=HP Color LaserJet MFP M277dw" "URF=V1.4,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,DM1,IS1,MT1-2-3-5-12,RS600" "rp=ipp/print" "pdl=image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg" "qtotal=1" "txtvers=1"]

luca@luca-optiplex755:~$ avahi-browse -rt _uscan._tcp
+ enp6s0 IPv6 HP Color LaserJet MFP M277dw (AF5A9B) _uscan._tcp local
+ enp6s0 IPv4 HP Color LaserJet MFP M277dw (AF5A9B) _uscan._tcp local
= enp6s0 IPv6 HP Color LaserJet MFP M277dw (AF5A9B) _uscan._tcp local
   hostname = [NPIAF5A9B.local]
   address = [fd00::de4a:3eff:feaf:5a9b]
   port = [8080]
   txt = ["note=" "duplex=F" "is=platen,adf" "cs=color,grayscale" "pdl=application/pdf,image/jpeg" "uuid=564e4238-4843-4e33-4d4d-dc4a3eaf5a9b" "rs=eSCL" "representation=http://NPIAF5A9B.local/ipp/images/printer.png" "vers=2.5" "usb_MDL=HP Color LaserJet MFP M277dw" "usb_MFG=Hewlett-Packard" "mdl=MFP M277dw" "mfg=Hewlett Packard" "ty=HP Color LaserJet MFP M277dw" "adminurl=http://NPIAF5A9B.local." "txtvers=1"]
= enp6s0 IPv4 HP Color LaserJet MFP M277dw (AF5A9B) _uscan._tcp local
   hostname = [NPIAF5A9B.local]
   address = [192.168.1.22]
   port = [8080]
   txt = ["note=" "duplex=F" "is=platen,adf" "cs=color,grayscale" "pdl=application/pdf,image/jpeg" "uuid=564e4238-4843-4e33-4d4d-dc4a3eaf5a9b" "rs=eSCL" "representation=http://NPIAF5A9B.local/ipp/images/printer.png" "vers=2.5" "usb_MDL=HP Color LaserJet MFP M277dw" "usb_MFG=Hewlett-Packard" "mdl=MFP M277dw" "mfg=Hewlett Packard" "ty=HP Color LaserJet MFP M277dw" "adminurl=http://NPIAF5A9B.local." "txtvers=1"]

luca@luca-optiplex755:~$ driverless
ipps://HP%20Color%20LaserJet%20MFP%20M277dw%20(AF5A9B)._ipps._tcp.local/
luca@luca-optiplex755:~$

Revision history for this message
brian_p (claremont102) said :
#5

The URI for the printer is

ipps://HP%20Color%20LaserJet%20MFP%20M277dw%20(AF5A9B)._ipps._tcp.local/

Substitute for it in the command

  lpadmin -p M277dw -v "URI" -E -m everywhere

to set up a print queue. Test with

  lp -d M277dw /etc/nsswitch.conf

This method does not involve HPLIP.

Revision history for this message
Luca (lucapada) said :
#6

Ok. I've done this, but I wanted to install HPLIB to have also the monitor of the printer and all the functionalities of my printer such as scanning and also advanced print options.
I run again the .run file I downloaded from HPLIB website (https://developers.hp.com/hp-linux-imaging-and-printing/gethplip) and I continue getting this error at the end of the execution:

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
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: This installer cannot install 'python3-pyqt4' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

1. The name of the tool isn't HPLIB but HPLIP

2. On an Ubuntu system you should not install the *.run file (because of dependency problems), but better use the dedicated packages that have been created for Ubuntu
sudo apt install hplip-gui

Revision history for this message
brian_p (claremont102) said :
#8

> Ok. I've done this, but I wanted to install
> HPLIB to have also the monitor of the
> printer and all the functionalities of my
> printer such as scanning and also advanced
> print options.

If you are determined to use HPLIP, I would strongly advise following Manfred Hampl's advice. However,
I would doubt HPLIP gives anything extra in the way
of monitoring and advanced print options.

Scanning on Ubuntu 22.10 is super easy. Please give
the output of

  scanimage -L

Revision history for this message
janebutt (dsvdfh) said :
#10

1. Please note that the correct name of the tool is HPLIP, not HPLIB.

Installation tip for Ubuntu users:

2. If you are using an Ubuntu system, it's advisable not to install the *.run file due to potential dependency problems. Instead, opt for the dedicated packages specifically created for Ubuntu. You can easily install it with the following command:

sudo apt install hplip-gui

By using the accurate tool name and following the recommended installation method for Ubuntu, you can avoid any compatibility issues and smoothly set up HPLIP with the hplip-gui package on your system. For More Visit: https://fulfillgenie.com/

Can you help with this problem?

Provide an answer of your own, or ask Luca for more information if necessary.

To post a message you must log in.