Q:

Printer problems after installing Ubuntu 20.04

After installing 20.04 on my desktop, my printer has stopped working.
Printer: HP Envy 5640, connected via USB.
hplip installed.
cups installed.
Any suggestions appreciated.
Printer itself is OK as I have used it wirelessly to print from another PC on the network.

A:

Try sudo hp-setup -i. At least for USB. That finally helped me with a HP LaserJet Pro P1102w. 

A:

install hplip gui as below
sudo apt install hplip-gui

from hplip gui go to actions and then install required plugin.

And this fixed it for fr model HP LasetJet 1018

A:

I have solved with the following steps, don't know if all are required, most likely only step 3 is the fix.

Removed and reinstalled some packages:
sudo apt-get update
sudo apt-get remove hplip cups-filters cups hplip-data system-config-printer-udev
sudo apt-get install build-essential tix groff dc axel cups
sudo apt-get install cups-filters unp system-config-printer-gnome

installed hplip from the hp's Developer Portal:
https://developers.hp.com/hp-linux-imaging-and-printing/gethplip
ver 3.20.5 claims to be compatible with 20.04 but in my case was not
solving the issue:
Finally, changing permissions to the ppd file:
sudo chmod 644 /etc/cups/ppd/HP_ENVY_4520_series_XXXXXX_.ppd 

where (i suppose) XXXXXX should be part of the serial number of the printer

Now the printer works fine. It took me several days to achieve this result, the printer was working perfectly on 19.10, so I am a little disappointed of this issue.

