ubuntu 18.04.4 Dependency problem
When running the scrip to install the drivers I get the following error:
RE-CHECKING DEPENDENCIES
-------
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: A required dependency 'python3-dbus (Python DBus - Python bindings for DBus)' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
These dependencies are already installed.
ansible|
[dzdo] password for cmarcel:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pyqt4 is already the newest version (4.12.1+dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
HPLIP version:
ansible|
-rwx------ 1 cmarcel cmarcel 25724602 May 11 12:02 hplip-3.20.3.run*
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Cody Marcel
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#2 |
And which operating system (including release number or name)?
Revision history for this message
|
#3 |
Sorry about that :)
MFP M479fdw
Revision history for this message
|
#4 |
hp-check ourput:
sudo hp-check -r
Saving output in log file: /home/cmarcel/
HP Linux Imaging and Printing System (ver. 3.17.10)
Dependency/Version Check Utility ver. 15.1
Copyright (c) 2001-15 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
warning: 12-18.04 version is not supported. Using 12-17.04 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
---------------
Kernel: 4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 GNU/Linux
Host: cmarcel-wsl5
Proc: 4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 GNU/Linux
Distribution: 12 18.04
Bitness: 64 bit
-------
| HPLIP CONFIGURATION |
-------
HPLIP-Version: HPLIP 3.17.10
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 12 distro 18.04 version
Current contents of '/etc/hp/
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.17.10
[dirs]
home=/usr/
run=/var/run
ppd=/usr/
ppdbase=
doc=/usr/
html=/usr/
icon=no
cupsbackend=
cupsfilter=
drv=/usr/
bin=/usr/bin
apparmor=
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-
foomatic-
foomatic-
hpcups-install=yes
cups-drv-
cups-ppd-install=no
internal-
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-
hpijs-only-build=no
apparmor_build=no
Current contents of '/var/lib/
Plugins are not installed. Could not access file: No such file or directory
Current contents of '~/.hplip/
[installation]
date_time = 05/11/20 13:12:54
version = 3.20.3
<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
-------
| External Dependencies |
-------
cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.26 OK -
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
dbus DBus - Message bus system REQUIRED - 1.12.2 OK -
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
network network -wget OPTIONAL - 1.19.4 OK -
avahi-utils avahi-utils OPTIONAL - 0.7 OK -
-------
| General Dependencies |
-------
libjpeg libjpeg - JPEG library REQUIRED - - OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 OK -
cups-image CUPS image - CUPS image development files REQUIRED - 2.2.7 OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.27' OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
sane SANE - Scanning library REQUIRED - - OK -
sane-devel SANE - Scanning library development files REQUIRED - - OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.6.9 OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 4.12.1 OK -
python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
python3-xml Python XML libraries REQUIRED - 2.2.5 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.6.9 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -
--------------
| COMPILEDEP |
--------------
libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.5.0 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -
-------
| Python Extentions |
-------
cupsext CUPS-Extension REQUIRED - 3.17.10 OK -
hpmudext IO-Extension REQUIRED - 3.17.10 OK -
-------
| Scan Configuration |
-------
'/etc/sane.
hpaio HPLIP-SANE-Backend REQUIRED - 3.17.10 OK 'hpaio found in /etc/sane.
scanext Scan-SANE-Extension REQUIRED - 3.17.10 OK -
-------
| DISCOVERED SCANNER DEVICES |
-------
No Scanner found.
-------
| DISCOVERED USB DEVICES |
-------
No devices found.
-------
| INSTALLED CUPS PRINTER QUEUES |
-------
HP_Color_
-------
Type: Unknown
Device URI: ipps://
PPD: /etc/cups/
PPD Description: Color LaserJet Pro M478f-9f
Printer status: printer HP_Color_
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.
--------------
| PERMISSION |
--------------
-----------
| SUMMARY |
-----------
Missing Required Dependencies
-------
None
Missing Optional Dependencies
-------
None
Total Errors: 0
Total Warnings: 1
Done.
Revision history for this message
|
#5 |
ansible|
Description: Ubuntu 18.04.4 LTS
Revision history for this message
|
#6 |
> MFP M479fdw
For printing: https:/
Revision history for this message
|
#7 |
"HP Linux Imaging and Printing System (ver. 3.17.10)"
Apparently you do not have HPLIP Version 3.20.3 installed, but an older one that does not correctly work with Ubuntu 18.04.
I see two possibilities:
1. Switch to driverless printing (see Brian's answer)
or
2. Install HPLIP 3.20.3 (sh ~/Downloads/
Revision history for this message
|
#8 |
I'm trying to install hplip-3.20.3.run and that's where it's failing. I've followed steps to remove any old versions that were installed. What's shoing you I have an old version installed? I've followed instruction seen here for removal, but it's not working. Is there a better set of instructions to accomplish this?
Using cups only works in certain cases and I'd like my printer to work when I need it without having to research independent solutions for every app I happen to be in.
Revision history for this message
|
#9 |
Q: "What's shoing you I have an old version installed?"
A: The availability of the "hp-check" command and its output "HP Linux Imaging and Printing System (ver. 3.17.10)"
What output do you receive for the command
sh ~/Downloads/
Revision history for this message
|
#10 |
ansible|
Creating directory hplip-3.20.3
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.3 Self Extracting Archive.
HP Linux Imaging and Printing System (ver. 3.20.3)
HPLIP Installer ver. 5.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.
Installer log saved in: hplip-install_
\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
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) :
INTRODUCTION
------------
This installer will install HPLIP version 3.20.3 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).
DISTRO/OS CONFIRMATION
-------
Distro appears to be Ubuntu 18.04.
Is "Ubuntu 18.04" your correct distro/OS and version (y=yes*, n=no, q=quit) ?
Initializing. Please wait...
ENTER USER PASSWORD
-------------------
Please enter the sudoer (cmarcel)'s password:
error: Password incorrect. 2 attempt(s) left.
Please enter the sudoer (cmarcel)'s password:
INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https:/
Please read the installation notes. Press <enter> to continue or 'q' to quit:
SECURITY PACKAGES
-----------------
AppArmor is installed.
AppArmor protects the application from external intrusion attempts making the application secure
Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ?
RUNNING PRE-INSTALL COMMANDS
-------
OK
MISSING DEPENDENCIES
-------
Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
python3-notify2 gui_qt4 OPTIONAL
python3-pyqt4-dbus gui_qt4 OPTIONAL
python3-pyqt4 gui_qt4 REQUIRED
python3-dbus fax REQUIRED
python3-pil scan OPTIONAL
python3-reportlab fax OPTIONAL
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ?
INSTALL MISSING REQUIRED DEPENDENCIES
-------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: python3-dbus (Python DBus - Python bindings for DBus)
INSTALL MISSING OPTIONAL DEPENDENCIES
-------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt4': python3-notify2 (Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: Missing OPTIONAL dependency for option 'gui_qt4': python3-pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: Missing OPTIONAL dependency for option 'fax': python3-reportlab (Reportlab - PDF library for Python)
warning: Missing OPTIONAL dependency for option 'scan': python3-pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))
CHECKING FOR NETWORK CONNECTION
-------
Network connection present.
RUNNING PRE-PACKAGE COMMANDS
-------
sudo dpkg --configure -a (Pre-depend step 1)
sudo apt-get install --yes --force-yes -f (Pre-depend step 2)
sudo apt-get update (Pre-depend step 3)
OK
DEPENDENCY AND CONFLICT RESOLUTION
-------
Running 'sudo apt-get install --assume-yes python3-pyqt4'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes gtk2-engines-
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-dbus'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-gi'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-notify2'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-reportlab'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-pil'
Please wait, this may take several minutes...
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: A required dependency 'python3-dbus (Python DBus - Python bindings for DBus)' is still missing.
RUNNING POST-PACKAGE COMMANDS
-------
OK
RE-CHECKING DEPENDENCIES
-------
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: A required dependency 'python3-dbus (Python DBus - Python bindings for DBus)' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
Revision history for this message
|
#11 |
BTW, after I have removed everything, hp-check no longer works. If I try to install the ubuntu specific packages on this article, it cannot find the printer over the network or when I plug it in via USB directly.
When completely uninstalled, the hplip still fails for the same missing dependencies (which I actually have installed). I have tried the custom installer using only qt5 instead of 4 and that gives the same missing dep. It's also installed.
Revision history for this message
|
#12 |
What output do you receive for the commands
apt-cache policy python3-pyqt4 python3-dbus
sudo apt install --reinstall python3-pyqt4 python3-dbus
Revision history for this message
|
#13 |
Installer still fails for the same missing dependencies even after reinstalling with apt.
ansible|
python3-pyqt4:
Installed: 4.12.1+dfsg-2
Candidate: 4.12.1+dfsg-2
Version table:
*** 4.12.1+dfsg-2 500
500 http://
100 /var/lib/
python3-dbus:
Installed: 1.2.6-1
Candidate: 1.2.6-1
Version table:
*** 1.2.6-1 500
500 http://
100 /var/lib/
ansible|
[dzdo] password for cmarcel:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 89.9 kB/2,277 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Fetched 89.9 kB in 1s (111 kB/s)
(Reading database ... 239315 files and directories currently installed.)
Preparing to unpack .../python3-
Unpacking python3-dbus (1.2.6-1) over (1.2.6-1) ...
Preparing to unpack .../python3-
Unpacking python3-pyqt4 (4.12.1+dfsg-2) over (4.12.1+dfsg-2) ...
Setting up python3-dbus (1.2.6-1) ...
Setting up python3-pyqt4 (4.12.1+dfsg-2) ...
ansible|
Revision history for this message
|
#14 |
Does the installer still fail with the same error message about unmet dependencies?
Revision history for this message
|
#15 |
Yes:
RE-CHECKING DEPENDENCIES
-------
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: A required dependency 'python3-dbus (Python DBus - Python bindings for DBus)' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
ansible|
python3-pyqt4:
Installed: 4.12.1+dfsg-2
Candidate: 4.12.1+dfsg-2
Version table:
*** 4.12.1+dfsg-2 500
500 http://
100 /var/lib/
python3-dbus:
Installed: 1.2.6-1
Candidate: 1.2.6-1
Version table:
*** 1.2.6-1 500
500 http://
100 /var/lib/
Revision history for this message
|
#16 |
Is there a way to bypass the dependency checker and just move to the install? I can probably hack the python script, but hopefully there is a more sanctioned way to to do that.
Revision history for this message
|
#17 |
Now the same with two other packages:
What do you receive for
apt-cache policy gtk2-engines-pixbuf python3-gi
sudo apt install --reinstall gtk2-engines-pixbuf python3-gi
and a new install-attempt of HPLIP
Revision history for this message
|
#18 |
RUNNING POST-PACKAGE COMMANDS
-------
OK
RE-CHECKING DEPENDENCIES
-------
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: A required dependency 'python3-dbus (Python DBus - Python bindings for DBus)' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
ansible|
gtk2-engines-
Installed: 2.24.32-1ubuntu1
Candidate: 2.24.32-1ubuntu1
Version table:
*** 2.24.32-1ubuntu1 500
500 http://
100 /var/lib/
python3-gi:
Installed: 3.26.1-2ubuntu1
Candidate: 3.26.1-2ubuntu1
Version table:
*** 3.26.1-2ubuntu1 500
500 http://
100 /var/lib/
3.26.1-2 500
500 http://
ansible|
Revision history for this message
|
#19 |
Have you tried selecting "custom" mode at the prompt
Please choose the installation mode (a=automatic*, c=custom, q=quit) :
Revision history for this message
|
#20 |
Yes, see post above. I've tried qt4/qt5 only. I've tried without GUI completely, but Dbus is a requirement even beyond that. How would I bypass all dependency checks? I already have the dependencies and this check is broken.
Revision history for this message
|
#21 |
Eventually there is some kind of confusion between python2 and python3.
Trying to manually execute the checks that are done by the installer:
What output do you receive for
which python
/usr/bin/env python --version
python2 -c 'import PyQt4'
python2 -c 'import dbus;print dbus.version'
python3 -c 'import PyQt4'
python3 -c 'import dbus;print(
Revision history for this message
|
#22 |
ansible|
/home/cmarcel/
ansible|
Python 3.6.9
ansible|
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named PyQt4
ansible|
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundE
ansible|
Revision history for this message
|
#23 |
I installed DBus and qt5 through pip directly and now I can run this without getting any errors:
ansible|
ansible|
When run the installer for custom on qt5, however, it still says they are missing.
Revision history for this message
|
#24 |
Ok, that's the explanation. You have a very strange python installation which ignores adding packages from the Ubuntu repositories.
I assume that you have to install PyQt4 (or PyQt5) and dbus in a manner that the commands
python -c 'import PyQt4'
python -c 'import dbus;print dbus.version'
work without error
Just another check for diagnostics, what is the output of
which python
which python2
which python3
Revision history for this message
|
#25 |
I wasn't able to install qt4 on python3. I gifured I only needed one or the other if I used the custom installer.
ansible|
ansible|
ansible|
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundE
ansible|
ansible|
File "<string>", line 1
import dbus;print dbus.version
SyntaxError: invalid syntax
ansible|
/home/cmarcel/
ansible|
/usr/bin/python2
ansible|
/home/cmarcel/
ansible|
Revision history for this message
|
#26 |
The key issue seems to be that Ubuntu 18.04 has by default python2 when you execute the command python. Apparently this is what the HPLIP installer assumes. On your system, however, executing "python" runs python3.
Does
python -c 'import dbus;print(
work on your system? (It's python3, so the print statement requires parentheses.)
Revision history for this message
|
#27 |
ansible|
(1, 2, 16)
Revision history for this message
|
#28 |
The system is using python3 as the default. That's also the one modules installed manually. Why would the installer try to use python2
Revision history for this message
|
#29 |
ansible|
/home/cmarcel/
Revision history for this message
|
#30 |
In my opinion the installer should now be able to identify that dbus and PyQt5 are installed. Can you try running the installer in custom mode again, and if it fails upload the log to https:/
Revision history for this message
|
#31 |
Revision history for this message
|
#32 |
The inability to change owner (chown) failures is interesting. WHy is that happening before my sudo pw is provided?
Revision history for this message
|
#33 |
Please also upload hplip-install_
Revision history for this message
|
#35 |
Do you see the possibility that you temporarily re-route "python" from your python3 installation to the standard Ubuntu python2?
What is in your PATH settings?
Revision history for this message
|
#36 |
I set the PATH to use python2 for this. Seems really odd that the installer requires python2 (the final version was released 20 years ago).
ansible|
/home/cmarcel/
ansible|
ansible|
/usr/bin/
After doing this the dependency check worked, but the install was still not successful.
Revision history for this message
|
#37 |
The installation of the software looks complete, just the printer setup is missing.
WHat output do you receive for
sudo updatedeb
locate hp-setup
if it finds hp-setup somewhere, then try executing it.
Revision history for this message
|
#38 |
Ok it was installed as requiring sudo/root privs, but I got it working. Thanks for the help.