How to Install HP Printer in Ubuntu 18.04
1. Make sure you have several python
(aka python2) and python3
versions installed.
Check this thread if you wish to learn more.
2. Completely uninstall HPLIP,
3. Install HPLIP and its dependencies from Ubuntu 18.04 repository
At the time of writing it is HPLIP 3.17.10.
sudo apt install hplip hplip-gui hplip-data hplip-doc hpijs-ppds libsane-hpaio printer-driver-hpcups printer-driver-hpijs
4. Run hp-doctor
with python3
For those like myself, running hp-doctor
and hp-setup
commands alone may not work with the error: cupsext could not be loaded. please check hplip installation message printed out in response; you need to specify python version and point at where the respective binary files are located using which
command:
python3 $(which hp-doctor)
Make sure nothing is missing; everything should have OK
status.
5. Run hp-setup
with python3
python3 $(which hp-setup)
Follow the steps.
Related videos on Youtube
![D. Levin](https://lh6.googleusercontent.com/-rEImZaxXYbs/AAAAAAAAAAI/AAAAAAAAAAA/AAnnY7pq6rui_13LBqaRGRbXTHMItyMFEA/mo/photo.jpg?sz=256)
D. Levin
Updated on September 18, 2022Comments
-
D. Levin almost 2 years
I need to install a Color LaserJet Pro MFP M277dw printer on USB on a new desktop, which worked great with HPLIP on previous vers, but doesn't work with Ubuntu 18.04.
- Ubuntu comes with HPLIP 3.17 but it doesn't detect my printer. Using pkg mgr, I uninstalled & reinstalled it, installed missing dep, still failed.
-
Reinstalled ubuntu 18.04, followed How to install latest HPLIP on my Ubuntu to support my HP printer and/or scanner? exactly, and got
Failed to load module "canberra-gtk-module"
, andNo systemtrayicon available
, and printer not detected trying to install it:error: No device selected/specified or that supports this functionality. error: hp-setup failed. Please run hp-setup manually.
Note HPLIP 3.15.4 added my printer.
-
George Udosen almost 6 years
-
N0rbert almost 6 yearsAbout system tray say "thank you" to modern GNOME developments. About printer - did you forget to install proprietary Driver Plug-in? According to HP page your printer is supported since 3.15.4 (but 18.04 LTS has 3.17), so you do not need binary driver.
-
KiriSakow about 5 yearsThread you may find helpful: askubuntu.com/q/1056077/408652
-
stiv over 4 yearsI get: error: This distro (i.e ubuntu 18.04) is either deprecated or not yet supported. The diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):^Cerror: User exit