I am not sure if all the files listed above absolutely need to be removed. After that, ensure that the following files are not present any more (or that the respective folders are empty): /etc/hp/nf As noted by N0rbert (main answer), you need to completely uninstall the actual version of HPLIP before you install another version. However, a compatibility issue raised with the package python-gobject. At Ubuntu 16.04 official repository, the available version was 3.16.3.įirst I tried to install the latest version, downloaded from the website. Until a few weeks ago, the latest HPLIP driver version, available at HP Developers - HP Linux Imaging and Printing, was 3.18.12. When everything is installed edit the /usr/share/hplip/*.py python files to replace first line ( #!/usr/bin/env python) by #!/usr/bin/python3 as it is in debian and ubuntu hplip packages. If you really need to install hplip from HP site, and you really need python2 based tools, you can always change temporarily the link on python version : sudo apt-get install python-is-python3 python-dev-is-python3 If you have the python2 compatibility packages installed, the scrip is fooled and tries to install python2 dependency packages that are no longer available. If you run the hplip install package, it will fail because it tries to find which version of python is to be used (probably by something based on python -version or equivalent). The easiest way to check is to run python -version and see if it's python version 2 or version 3. You need that for instance to run the color calibration suite Displa圜al (displaycal 3.8 still relies on python2 code). They just install some links so python and python-config point to the python2 version of these commands. Python2 is deprecated since Debian 11 (bullseye) and Ubuntu 20.04 LTS (focal) so many old python packages don't exist any more. Plus packages must explicitly refer to either python3 or python2 not python.įor compatibility with legacy python2 code using /usr/bin/python, two packages python-is-python2 and python-dev-is-python2 may already be installed on your system. Incompatibility with python2 legacy support on recent Debian and Ubuntu Note: I have reported bug 1782137 to HPLIP's LaunchPad account asking developers to include uninstallation feature of deb-packages HPLIP components from Ubuntu. Sudo rm -v /usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdiĪfterwards we install official Ubuntu packages instead (optionally): sudo apt-get -o Dpkg::Options::="-force-confask" install -reinstall hplip hplip-data hplip-doc hplip-gui libsane-hpaio We need to call special uninstallation script as follows: sudo hp-uninstall Let's consider that we have completed installation using file hplip-3.23.3.run (or other version). Here we start with binary HPLIP installation (so we do not have HPLIP-related deb-packages installed). The installation process is already well-documented on HPLIP site.Īfter installation it will show printer installation wizard and you can add printer to the system. 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). Step 2: Run the Automatic Installer sh hplip-3.23.3.run Step 1: Download the Automatic Installer (.run file) from official link for the Ubuntu or as for today using wget wget -c Then you should perform the following steps: Libsane-hpaio printer-driver-hpcups printer-driver-hpijs 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 \ If you do not do this, you may have package conflict issues or functionality problems. 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. HP have note about this problem on support page: If your system is a recent Debian (11 bullseye and newer) Ubuntu (20.04 LTS focal and newer), you should check for python2 legacy support installed (see below "Incompatibility with python2 legacy support on recent Debian and Ubuntu") Currently there are no PPAs with newer hplip packages.īut user can download and install binary from HP as described in their manual.īefore you proceed you should remove any hplip related packages to avoid possible future conflicts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |