Installing HPLIP for CUPS on a Raspberry Pi

If you have a HP printer or scanner and you want to be able to use it on your Raspberryi Pi running the Raspbian operating system, you`ll have to install HP Linux Imaging and Printing and CUPS.

In the terminal run the following commands:

sudo su
apt-get update
apt-get install hplip cups
usermod -a -G lpadmin pi

In a browser, on the raspberry pi you can now access the CUPS configuration screen at

If you also would like to use your MFP/scanner also run the following commands in the terminal:

apt-get install sane

The configuration and applications are up to you, the requirements are now installed.

11 thoughts on “Installing HPLIP for CUPS on a Raspberry Pi

      • When you install your printer sometimes it may need proprietary plugin specially in case of some HP Printers. Like mine HP M1136 MFP needed it.

        One thing that you need to make sure on raspberry pi that since root is disabled, I will suggest you to run
        $sudo hp-plugin
        since it needs root privileges to install this plugin.
        Without the plugin my printer was not bale to print.

  1. I am happy today (2/18/19), my HP ENVY 7640 fis finally working with your installation proceedures. It is much simpler than downloading the file “ and time
    consuming plus doesn’t work.

  2. Worked first time. I had installed and launched CUPS earlier but the HP Deskjet 3050A printer wasn’t in the list. After install hplip and a reboot, then there it was in the CUPS list!
    That’s it, I’m now free of Windows 10, and the printer hanging whenever it feels like it, even on USB. And no more waiting One Drive synch driving me mad, and no more Outlook 365 monthly subscription!

  3. This works great except hplip-3.16.11 is loaded and not the latest drivers to be found in hplip-3.19.12. As others have said, doesn’t work.

  4. Your method works !!!
    Others were time consuming, not to mention they fail …
    Thank you !!!

Leave a Reply

Your email address will not be published. Required fields are marked *