can't uninstall hplip

Bug #2008635 reported by Donald H Locker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

hplip (3.22.10) installed on 27 Jan 2023; this caused a number of other programs to fail (took a while to diagnose -- report from failing programs was consistentlly: "cryptography pkg 39.0.0 incompatible with pyOpenSSL 21.0.0"); finally traced to hplip installation.

FWIW, the last time I ran hp device manager (about two weeks ago) it worked fine; the only changes to the machine logged between then and now have been two automatic software updates. Ubuntu 22.0.4; System76 Gazelle17 uptodate on firmware and software.

Today, tried hplip-uninstall; error message: (uninstaller log stops at "Uninstaller log saved in:..."); hp-doctor fails same;
> donald@dhl-gazelle22:~$ sudo hp-uninstall
> [sudo] password for donald:
>
> HP Linux Imaging and Printing System (ver. 0.0.0)
> HPLIP Uninstaller ver. 1.0
>
> Copyright (c) 2001-18 HP Development Company, LP
> This software comes with ABSOLUTELY NO WARRANTY.
> This is free software, and you are welcome to distribute it
> under certain conditions. See COPYING file for more details.
>
> Uninstaller log saved in: /root/.hplip/hplip-uninstall.log
>
> -Traceback (most recent call last):
> File "/usr/bin/hp-uninstall", line 129, in <module>
> core.init()
> File "/usr/share/hplip/installer/core_install.py", line 525, in init
> self.distro_name = self.distros_index[self.distro]
> KeyError: 0
> donald@dhl-gazelle22:~$

Result of hp-check:
> donald@dhl-gazelle22:~$ hp-check
> /usr/bin/hp-check:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?
> if 'getfacl' not in g and '' is not g and 'file' not in g:
> error: Unable to locate models.dat file
> Saving output in log file: /home/donald/hp-check.log
>
> HP Linux Imaging and Printing System (ver. 0.0.0)
> Dependency/Version Check Utility ver. 15.1
>
> Copyright (c) 2001-18 HP Development Company, LP
> This software comes with ABSOLUTELY NO WARRANTY.
> This is free software, and you are welcome to distribute it
> under certain conditions. See COPYING file for more details.
>
> Note: hp-check can be run in three modes:
> 1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are
installed to successfully compile HPLIP.
> 2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper
dependencies installed to successfully run.
> 3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).
>
> Check types:
> a. EXTERNALDEP - External Dependencies
> b. GENERALDEP - General Dependencies (required both at compile and run time)
> c. COMPILEDEP - Compile time Dependencies
> d. [All are run-time checks]
> PYEXT SCANCONF QUEUES PERMISSION
>
> Status Types:
> OK
> MISSING - Missing Dependency or Permission or Plug-in
> INCOMPAT - Incompatible dependency-version or Plugin-version
>
> -Traceback (most recent call last):
> File "/usr/bin/hp-check", line 861, in <module>
> dep.core.init()
> File "/usr/share/hplip/installer/core_install.py", line 525, in init
> self.distro_name = self.distros_index[self.distro]
> KeyError: 0
> donald@dhl-gazelle22:~$

Revision history for this message
Donald H Locker (dhlocker) wrote :

Purpose of uninstalling hplip is to try installing it in a python venv to isolate its python dependencies from the rest of the system.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.