Can't install HP plugin on Ubuntu 20.04
Download a plugin from the OpenPrinting website. Install it with sh PLUGIN_FILENAME
.
Based on the second best answer needs python3 to run by default for me running python3 $(which hp-plugin)
fixes the problem and the dialog continues.
Wish i knew what is going on here though...
(ubuntu 20.04 with ColorLaserjet Pro MFP M281fdw here)
Thanks everyone for the suggestions. I finally solved this, Here is what I did. First as suggested I updated python to python 3 as described above. This fixed half the problem. Next I downloaded the hplip tarball from developers.hp.com/hp-linux-imaging-and-printing/gethplip
The problem is that in hplip/base/password.py they are still using platform.dist()[0] which was removed in python 3.8
So comment out hplip/base/password.py as follows:
`84 # try:
85 # os_name = platform.dist()[0]
86 # except AttributeError:
87 # import distro
88 # os_name = distro.linux_distribution()[0]
89`
or remove the code. Next go to https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
download both the plugin.run and the plugin.run.asc files that match the version of hplip tarball you just downloaded.
Now follow the directions at developers.hp.com for installing the tarball.
Everything now works on my system.