Install HP Printer drivers in Ubuntu, Linux Mint, and elementary OS

HP Linux Imaging and Printing (HPLIP) is an HP-developed application for printing, scanning, and faxing with HP inkjet and laser based printers connected to Linux computers. The HPLIP  includes print, scan, and fax support for 2594 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP.

Check if HPLIP is already installed

Most of recent Linux distros come preinstalled with a version of HPLIP, but it’s possible that you may not have the latest one. It’s a good idea to first check if at all your PC already has the latest HPLIP installed or not.

Launch ‘Terminal’ and enter the following command in it.

dpkg -l hplip

Uninstall HPLIP

If this version is not the latest, you can simply uninstall it and install the latest version as described below. Even if you proceed without uninstalling, the HPLIP installer will prompt you that there is already a version available and you can then choose to remove the old and install the latest package. This command will remove HPLIP from your PC.

dpkg -r hplip

Before you start installing HPLIP, I suggest confirming if your HP printer is compatible with this application. You can look up your exact HP model number compatibility at their official webpage.

Install HP Linux Imaging and Printing in Ubuntu, Linux Mint, and elementary OS

This guide will also serve as a reference for those who want to reinstall HP drivers due to corrupted programs and broken packages.

STEP 1: Go to the official HP SourceForge webpage and download the HPLIP installer package. It should look something like hplip-3.16.11.run. The version number may be different in your case.

STEP 2: Go to ‘Applications’ or ‘Menu’ and launch ‘Terminal’.

STEP 3: I’m assuming that the downloaded hplip-3.16.11.run installer is in ‘Downloads’ directory. Navigate into it using cd command:

cd Downloads

HPLIP Installation
HPLIP Installation

STEP 4:  Use list command to see the contents of the ‘Downloads’ directory.

ls

STEP 5: Run the installer using sh command

sh hplip-3.16.11.run

STEP 6: Pay attention to ‘Terminal’ progress. Type ‘y’ and hit enter for automatic installation prompt followed by ‘a’.

STEP 7: It will confirm your current Linux distro. Enter ‘y’ and hit enter.

Linux Mint Terminal showing HPLIP installation
Linux Mint Terminal showing HPLIP installation

STEP 8: Enter your root password to continue installation.

STEP 9: Press enter to continue.

STEP 10: It will ask if would you like to have this installer install the hplip specific policy/profile. Type ‘y’ and continue.

STEP 11: In this step, it will show you dependencies that are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed. Go ahead and type ‘y’.

Terminal showing Dependencies of HPLIP
Terminal showing Dependencies of HPLIP

STEP 12: The installer will no automatically run dpkg command for each of the dependencies to download and install them. You need to have an internet connection.

STEP 13: If your PC already has HPLIP installed, the installer will prompt you whether to remove and install or quit the installation. If you are upgrading HPLIP or reinstalling HPLIP, you should continue to remove and install.

STEP 14: The installer will automatically compile the package for you and run the commands ‘./configure’ and ‘make’. You don’t need to do anything.

STEP 15: Enter ‘y’ when it prompts to keep HPLIP updated.

STEP 16: Printer drivers and imaging application should be complete by this stage. From next step onward, it’s more of connecting your computer to the printer and get things working. Quitting any of below steps won’t break drivers and applications that are already installed.

STEP 15: Your HP printer must now be connected to your PC and switched ON to continue from here in GUI mode. Enter ‘u’ and continue in GUI mode.

STEP 16: Select Printer connection type.

Printer Connection Type
Printer Connection Type

STEP 17: Select the Printer to be configured.

STEP 18: Select the PPD file (or driver) to be used for your Printer. The PPD files which are nothing but drivers which are most similar to your printer are displayed. Select the appropriate PPD file for your printer.

STEP 19: Confirm the Printer Settings and finish the configuration process.

STEP 20: Click  ‘AddPrinter’ to complete the printer setup process.

This application is released by HP as free and open source software (FOSS). You won’t get a official support, but informal support is open on their launchpad website just in case if you happened to have any questions.

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities, especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. I hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

