Currently there are no PPAs with newer
But user can download and install binary from HP as described in their manual.
Before you proceed you should remove any
hplip related packages to avoid possible future conflicts.
HP have note about this problem on support page:
Warning: If you are upgrading HPLIP and HPLIP is already preinstalled with your distribution, or you if you installed HPLIP using an RPM, DEB, or other package, please uninstall the previous version using the method specific for your distribution. If you do not do this, you may have package conflict issues or functionality problems.
I have experimentally determined the list of packages (tested on 16.04 LTS, 18.04 LTS, 20.04 LTS and 21.04) and below are commands:
sudo apt-get purge hplip hplip-data hplip-doc hplip-gui hpijs-ppds \
libsane-hpaio printer-driver-hpcups printer-driver-hpijs
sudo rm -rf /usr/share/hplip/
sudo apt-get autoremove
Then you should perform the following steps:
Step 1: Download the Automatic Installer (.run file) from official link for the Ubuntu or as for today using
Step 2: Run the Automatic Installer
Then follow instructions on screen (it should ask password of your
sudo-capable user to run
apt, and remove
hplip-gui files if they were installed). The installation process is already well-documented on HPLIP site.
After installation it will show printer installation wizard and you can add printer to the system.
Here we start with binary HPLIP installation (so we do not have HPLIP-related deb-packages installed).
Let's consider that we have installation file
hplip-3.21.6.run in the current directory. We need to extract archive from it and then run uninstallation script.
sh hplip-3.21.6.run --noexec
sudo python3 ./uninstall.py
sudo rm -vrf /usr/share/hplip/
sudo rm -vrf /root/.hplip
sudo rm -v /usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi
Afterwards we install official Ubuntu packages instead (optionally):
sudo apt-get install hplip-gui
Note: I have reported bug 1782137 to HPLIP's LaunchPad account asking developers to include uninstallation feature of deb-packages HPLIP components from Ubuntu.