Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/03/2018, à 20:59

Woodlander

résolu - HPLIP - imprimante HP Laserjet Pro M102a

Bonsoir,
Je viens d'acheter une imprimante HP Laserjet M102a après m'être assuré en consultant le site https://developers.hp.com/hp-linux-imag … ices/index qu'elle est reconnue et fonctionne sous Linux.
Je l'ai déballée, branchée au secteur et à mon PC par câble USB, puis je l'ai allumée.
Les voyants se sont allumés sur l'imprimante pour un fonctionnement normal.
L'imprimante figure bien dans le menu "imprimantes" des paramètres système.
captur16.jpg
Quand j'ai voulu imprimer une page de test avec ce menu, il ne s'est rien passé.
J'ai vérifié la version de hplip présente sur mon ordinateur. Il s'agit de la 3.16.3

louis@louis-All-Series:~$ apt-cache policy hplip
hplip:
  Installé : 3.16.3+repack0-1
  Candidat : 3.16.3+repack0-1
 Table de version :
 *** 3.16.3+repack0-1 500
        500 http://fr.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
louis@louis-All-Series:~$ 

Or l'imprimante a été intégrée dans hplip depuis sa version 3.16.11 (cf. page "supported printers", dont l'adresse figure plus haut).
J'ai donc téléchargé la dernière version de hplip (3.18.3) à partir de la page https://developers.hp.com/hp-linux-imag … g/gethplip.
J'ai lancé la commande sh hplip-3.18.3.run à partir de la console.
Voici le résultat :

louis@louis-All-Series:~$ cd Bureau
louis@louis-All-Series:~/Bureau$ sh hplip-3.18.3.run
Creating directory hplip-3.18.3
Verifying archive integrity... All good.
Uncompressing HPLIP 3.18.3 Self Extracting Archive...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

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

Copyright (c) 2001-15 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_Thu-29-Mar-2018_21:45:15.log

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

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) : 


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


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

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

Initializing. Please wait...


ENTER USER PASSWORD
-------------------
Please enter the sudoer (louis)'s password: 
error: Password incorrect. 2 attempt(s) left.
Please enter the sudoer (louis)'s password: 

J'ai réessayé plusieurs fois d'entrer mon code, qui a été refusé à chaque fois.
J'ai supprimé le fichier run et l'ai téléchargé à nouveau, recommencé la manip, avec le même résultat.
J'ai également essayé avec la version 3.16.11 que j'ai trouvée là : https://developers.hp.com/hp-linux-imag … /downloads avec le même résultat.
Mon code d'administrateur est toujours refusé.

Pouvez-vous m'aider à faire fonctionner cette imprimante, soit en installant une version récente de hplip, soit par toute autre manœuvre qui conviendrait ?

Je vous remercie à l'avance.

Dernière modification par Woodlander (Le 30/03/2018, à 01:03)


PC fixe "maison" - carte mère ASUS H81M-M - Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz - 8Go RAM - Ubuntu 18.04.1 LTS 64 bits

Hors ligne

#2 Le 29/03/2018, à 23:10

Woodlander

Re : résolu - HPLIP - imprimante HP Laserjet Pro M102a

J'ajoute que la commande lsusb indique bien la présence d'un périphérique HP :

louis@louis-All-Series:~$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 04a9:1907 Canon, Inc. CanoScan LiDE 700F
Bus 003 Device 004: ID 046d:082b Logitech, Inc. Webcam C170
Bus 003 Device 003: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 003 Device 006: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 003 Device 002: ID 03f0:612a Hewlett-Packard 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
louis@louis-All-Series:~$ 

Par contre, la toolbox de HP ne détecte aucune imprimante installée.

Je vous serai vraiment très reconnaissant de m'aider à faire fonctionner cette imprimante neuve et prévue pour être compatible avec Linux.


PC fixe "maison" - carte mère ASUS H81M-M - Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz - 8Go RAM - Ubuntu 18.04.1 LTS 64 bits

Hors ligne

#3 Le 29/03/2018, à 23:28

Woodlander

Re : résolu - HPLIP - imprimante HP Laserjet Pro M102a

Lors de recherches sur le site HP, j'ai trouvé la commande hp-check -t qui fait des vérifications sur l'installation de hplip et donne un diagnostic.
Voici le résultat :

louis@louis-All-Series:~$ hp-check -t
Saving output in log file: /home/louis/hp-check.log

HP Linux Imaging and Printing System (ver. 3.16.3)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-15 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: 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 GNU/Linux
 Host: louis-All-Series
 Proc: 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 GNU/Linux
 Distribution: ubuntu 16.04
 Bitness: 64 bit


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

HPLIP-Version: HPLIP 3.16.3
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro  16.04 version 

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

