Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 17528  / 1 Year ago, thu, may 18, 2023, 6:24:51

After upgrade from 19.10 to 20.04 I've autoremoved a lot of deprecated packages. During hplip upgrade I've confirmed using maintainer's version of configuration files. But after Ubuntu restarting, hp 1020 printer stopped printing. Hplip toolbox hanged each time I was refreshing its window. So I've purged and uninstalled hplip completely.


Installing using this guide installs hplip 3.20.3 version which have been installed earlier.


So I've downloaded 3.20.5 version from here for Ubuntu, chmoded it with x permission and run it: ./hplip-3.20.5.run.


It asked if I want to install missing dependencies:


Package-Name         Component            Required/Optional   
pyqt5-dbus gui_qt5 OPTIONAL
reportlab fax OPTIONAL
pyqt5 gui_qt5 REQUIRED
python-notify gui_qt5 OPTIONAL

I said y, but, for python-pyqt5 package I've got:


error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100

For python-dbus.mainloop.pyqt5 package:


error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100

For python-notify package:


error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Package install command failed with error code 100

For python-reportlab:


error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Package install command failed with error code 100

I've skipped these packages installation because it was impossible to install them. At the end, I've got the next errors:


warning: Some HPLIP functionality might not function due to missing package(s).
error: A required dependency 'pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))' is still missing.


RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK


RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.

I've also downloaded hplip-3.20.5-plugin.run from here


$ bash hplip-3.20.5-plugin.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.5 Plugin Self Extracting Archive..............................................................
Error setting home directory: /etc/hp/hplip.conf not found. Is HPLIP installed?

Universe/Multiverse repositories are enabled, but:


$ apt-cache search python-pyqt5
python-pyqt5.qwt-doc - Python Qwt6 technical widget library, documentation and examples
$ apt-cache search python-reportlab
python-reportlab-doc - Documentation for the ReportLab Python library (PDF format)
$ apt-cache search python-dbus.mainloop.pyqt5
$ apt-cache search python-notify
python3-notify2 - desktop notifications API for Python 3

Packages python3-pyqt5, python3-reportlab, python3-notify2, python3-dbus.mainloop.pyqt5 are installed and are already the newest versions.


I could also see, for example, python-pyqt5 package is available in 19.10 repository, but this package requires qtbase-abi-5-12-4 package which does not exist there in eoan's repository. 18.04's python-pyqt5 package requires different qtbase-abi package, which is not present in bionic's repository.


Does it mean, phlip-3.20.5 is not compatible with 20.04 or maybe there some additional repository exists which contains these four packages and theirs dependencies?


Update:



  • Installed hplip, hplip-data, hplip-gui packages.



  • Launched hplip-gui from launcher



  • Received the log in journalctl -f:


      Jun 07 23:14:13 ubuntu hplip.desktop[17823]: error: Unable to locate models.dat file
    Jun 07 23:14:13 ubuntu /hp-toolbox[17823]: [17823]: error: Unable to locate models.dat file
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: HP Linux Imaging and Printing System (ver. 0.0.0)
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: HP Device Manager ver. 15.0
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: Copyright (c) 2001-18 HP Development Company, LP
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: This software comes with ABSOLUTELY NO WARRANTY.
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: This is free software, and you are welcome to distribute it
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: under certain conditions. See COPYING file for more details.
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: Traceback (most recent call last):
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: File "/usr/bin/hp-toolbox", line 269, in <module>
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: QApplication, ui_package = utils.import_dialog(ui_toolkit)
    Jun 07 23:14:13 ubuntu hplip.desktop[17823]: TypeError: cannot unpack non-iterable NoneType object



hplip-gui have not been started: nothing appeared on the desktop.


Newer hplip-3.20.6 also does not support Ubuntu 20.04.


More From » 20.04

 Answers
1

In fact there is some troubles using hplip-3.20.6 on Ubuntu 20.04. The installation complains about pyqt5.
My workaround is to install hplib-3.20.6 with the custom option (instead of automatic).
You can install hplib without qt support (without: Graphical User Interfaces (Qt5)).
In a terminal please run:


./hplip-3.20.6.run

Now you can select the custom installation and disable qt5:


Do you wish to enable 'Graphical User Interfaces (Qt5)' (y=yes*, n=no, q=quit) ? n

You get:


INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) : c


INTRODUCTION
------------
This installer will install HPLIP version 3.20.6 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).


DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Ubuntu 20.04.

Is "Ubuntu 20.04" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y


DRIVER OPTIONS
--------------
Would you like to install Custom Discrete Drivers or Class Drivers ( 'd'= Discrete Drivers*,'c'= Class Drivers,'q'= Quit)? : d

Initializing. Please wait...


SELECT HPLIP OPTIONS
--------------------
You can select which HPLIP options to enable. Some options require extra dependencies.

Do you wish to enable 'Network/JetDirect I/O' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'Graphical User Interfaces (Qt5)' (y=yes*, n=no, q=quit) ? n
Do you wish to enable 'PC Send Fax support' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'Scanning support' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'HPLIP documentation (HTML)' (y=yes*, n=no, q=quit) ? y

I hope this comment will be usefull,
Regards.


[#3288] Friday, May 19, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
edgehogight

Total Points: 272
Total Questions: 113
Total Answers: 99

Location: Northern Mariana Islands
Member since Sun, Jul 19, 2020
4 Years ago
edgehogight questions
Sat, Sep 11, 21, 22:09, 3 Years ago
Sat, Nov 6, 21, 19:48, 3 Years ago
Fri, Aug 26, 22, 09:37, 2 Years ago
Sat, Oct 9, 21, 17:08, 3 Years ago
;