15 COMMENTS

  1. Kiran,
    Sadly Elementary OS is not a supported distro for auto install. And if you try to use the Ubuntu options it fails to find several required packages that my system says are installed and up to date. It appears to be a brick wall.

    • Same for me 🙁 elementary is not supported.
      INSTALL MISSING REQUIRED DEPENDENCIES
      ————————————-
      note: Installation of dependencies requires an active internet connection.
      warning: Missing REQUIRED dependency: python-devel (Python devel – Python development files)
      warning: This installer cannot install ‘python-devel’ for your distro/OS and/or version.
      error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.

      to much for me 🙁

  2. Hello Kiran, I checked at the official website and could not find my printer which is HP Laserjet p1108 mentioned among the 2594 printers. Will downloading the hplip help?

  3. all good til the end then the program install gives an error message of ‘cups not installed’ you need to install cups to continue…….grrrr

  4. on my device it ends with this message in terminal:
    error: hp-systray cannot be run as root. Exiting.

    Is this alarming?

    It also repeats this mesage as a pop-up everytime I start my computer. I’m running Pop_OS.

  5. on my device it ends with this message in terminal:
    error: hp-systray cannot be run as root. Exiting.

    Is this alarming?

    It also repeats this mesage as a pop-up everytime I start my computer. I’m running Pop_OS.

    My printer is also twice in my printer devices settings:
    1. Photosmart_B110
    2. Photosmart_B110_series_3E1670_

    Is this normal too?

  6. Hello admin! May I know the exact steps of how to to solve hp printer not printing black issue as I have Hp Printer and I am unable to solve hp printer offline issue . Can someone help me to with this?

  7. Newb here.
    Unable to use the scanner software. Mint 19.3, HP M29 print/scanner. Get this message in terminal:

    70CDA59047B9
    Creating directory plugin_tmp
    Verifying archive integrity… All good.
    Uncompressing HPLIP 3.20.3 Plugin Self Extracting Archive……………………………………………………..

    HP Linux Imaging and Printing System (ver. 3.20.3)
    Plugin Installer ver. 3.0
    Plug-in version: 3.20.3
    Installed HPLIP version: 3.20.3
    Number of files to install: 64

    Plugin installation failed
    error: Python gobject/dbus may be not installed
    error: Plug-in install failed.

    Done.

    Any ideas?
    Thanks!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,647FansLike
360FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to install CMake on Ubuntu

CMake is a cross-platform free and open-source software tool designed to build, test, and package the software. CMake uses a simple platform and compiler-independent configuration files to control the software compilation process.

How to install Lightworks on Ubuntu

Even though Linux may not get a native installer of video editing software like Adobe Premiere or Final Cut Pro, that doesn't mean there are no industry standards tools available. Lightworks is non-linear editing (NLE) video mastering app for Windows, Linux, and macOS. Installing it on Ubuntu is simple due to deb package availability.

How to install DaVinci Resolve on Fedora

Davinci Resolve is a professional application used for color correction, video editing, visual effects, and motion graphics. It is one of the extensively used software by movie industries located in Hollywood.

The 10 Best Programming Languages for Hacking

One of the significant entities we have in Cyber Security is Ethical Hacking (ETH). It is the process of detecting and finding flaws or vulnerabilities in a system that a hacker would exploit.

5 Ways to Open a Terminal in Ubuntu

Even though Ubuntu supports many applications with amazing Graphical User Interfaces (GUI), there are always reasons why users prefer using the Terminal to perform different tasks.

How to install Wine on Fedora Workstation

Linux distributions are becoming more and more popular every day, and Fedora Workstation is not left behind. This popularity brings forth the need to run Windows applications on Linux distros like Fedora. Windows has quite some excellent Software that is not available for Linux.

MUST READ

Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

5 Best Ways to Free up Hard Disk Space in Ubuntu

Hard disk space can easily get filled up with cached package files, old kernels, and other obsolete files that occupy unwanted hard disk space. Here are top five best and safer ways to clean and free up hard disk space in Ubuntu. We show you Terminal and GUI way of cleaning up system.

5 Best Music Players for Linux

For sure, there will be Linux users out there who cannot live without music. If you're one of those people, you would know how important it is to have a good music player installed on your computer system. In this article, we present to you the 5 Best Music Players for Linux, which will hopefully be able to satisfy each of our readers' needs.

10 ways to use the Chown command with examples

Any file in a Linux system belongs to a particular owner(s) and a group. It is one of the many features that maintain security in Linux systems. For example; If a file belongs to say UserA, then UserB cannot manipulate the data depending on any additional permissions set unless the user has permission to do that.

Test drive a Linux distro online before you hate it

Enter DistroTest.net, a website that allows Linux users to test various distros online, without downloading the ISO or installing the distro. With DistroTest.net, you can check a distro with no muss, no fuss.