Page 1 sur 1

scan avec HP deskjet 2821e

Posté : mar. 12 août 2025 15:14
par lolodusuc
Bonjour,
je cherche à realiser des scans multipages sur ma HP deskjet 2821e.
les divers logiciels de scan ne detectent pas mon imprimante.
j'ai vérifié que la version de hplip installée (3.23.12) était bien supérieure à celle requise par l'imprimante (3.23.8).
si je lance hp-setup en ayant branché un cable usb entre l'ordi et l'imprim, il ne semble pas y avoir de communication ("device1/0 error")

voici le retour de hp-check

Code : Tout sélectionner

lolo@lolo-desktop:~$ hp-check
Saving output in log file: /home/lolo/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: linuxmint-22 version is not supported. Using linuxmint-21.1 versions dependencies to verify and install...

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

 Kernel: 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 GNU/Linux
 Host: lolo-desktop
 Proc: 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 GNU/Linux
 Distribution: linuxmint 22
 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 linuxmint distro  22 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:
[plugin]
installed = 1
eula = 1
version = 3.23.12



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

[fax]
email_address = 
voice_phone = 

[last_used]
device_uri = 
printer_name = 
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 = 1754940948
notify_upgrade = false
pending_upgrade_time = 0

[installation]
date_time = 08/12/25 15:11:11
version = 3.23.12


 <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         -
 xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.999           OK         -
 scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.2.1           OK         -
 dbus                 DBus - Message bus system                                    REQUIRED        -               1.14.10         OK         -
 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 |
------------------------

 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.39'         OK         -
 error: libusb        libusb - USB library                                         REQUIRED        -               1.0             MISSING    'libusb needs to be installed'
 sane                 SANE - Scanning library                                      REQUIRED        -               -               OK         -
 sane-devel           SANE - Scanning library development files                    REQUIRED        -               -               OK         -
 libavahi-dev         libavahi-dev                                                 REQUIRED        -               -               OK         -
 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         -
 python3-devel        Python devel - Python development files                      REQUIRED        2.2             3.12.3          OK         -
 python3-pil          PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -               10.2.0          OK         -
 python3-reportlab    Reportlab - PDF library for Python                           OPTIONAL        2.0             4.1.0           OK         -

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

 libtool              libtool - Library building support services                  REQUIRED        -               2.4.7           OK         -
 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 |
------------------------------

No Scanner found.

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

No devices found.

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

 

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

 
-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible 
error: 'libusb-1.0.0-dev' package is missing/incompatible 

Missing Optional Dependencies
-----------------------------
None


Total Errors: 6
Total Warnings: 0


Done.
qu'est-ce que j'aurais raté ?

merci pour votre aide
laurent

Re: scan avec HP deskjet 2821e

Posté : mer. 13 août 2025 12:50
par lolodusuc
bien vu_!
merci cyrille
j'ai cherché la version de hplip qui est compatible avec mint 22, et c'est la derniere en date: 3.25.6 (https://developers.hp.com/hp-linux-imag ... ease_notes)
à l'aide de ce tuto https://doc.ubuntu-fr.org/hplip j'ai désinstallé ma version de hplip, téléchargé et installé la plus récente.
puis j'ai lancé hp-setup qui s'est bien déroulé pour configurer l'imprimante en wifi (il faut trouver le bon cable qui permet de la brancher en usb le temps de l'installation)

MAIS
simple scan ni gscan2pdf ne voient pas le scanner alors qu'il devrait avoir été installé en même temps

à toute fins utiles, le retour de hpcheck

Code : Tout sélectionner

lolo@lolo-desktop:~$ hp-check
/usr/bin/hp-check:630: SyntaxWarning: invalid escape sequence '\s'
  lsusb_pat = re.compile("""^Bus\s([0-9a-fA-F]{3,3})\sDevice\s([0-9a-fA-F]{3,3}):\sID\s([0-9a-fA-F]{4,4}):([0-9a-fA-F]{4,4})(.*)""", re.IGNORECASE)
/usr/bin/hp-check:685: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="?
  if 'getfacl' not in g and '' is not g and 'file' not in g:
/usr/share/hplip/base/queues.py:49: SyntaxWarning: invalid escape sequence '\*'
  NICKNAME_PATTERN = re.compile(b'''\*NickName:\s*\"(.*)"''', re.MULTILINE)
