hplip for ubuntu
-
sudo apt install hplip (Linux driver for most HP's printers and scanners).
-
sudo apt install hplip-gui (required by hp-plugin).
-
hp-plugin (as normal user).
This plugin is a proprietary "part" of the driver which HP doesn't open-source. The device won't work without it. You will be prompted to accept the terms and install the required plugin for the exact version of the driver you have installed.
-
hp-doctor (to ensure every thing is installed properly, especially the plugin).
-
hp-setup to add the connected device, or use the HP's software (with graphical interface), already installed at this point.
-
Go to Ubuntu System Settings and add a new printer/scanner with HPLIP.
worked with ubuntu 18.04
Useful Links:
https://developers.hp.com/hp-linux-imaging-and-printing/gethplip
https://developers.hp.com/hp-linux-imaging-and-printing/plugins