I recently upgraded my Ubuntu desktop from 18.04 to 20.04. After this upgrade both of my HP printers stopped working.
I was able to use some suggestions in this ask Ubuntu post to restore printing for my Laser Jet Pro M118dw printer (my newer printer), but nothing so far has worked for my old HP Officejet 5740 (3 in one) printer.
I even tried downloading hplip-3.21.4.run
from the HP web site. But when I tried to run it, I got the following error message:
DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --assume-yes gtk2-engines-pixbuf'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) q
I would appreciate any advice that could help me get this printer working.
I was able to get hplip-3.21.4.run to run to completion by following the steps specified by Christian Haunert in #7 of answers.launchpad.net/hplip/+question/691141.
I was then able to install the HP Officejet 5740 printer. But when I tried to print to it nothing happened. IE: the printer produced no output and the print job seemed to run with no errors. So I am still in need of help or advice.