can't install HP printer

Asked by paolo rodighiero

hallo, I use Ubuntu 20.04.2 , I can't install my printer HP Deskjet Plus 41100
tried to instal HPLIP running hplip-3.21.2.run from the terminal, but I miss the dependency pyqt5, and I can't install it, it goes like this:

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) ? y
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

what can I do? many thanx, paolo rodighiero

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

There is a workaround:

Ubuntu has modified an older version (3.20.3) to work with Ubuntu 20.04

sudo apt install hplip-gui

Revision history for this message
paolo rodighiero (pollorodighiero) said :
#2

sorry, no way to make it work, it stil don't recognize the printer

Il 15/03/21 09:30, Manfred Hampl ha scritto:
> Your question #696050 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/696050
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> There is a workaround:
>
> Ubuntu has modified an older version (3.20.3) to work with Ubuntu 20.04
>
> sudo apt install hplip-gui
>

--
imagine peace
paolopollorodighiero.it

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

An alternative. Having the device on the network is recommended:

  https://wiki.debian.org/CUPSQuickPrintQueues

Can be done with a USB connection but it is not very likely to work
with what is provided on 20.04 by Ubuntu.

Revision history for this message
Ola Buenas (justflamebird) said :
#4

(Just The Same Thing like https://answers.launchpad.net/hplip/+question/696039)

You could try to check if you have python 3.0 or newer

python ––version

If you have python we check if u have pip

pip3 --version

or

pip --version

if you dont have python and pip installed

sudo add-apt-repository ppa:deadsnakes/ppa

sudo apt update

sudo apt install python3.8

sudo apt install python3-pip

and installed!

then run

pip install PyQt5

or

pip3 install PyQt5

Then Retry Installing The HPLIP.

Revision history for this message
paolo rodighiero (pollorodighiero) said :
#5

thank you Ola Buenas, but it didn't work:
it seems that I do have PyQt5 installed:

rodighiero@rodighiero-Lenovo-B50-70:~$ pip3 --version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
rodighiero@rodighiero-Lenovo-B50-70:~$ pip3 install PyQt5
Requirement already satisfied: PyQt5 in /usr/lib/python3/dist-packages
(5.14.1)

but in the installation of HPLIP it is not found:

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) ?

maybe pyqt5 is an ald version? or is in the wrong place?
thank you

Il 15/03/21 19:41, Ola Buenas ha scritto:
> Your question #696050 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/696050
>
> Ola Buenas proposed the following answer:
> (Just The Same Thing like
> https://answers.launchpad.net/hplip/+question/696039)
>
> You could try to check if you have python 3.0 or newer
>
> python ––version
>
> If you have python we check if u have pip
>
> pip3 --version
>
> or
>
> pip --version
>
> if you dont have python and pip installed
>
> sudo add-apt-repository ppa:deadsnakes/ppa
>
> sudo apt update
>
> sudo apt install python3.8
>
> sudo apt install python3-pip
>
> and installed!
>
> then run
>
> pip install PyQt5
>
> or
>
> pip3 install PyQt5
>
> Then Retry Installing The HPLIP.
>

--
imagine peace
paolopollorodighiero.it

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

You have to distinguish between two different problems:

1. making the printer known to the system

2. installing the HPLIP program

ad 1. You can make the printer known to your system without HPLIP, e.g. with https://wiki.debian.org/CUPSQuickPrintQueues or with driverless printing. For this you do not need to install HPLIP.

ad 2. The HPLIP installer from the HP download pages has problems with dependencies on Ubuntu 20.04. If you still want to use HPLIP, then you should install the modified version from the Ubuntu repositories, see comment #1 in your launchpad question document.

Can you help with this problem?

Provide an answer of your own, or ask paolo rodighiero for more information if necessary.

To post a message you must log in.