Latest update: august 2022 for Ubuntu 22.04. and hplip version 3.22.6.
If you are here, you probably tried to install hplip without success.
Prerequisite: make sure you are using Python3.x running
$ python --version
If you are using Python2.x you should switch to Python3. Pay attention to old software you are running with Python2…this operation may break something!
$ sudo apt install python-dev-is-python3
$ sudo apt install python-is-python3
Old hplip packages can be removed during the installation process in the “DEPENDENCY AND CONFLICT RESOLUTION” phase.
Let’s start with the installation.
Go to the developer website and take a look to the section named “Advanced Option“.
…or if you want to download the package directly you can run:
$ wget https://sourceforge.net/projects/hplip/files/hplip/3.22.6/hplip-3.22.6.tar.gz/download
Unpack it and run the installer:
$ mv download hplip-3.22.6.tar.gz
$ tar -xvf hplip-3.22.6.tar.gz
$ cd hplip-3.22.6
Follow the most suitable wizard and be patient…pay attention to each installation step and read carefully what the wizard is saying. In most cases you can simply confirm the default choice suggested by the wizard. Retry the command if you face some exceptions and wait if the process takes a little bit longer.
At the end of the wizard if you don’t find any problem the package has been installed. In case hp-plugin cannot be installed, you are asked to do it manually:
error: hp-plugin command failed. Please run hp-plugin manually.
Let’s now add the printer. Run the following command and follow the instructions:
Now to scan a document you have to run
In some cases you need to restart the OS to make it work after the installation.
If you find any problem please share it here.
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.