Installer une imprimante ou un scanner HP : HPLIP et plugins

Méthode avec IA testée OK : le script automatique est sur clé USB Linux : hplip_reinstall_apt_script.sh

1. Supprimer d’abord toute trace de programmes HPLIP

sudo dpkg -l | grep hpl

ii hplip-data 3.23.12+dfsg0-0ubuntu5 all HP Linux Printing and Imaging – data files

sudo apt remove --purge hplip*

Les paquets suivants seront ENLEVÉS : hplip-data*
Souhaitez-vous continuer ? [O/n]

2. Installer les pilotes HPLIP de base

sudo apt update
sudo apt install hplip hplip-gui hplip-doc

Les NOUVEAUX paquets suivants seront installés :
hplip hplip-data hplip-gui python3-dbus.mainloop.pyqt5 python3-notify2 hplip-doc

3. Installer les plugins (choix : depuis le site HP)

sudo hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.23.12)
Plugin Download and Install Utility ver. 2.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.

warning: It is not recommended to run ‘hp-plugin’ in a root mode.

HP Linux Imaging and Printing System (ver. 3.23.12)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP…

(Note: Defaults for each question are maked with a ‘*’. Press to accept the default.)


| PLUG-IN INSTALLATION FOR HPLIP 3.23.12 |

Option Description
———- ————————————————–
d Download plug-in from HP (recommended)
p Specify a path to the plug-in (advanced)
q Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d


| DOWNLOAD PLUGIN |

Checking for network connection…
Downloading plug-in from:
Downloading plug-in: [\ ] 0%Importing digital key


| INSTALLING PLUG-IN |

Creating directory plugin_tmp
Verifying archive integrity… 100% All good.
Uncompressing HPLIP 3.23.12 Plugin Self Extracting Archive 100%

HP Linux Imaging and Printing System (ver. 3.23.12)
Plugin Installer ver. 3.0

Plug-in version: 3.23.12
Installed HPLIP version: 3.23.12
Number of files to install: 64

  • You must agree to the license terms before installing the plug-in:
  • Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? yes

Done.

Brancher ensuite le câble USB de l’imprimante

… Son installation et paramétrage se lancent automatiquement …


Méthode 2 : ne fonctionne pas toujours…

Vérifier si l’imprimante est branchée

  1. sudo apt-get install hplip
  2. NB : si elle avait été mal installée auparavant : Supprimer l’imprimante , débrancher le cable USB puis le rebrancher

1) Télécharger et installer la version la plus récente de HPLIP.run
( ajuster la version HPLIP qui peut être différente de celle ci-dessous )

https://developers.hp.com/hp-linux-imaging-and-printing/gethplip 
chmod +x hplip-3.24.4.run
./hplip-3.24.4.run

2) Installer le plugin manquant :


https://developers.hp.com/sites/default/files/hplip-3.24.4-plugin.run
chmod +x hplip-3.24.4-plugin.run
./hplip-3.24.4-plugin.run

Brancher ensuite le câble USB de l’imprimante : Son installation et paramétrage se lancent automatiquement …