Can't install HP DeskjetPro 6968 in Ubuntu 20.04 using hplip 3.20.9

Asked by Steven Brake

When attempting to install hplip 3.20.9 in UBUNTU 20.04. There are dependencies identified as missing. As the install progresses here is the indications I get in my terminal: What might my options be?

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
pyqt5-dbus gui_qt5 OPTIONAL
pyqt5 gui_qt5 REQUIRED
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt5': pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)

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 gtk2-engines-pixbuf'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
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
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
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
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
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.
steven@steven-CG5275:~/Downloads$

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

> When attempting to install hplip 3.20.9 in UBUNTU 20.04. There are
> dependencies identified as missing. As the install progresses here is
> the indications I get in my terminal: What might my options be?

One option is to abandon using HPLIP and use driverless printing. It would
be splendid if you would have the 6968 wireless connected and gave the
outputs of

  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp
  driverless

--
Brian.

Revision history for this message
Steven Brake (smb083153) said :
#2

The HP 6068 is connected wireless. Attempted the suggested commands. I'm probably missing something. I'd also like to have the HP 6068 scanner working as well. Here is the result

steven@steven-CG5275:~$ avahi-browse -rt _ipp._tcp
+ wlp2s0 IPv4 HP OfficeJet Pro 6960 [A3A238] Internet Printer local
+ enp1s0 IPv4 HP OfficeJet Pro 6960 [A3A238] Internet Printer local
Failed to resolve service 'HP OfficeJet Pro 6960 [A3A238]' of type '_ipp._tcp' in domain 'local': Timeout reached
Failed to resolve service 'HP OfficeJet Pro 6960 [A3A238]' of type '_ipp._tcp' in domain 'local': Timeout reached
steven@steven-CG5275:~$ avahi-browse -rt _uscan._tcp
+ wlp2s0 IPv4 HP OfficeJet Pro 6960 [A3A238] _uscan._tcp local
+ enp1s0 IPv4 HP OfficeJet Pro 6960 [A3A238] _uscan._tcp local
Failed to resolve service 'HP OfficeJet Pro 6960 [A3A238]' of type '_uscan._tcp' in domain 'local': Timeout reached
Failed to resolve service 'HP OfficeJet Pro 6960 [A3A238]' of type '_uscan._tcp' in domain 'local': Timeout reached
steven@steven-CG5275:~$ driverless
steven@steven-CG5275:~$

Revision history for this message
brian_p (claremont102) said :
#3

> Failed to resolve service....

You have a network problem. libnss-mdns is installed? The printer
can be pinged? Firewall? What does 'ippfind -T 5' give?

> I'd also like to have the HP 6068 scanner working as well.

That's on the cards with a working network.

Revision history for this message
Oleg (lifepdx) said :
#4

The problems with missing dependences can occur while upgrading Ubuntu instead of fresh installation.
Solution is here: https://www.linux.org/threads/satisfying-dependencies-for-installation-of-hplip.29842/

in short following commands can help you:

root@xxxxx:/usr/bin# ls -lrth python*
lrwxrwxrwx 1 root root 9 Apr 16 2018 python -> python2.7
-rwxr-xr-x 1 root root 3.6M Nov 12 2018 python2.7
-rwxr-xr-x 2 root root 4.4M May 7 14:58 python3.6
In above example if you see the output of python --version you will get python2.7 Now update the python symlink using below command-

Code:

root@irshad:/usr/bin# unlink python
root@irshad:/usr/bin# ln -s /usr/bin/python3.6 python
root@irshad:/usr/bin# python --version
Python 3.6.8

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.