How to Install HPLIP on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure HPLIP on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

HPLIP a.k.a HP Linux Image and Printing, developed by HP for Printing, scanning, and faxing with HP inkjet and laser-based printers in Linux platforms. The latest version of HPLIP 3.21.2 contains new printer support and added support to the new Distro’s and the HPLIP installer is available for download from SourceForge.

Warning before installation: If you are upgrading HPLIP and HPLIP is already preinstalled with your distribution, or if you installed HPLIP using an RPM, DEB, or other packages, please uninstall the previous version using the method specific for your distribution. If you do not do this, you may have package conflict issues or functionality problems.

Install HPLIP on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install HPLIP on the Ubuntu system.

  • Install HPLIP from the Ubuntu package.

Run the following command below to install it:

sudo apt install hplip-gui
  • Install HPLIP from the official source.

Download the installer file from the Sourceforge site or use the below command:


Now make it executable:

chmod -R 755

Next, run the Automatic installer:


After installation, it will show a printer installation wizard and you can add the printer to the system.

Install HPLIP on Ubuntu 20.04

That’s all you need to do to install HPLIP on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on HPLIP, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.