HPLIB not working on Ubuntu 22.10
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
|
#1 |
Your printer make and model? Connection method?
Revision history for this message
|
#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.
100% ./hplip-
chown: impossibile leggere la directory './hplip-3.22.10': Permesso negato
chgrp: impossibile leggere la directory './hplip-3.22.10': Permesso negato
./hplip-
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_
-
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:/
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-
sudo apt-get remove libhpmud0 libsane-hpaio printer-
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
|
#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
|
#4 |
luca@luca-
+ 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::
port = [631]
txt = ["mopria_
= enp6s0 IPv4 HP Color LaserJet MFP M277dw (AF5A9B) Internet Printer local
hostname = [NPIAF5A9B.local]
address = [192.168.1.22]
port = [631]
txt = ["mopria_
luca@luca-
+ 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::
port = [8080]
txt = ["note=" "duplex=F" "is=platen,adf" "cs=color,
= 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,
luca@luca-
ipps://
luca@luca-
Revision history for this message
|
#5 |
The URI for the printer is
ipps://
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
|
#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:/
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
|
#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
|
#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
|
#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:/
Can you help with this problem?
Provide an answer of your own, or ask Luca for more information if necessary.