Saving output in log file: /home/lolo/hp-check.log

HP Linux Imaging and Printing System (ver. 3.25.6)
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

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

 Kernel: 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 GNU/Linux
 Host: lolo-desktop
 Proc: 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 GNU/Linux
 Distribution: 22 22
 Bitness: 64 bit


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

HPLIP-Version: HPLIP 3.25.6
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for linuxmint distro  22 version 

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

[hplip]
version=3.25.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.25.6
html=/usr/share/doc/hplip-3.25.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
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=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.25.6
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
class-driver=no


Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.25.6



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

[fax]
email_address = 
voice_phone = 

[installation]
date_time = 08/13/25 12:49:23
version = 3.25.6

[last_used]
device_uri = "hp:/usb/DeskJet_2800_series?serial=CN447D802G"
printer_name = 
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 = 1755080254
notify_upgrade = false
pending_upgrade_time = 0


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

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

 cups                 CUPS - Common Unix Printing System                           REQUIRED        1.1             2.4.7           OK         'CUPS Scheduler is running'
 gs                   GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            10.02.1         OK         -
 xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.999           OK         -
 scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.4.0           OK         -
 dbus                 DBus - Message bus system                                    REQUIRED        -               1.14.10         OK         -
 policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               124             OK         -
 network              network -wget                                                OPTIONAL        -               1.21.4          OK         -
 avahi-utils          avahi-utils                                                  OPTIONAL        -               0.8             OK         -

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

 libjpeg              libjpeg - JPEG library                                       REQUIRED        -               -               OK         -
 cups-devel           CUPS devel- Common Unix Printing System development files    REQUIRED        -               2.4.7           OK         -
 cups-image           CUPS image - CUPS image development files                    REQUIRED        -               2.4.7           OK         -
 libpthread           libpthread - POSIX threads library                           REQUIRED        -               b'2.39'         OK         -
 libusb               libusb - USB library                                         REQUIRED        -               1.0             OK         -
 sane                 SANE - Scanning library                                      REQUIRED        -               1.4.0           OK         -
 sane-devel           SANE - Scanning library development files                    REQUIRED        -               1.4.0           OK         -
 libavahi-dev         libavahi-dev                                                 REQUIRED        -               -               OK         -
 libnetsnmp-devel     libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9           5.9.4           OK         -
 libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -               3.0.13          OK         -
 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         -
 python3-pyqt5-dbus   PyQt 5 DBus - DBus Support for PyQt5                         OPTIONAL        5.0             5.15.10         OK         -
 python3-pyqt5        PyQt 5- Qt interface for Python (for Qt version 4.x)         REQUIRED        5.0             5.15.10         OK         -
 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         -
 python3-devel        Python devel - Python development files                      REQUIRED        2.2             3.12.3          OK         -
 python3-pil          PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -               10.2.0          OK         -
 python3-reportlab    Reportlab - PDF library for Python                           OPTIONAL        2.0             4.1.0           OK         -

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

 libtool              libtool - Library building support services                  REQUIRED        -               2.4.7           OK         -
 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.25.6          OK         -
 hpmudext             IO-Extension                                                 REQUIRED        -               3.25.6          OK         -

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

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

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

No Scanner found.

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

No devices found.

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

 


Type: Printer
Device URI: hp:/usb/DeskJet_2800_series?serial=CN447D802G
Optional plug-in status: Installed
error: Device not found
error: Communication status: Failed



Type: Unknown
Device URI: implicitclass://HP_DeskJet_2800_series_C9CDD4/



Type: Unknown
Device URI: implicitclass://HP_DeskJet_2800_series_C9CDD4%40HP30138BC9CDD4.local/


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

 
-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None


Total Errors: 1
Total Warnings: 0


Done.

Re: scan avec HP deskjet 2821e

Posté : mer. 13 août 2025 16:15
par lolodusuc
re-bonjour,
probleme résolu avec l'installation d'une bibliotheque de librairie de Sane (https://sourceforge.net/projects/san-libs/)
le scanner est détecté en wifi tout comme l'imprimante;

un peu de sueur et de patience et ça finit par marcher avec l'aide du forum !
bonne journée
laurent