#1 Le 15/04/2025, à 18:15
- arnoxz
HPLIP (imprimante hp Deskjet_2540) sur LTS 24
Bonjour,
Je termine l'installation de la version LTS 24.04.
Apparemment l'application HP HPLIP ne semble pas supportée par cette dernière version LTS ?
Commrent y remédier ? Aussi pour le scanner (numériseur de documents par défaut) qui ne fonctionne pas (détection et recherche de périphérique ok, mais aucun résultat et termine en erreur - impossible de se connecter au périphérique)
Pour la partie impression je peux fournir ceci (bien que ce soit indiqué que libtool doit être installé et il l'est, l'erreur reste permanente) -merci
$hp-check
HP Linux Imaging and Printing System (ver. 3.23.12)
Printer Discovery Utility ver. 4.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.
--------------------------------
| 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
--------------------
| DEVICE DISCOVERY |
--------------------
Device URI Model
------------------------------------------------- ----------------------
hp:/usb/Deskjet_2540_series?serial=CN56F672WW0604 HP Deskjet 2540 series
Found 1 printer(s) on the 'usb' bus.
Done.
lvsl@lvsl-pc:~$ hp-check
Saving output in log file: /home/lvsl/hp-check.log
HP Linux Imaging and Printing System (ver. 3.23.12)
Dependency/Version Check Utility ver. 15.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.
Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to
determine if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already
built HPLIP supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and
run-time dependencies).
Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION
Status Types:
OK
MISSING - Missing Dependency or Permission or Plug-in
INCOMPAT - Incompatible dependency-version or Plugin-version
warning: ubuntu-24.04 version is not supported. Using ubuntu-23.04 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
---------------
Kernel: 6.11.0-21-generic #21~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 24 16:52:15 UTC 2 GNU/Linux
Host: lvsl-pc
Proc: 6.11.0-21-generic #21~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 24 16:52:15 UTC 2 GNU/Linux
Distribution: ubuntu 24.04
Bitness: 64 bit
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.23.12
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for ubuntu distro 24.04 version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.23.12
[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.23.12
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 = 04/15/25 18:06:00
version = 3.23.12
[last_used]
device_uri = "hp:/usb/Deskjet_2540_series?serial=CN56F672WW0604"
printer_name = HP-Deskjet-2540-series
working_dir = .
[polling]
device_list =
enable = false
interval = 5
[refresh]
enable = false
rate = 30
type = 1
[settings]
systray_messages = 0
systray_visible = 1
[upgrade]
last_upgraded_time = 1594908640
notify_upgrade = true
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 10.02.1 OK -
error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.2.1 OK -
error: dbus DBus - Message bus system REQUIRED - 1.14.10 MISSING 'DBUS may not be installed or not running'
policykit PolicyKit - Administrative policy framework OPTIONAL - - OK -
network network -wget OPTIONAL - 1.21.4 OK -
avahi-utils avahi-utils OPTIONAL - 0.8 OK -
------------------------
| General Dependencies |
------------------------
error: libjpeg libjpeg - JPEG library REQUIRED - - MISSING 'libjpeg needs to be installed'
error: cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - MISSING 'cups-devel needs to be installed'
error: cups-image CUPS image - CUPS image development files REQUIRED - - MISSING 'cups-image needs to be installed'
libpthread libpthread - POSIX threads library REQUIRED - b'2.39' OK -
error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'
sane SANE - Scanning library REQUIRED - - OK -
error: sane-devel SANE - Scanning library development files REQUIRED - - MISSING 'sane-devel needs to be installed'
error: libavahi-dev libavahi-dev REQUIRED - - MISSING 'libavahi-dev needs to be installed'
error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 - MISSING 'libnetsnmp-devel needs to be installed'
error: libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 3.0.13 MISSING 'libcrypto needs to be installed'
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.12.3 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.3.2 OK -
python3-xml Python XML libraries REQUIRED - 2.6.1 OK -
error: python3-devel Python devel - Python development files REQUIRED 2.2 3.12.3 MISSING 'python3-devel needs to be installed'
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 10.2.0 OK -
error: python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 - MISSING 'python3-reportlab needs to be installed'
--------------
| COMPILEDEP |
--------------
error: libtool libtool - Library building support services REQUIRED - - MISSING 'libtool needs to be installed'
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 13.3.0 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.3 OK -
---------------------
| Python Extentions |
---------------------
cupsext CUPS-Extension REQUIRED - 3.23.12 OK -
hpmudext IO-Extension REQUIRED - 3.23.12 OK -
----------------------
| Scan Configuration |
----------------------
'/etc/sane.d/dll.d/hpaio' not found.
hpaio HPLIP-SANE-Backend REQUIRED - 3.23.12 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.23.12 OK -
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
device `escl:http://localhost:60000' is a ESCL Deskjet 2540 series [CA7419] (USB) platen scanner
device `hpaio:/usb/Deskjet_2540_series?serial=CN56F672WW0604' is a Hewlett-Packard Deskjet_2540_series all-in-one
device `airscan:e0:Deskjet 2540 series [CA7419] (USB)' is a eSCL Deskjet 2540 series [CA7419] (USB) ip=127.0.0.1, ::1
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
Device URI Model
------------------------------------------------- --------------------------
hp:/usb/Deskjet_2540_series?serial=CN56F672WW0604 HP Deskjet 2540 series
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
Type: Printer
Device URI: hp:/usb/Deskjet_2540_series?serial=CN56F672WW0604
error: Device busy: hp:/usb/Deskjet_2540_series?serial=CN56F672WW0604
error: Device not found
error: Communication status: Failed
Type: Printer
Device URI: hp:/usb/Deskjet_2540_series?serial=CN56F672WW0604
error: Device busy: hp:/usb/Deskjet_2540_series?serial=CN56F672WW0604
error: Device not found
error: Communication status: Failed
Type: Unknown
Device URI: implicitclass://Deskjet_2540_series_CA7419_USB/
--------------
| PERMISSION |
--------------
USB Deskjet_2540-HP Required - - OK Node:'/dev/bus/usb/003/007' Perm:' root lp rw- rw- rw- rw- rw- r--'
-----------
| SUMMARY |
-----------
Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libjpeg-dev' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libusb-0.1-4' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libavahi-client-dev' package is missing/incompatible
error: 'libavahi-core-dev' package is missing/incompatible
error: 'libavahi-common-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'snmp-mibs-downloader' package is missing/incompatible
error: 'openssl' package is missing/incompatible
error: 'python3-dev' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'libtool-bin' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'xsane' package is missing/incompatible
error: 'python3-reportlab' package is missing/incompatible
Total Errors: 18
Total Warnings: 0
Done.
Dernière modification par arnoxz (Le 16/04/2025, à 15:00)
Hors ligne
#2 Le 15/04/2025, à 18:39
- xubu1957
Re : HPLIP (imprimante hp Deskjet_2540) sur LTS 24
Bonjour,
Essaye :
Comme d'habitude :
Désinstalle l'imprimantehp-setup -ir
Installe l'imprimante :
hp-setup -iax
> [Résolu] Le scanner ne fonctionne pas avec Ubuntu Mate 21.4 (HP 2540)
I ] Le Titre du message
Cela parait bête, mais si dans le titre la marque et le modèle de l'imprimante pouvait être écrit cela serait déjà super utile pour les aidants, qui peuvent déjà se faire une première idée des pilotes qu'il te faut et de la procédure qu'il te faudra suivre pour les installer au besoin.
Dernière modification par xubu1957 (Le 15/04/2025, à 18:50)
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
En ligne
#3 Le 16/04/2025, à 15:09
- arnoxz
Re : HPLIP (imprimante hp Deskjet_2540) sur LTS 24
Merciii beaucoup (je pense avoir déjà eu le problème précédemment en plus)
Donc d'abord
sudo apt-get remove ipp-usb
puis les 2 commandes ci-dessus pour la deskjet HP 2540 et ça fonctionne !! :-)
Hors ligne
#4 Le 16/04/2025, à 15:32
- Poun64
Re : HPLIP (imprimante hp Deskjet_2540) sur LTS 24
Bonjour Arnoxz, bonjour toul'monde !
Retour d'expérience : J'ai déjà été confronté au problème sur le PC d'une copine (Xubuntu 24.04 et Multifonction HP Deskjet_2540).
La partie imprimante était bien reconnue par le système sans autre artifice, seule la partie scanner ne fonctionnait pas.
Sur la doc d'HPLIP https://doc.ubuntu-fr.org/hplip au paragraphe "3.6 Le greffon propriétaire on lit" on lit : Pour la version 24.04 il est nécessaire de (le) télécharger manuellement...
À distance, j'ai installé HPLIP des dépots (version 3.23.12) en faisant :
sudo apt install hplip hplip-gui
Puis téléchargé/installé le greffon qui va bien en faisant :
wget https://developers.hp.com/sites/default/files/hplip-3.23.12-plugin.run
sudo sh hplip-3.23.12-plugin.run
Enfin, j'ai installé "Xsane" parce que ça ne fonctionnait pas avec "Simple-scan" (je ne sais pas pourquoi) :
sudo apt install xsane
De mémoire, toujours à distance, je crois que j'ai lancé :
hp-setup
sans installer l'imprimante mais en installant le scanner... Et ça fonctionne !
Dernière modification par Poun64 (Le 16/04/2025, à 16:01)
1) Xubuntu 24.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 24.04._LTS + Windows 11 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS + Xubuntu 24.04 - Asus X751L - Intel I5-5200U - 4 cœurs - 2.20GHz - N'Vidia GeForce 920M - 12 Go de RAM
Hors ligne
#5 Le 16/04/2025, à 16:16
- arnoxz
Re : HPLIP (imprimante hp Deskjet_2540) sur LTS 24
Merci Poun64 pour le complément d'information, mais c'est déjà résolu, j'avais déjà installé hplip précédemment (mais pas téléchargé manuellement il était dans les paquets (Mate)), le problème, si je comprends bien est lié à la version 20 ou 24, il faut absolument dans un premier temps désinstaller [ipp-usb].... puis installer l'imprimante, tout est automatique ensuite, et le "numériseur de document" par défaut fonctionne bien chez moi !
Dernière modification par arnoxz (Le 16/04/2025, à 16:18)
Hors ligne
#6 Le 16/04/2025, à 16:27
- Poun64
Re : HPLIP (imprimante hp Deskjet_2540) sur LTS 24
Merci pour ton retour, il faut que je me reconnecte à distance au PC de ma copine pour voir si son paquet "ipp-usb" est installé.
Chez-moi, toujours sous Xubuntu 24.04 avec une multifonction "LaserJet 100 MFP M175", je n'ai eu aucun problème avec HPLIP des dépots et le paquet "ipp-usb" (démon pour IPP à travers USB de la prise en charge d’imprimantes) est installé...
1) Xubuntu 24.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 24.04._LTS + Windows 11 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS + Xubuntu 24.04 - Asus X751L - Intel I5-5200U - 4 cœurs - 2.20GHz - N'Vidia GeForce 920M - 12 Go de RAM
Hors ligne
#7 Le 24/04/2025, à 23:26
- Poun64
Re : HPLIP (imprimante hp Deskjet_2540) sur LTS 24
Bonsoir toul'monde !
Comme promis ci-dessus, j'ai bien vérifié que le paquet "ipp-usb" est installé sur le Xubuntu 24.04 de ma copine et que ma méthode décrite au #4 fonctionne toujours sur sa Multifonction HP Deskjet_2540.
Amicalement
1) Xubuntu 24.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 24.04._LTS + Windows 11 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS + Xubuntu 24.04 - Asus X751L - Intel I5-5200U - 4 cœurs - 2.20GHz - N'Vidia GeForce 920M - 12 Go de RAM
Hors ligne