[hplip]
version=3.16.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=yes
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=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.16.3
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=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:
[installation]
date_time = 03/30/18 00:21:30
version = 3.16.3


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

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

 gs                   GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.18            OK         -
 error: cups          CUPS - Common Unix Printing System                           REQUIRED        1.1             -               INCOMPAT   'CUPS may not be installed or not running'
 policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               0.105           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.0.25          OK         -
 error: dbus          DBus - Message bus system                                    REQUIRED        -               1.10.6          MISSING    'DBUS may not be installed or not running'
 avahi-utils          avahi-utils                                                  OPTIONAL        -               0.6.32          OK         -
 network              network -wget                                                OPTIONAL        -               1.17.1          OK         -

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

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

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

 make                 make - GNU make utility to maintain groups of programs       REQUIRED        3.0             4.1             OK         -
 error: libtool       libtool - Library building support services                  REQUIRED        -               -               MISSING    'libtool needs to be installed'
 gcc                  gcc - GNU Project C and C++ Compiler                         REQUIRED        -               5.4.0           OK         -

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

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

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

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

-----------------------
|  Other Dependencies |
-----------------------


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

device `genesys:libusb:003:005' is a Canon LiDE 700F flatbed scanner


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

No devices found.

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

 
HP-HP-LaserJet-M101-M106-TurboPrint
-----------------------------------
Type: Unknown
Device URI: tpu://HP/HP_LaserJet_M101-M106/SN=VNF3B12317
PPD: /etc/cups/ppd/HP-HP-LaserJet-M101-M106-TurboPrint.ppd
warning: Failed to read /etc/cups/ppd/HP-HP-LaserJet-M101-M106-TurboPrint.ppd ppd file
PPD Description: 
Printer status: printer HP-HP-LaserJet-M101-M106-TurboPrint is idle.  enabled since jeu.L'imprimante est inactiveST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

iP4800-series
-------------
Type: Unknown
Device URI: usb://Canon/iP4800%20series?serial=A25CEB
PPD: /etc/cups/ppd/iP4800-series.ppd
warning: Failed to read /etc/cups/ppd/iP4800-series.ppd ppd file
PPD Description: 
Printer status: printer iP4800-series disabled since lun. 26 mars 2018 11:34:10 CEST -  Unplugged or turned off
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

iP4850-TurboPrint
-----------------
Type: Unknown
Device URI: parallel:/dev/lp0
PPD: /etc/cups/ppd/iP4850-TurboPrint.ppd
warning: Failed to read /etc/cups/ppd/iP4850-TurboPrint.ppd ppd file
PPD Description: 
Printer status: printer iP4850-TurboPrint disabled since lun. 26 mars 2018 11:31:34 CESTRejecting Jobs
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.


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

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

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible 
error: 'libdbus-1-dev' package is missing/incompatible 
error: 'openssl' package is missing/incompatible 
error: 'python3-dev' package is missing/incompatible 
error: 'libusb-1.0.0-dev' package is missing/incompatible 
error: 'libsane-dev' package is missing/incompatible 
error: 'libcupsimage2-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: 'libsnmp-dev' package is missing/incompatible 
error: 'snmp-mibs-downloader' package is missing/incompatible 
error: 'libjpeg-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 

Total Errors: 12
Total Warnings: 3


Done.
louis@louis-All-Series:~$ 

Le résumé final indique une douzaine d'erreurs que je ne sais pas comment rectifier.


PC fixe "maison" - carte mère ASUS H81M-M - Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz - 8Go RAM - Ubuntu 18.04.1 LTS 64 bits

Hors ligne

#4 Le 30/03/2018, à 00:24

Woodlander

Re : résolu - HPLIP - imprimante HP Laserjet Pro M102a

J'ai continué mes recherches, et bien que le modop indiqué en tête de la rubrique "imprimantes" pour l'installation de HPLIP date de plusieurs années, j'ai commencé à en suivre les instructions.
J'ai donc installé Synaptic et désinstallé entièrement la version de HPLIP présente sur mon système.
J'ai également supprimé dans les "paramètres système" l'imprimante HP que j'essaie d'installer (j'en ai profité pour supprimer également l'imprimante Canon que la HP doit remplacer).

Je suis maintenant bloqué, car mon code administrateur est toujours refusé par hplip.3.18.3.run.


PC fixe "maison" - carte mère ASUS H81M-M - Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz - 8Go RAM - Ubuntu 18.04.1 LTS 64 bits

Hors ligne

#5 Le 30/03/2018, à 01:02

Woodlander

Re : résolu - HPLIP - imprimante HP Laserjet Pro M102a

J'ai résolu mon problème.
Mon mot de passe n'était pas accepté par hplip car il contient des caractères spéciaux.
J'ai modifié mon mot de passe et recommencé l'installation, qui a parfaitement fonctionné.
cool


PC fixe "maison" - carte mère ASUS H81M-M - Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz - 8Go RAM - Ubuntu 18.04.1 LTS 64 bits

Hors ligne