How to set up HP printer drivers on Linux Mint?

How to set up the driver for an HP printer on Linux Mint or Ubuntu?

First install the packages:

sudo aptitude install hplip hplip-gui

Then run

sudo hp-setup

and follow the GUI instructions to set up the printer.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.


  1. Thank you very much. Like magic, your instruction connects my Linux 19.1 Tessa installed on Macbook to the HP Laserjet P1102w printer. I had wasted a night trying to set this up.

  2. Many, many thanks Eric! HP found the USB port that my printer was connected to using this method. Sourceforge’s HP installation couldn’t find the USB connection even though localhost found it earlier, and had successfully printed a test page.

  3. Laserjet 1320 not found or recognized. Location unknown. It keeps saying it may be due to a firewall setting. “This may be due to existing firewall settings blocking the required ports. When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link.

    That link is not found. I think I’m supposed to find a location from the printer, or on the ISP online 168 address, but I haven’t found it.

    It prints fine as a USB printer, but can’t set it up as a network printer on my D-Link2750b router.

    1. sudo lpinfo -v
      This command resulted in all blank results, just a list of network socket
      network lpd
      network ipp14
      network beh
      network ipp
      network https
      network http
      network ipps
      direct hp
      network smb

  4. This is a problem of locating the network usb address. Many solutions advise connecting USB printer to USB router port, and then running CUPS, HPLIP or Linux install. This is known as installing a network printer. No one says they have successfully done this let alone shown how they did it. It cannot be done.

  5. Printers seems to have installed, but I’m really not sure if it’s an actual install of the usb-router connection, or a mis-read of the printer previously installed as direct PC to usb install. Printing a test page yields “cups-waiting-for-job-completed” and it never prints.

Leave a Reply

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