Printer info‎ > ‎

HPLIP Driver


There are 2 ways to install the latest HPLIP driver under Ubuntu:
  • Manually
  • Adding a PPA to the Software Source

Adding the driver manually requires some knowledge of the terminal.


Method 1:
To install the latest version of HPLIP driver by using a PPA, execute the following:
 
  • open a terminal (Applications > Accessoiries > Terminal)
  • type the following command: sudo add-apt-repository ppa:hplip-isv/ppa
  • press Enter and if needed, type the required password
  • type the following command: sudo apt-get update
  • then type the following command: sudo apt-get install hplip

Method 2:
Installing the latest HPLIP driver manually (command line installation):

First, download the latest HPLIP driver from this website. The link will open a webpage where some questions regarding model of printer and Linux distribution and version needs to be answered.

Tip:
Make sure the file will be downloaded in the /home/<username>/Downloads folder!

Secondly: after downloading the file it needs to be made executable. To do this, the following needs to be done:
  • Open a terminal
  • Browse to the Downloads folder: cd /Downloads
  • Then type the following command: sudo chmod +x hplip-*.**.**.run, (*.**.** is where the version number of the file needs to be filed in)
  • Press Enter and if required, type the user password and press Enter
The HPLIP driver is now executable. Keep the terminal open.

Do not switch on the printer during the installation procedure!!! If the printer is switched on, make sure it is switched off before starting the installation procedure.

To run the installation file it is not required to use sudo to get root privileges.
In the terminal type the following command: ./hplip-*.**.**.run

Note that the command starts with . (dot) / (slash) followed by the complete filename and ending on . (dot) run!

before the installation procedure starts the user must choose whether to install the driver manually (press c for custom) or automatically (press a for automatic). Best is to execute the installation procedure manually (custom) so that every step can be controlled and monitored by the user. There will also be some other questions asked regarding the installation of the new HPLIP driver. Read these questions carefully before answering.

The installation procedure will check for missing ask if older versions of the HPLIP driver must be removed. Confirm that this should be done to avoid any conflicts with older package versions.

At some point the user will be asked if the installation procedure must check automatically for missing required dependencies. Confirm that this should be done. This saves the user a lot of time installing missing dependencies manually using Synaptic.

When the missing dependencies are installed, the procedure continues with compiling the HPLIP driver. When the driver is compiled and installed, the user will be asked to restart or re-plug the printer.

Tip:
Always restart the computer, re-plugging in the printer doesn't always work. By restarting the computer and after logging in switching on the printer, the user forces Ubuntu to search for any printers connected.