1

When I ran the program hp-setup I got the following output:

HP Linux Imaging and Printing System (ver. 3.16.3)
Printer/Fax Setup Utility ver. 9.0

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.

error: HPLIP is not installed properly or is installed without graphical support. Please reinstall HPLIP
warning: Qt/PyQt 4 initialization failed.
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.

my image

How can I fix this error?

  • what version of Ubuntu is this? – George Udosen May 22 '17 at 21:38
0

Hp printers require qt4 installed so install with:

sudo apt install python-qt4

Then run the hp-setup again.

  • this shows up E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? – ahmad abdallah May 26 '17 at 15:51
  • Please restart the system or wait a few minutes to gain access. Another update process has a lock on that dir – George Udosen May 26 '17 at 15:56
  • I think I've just realized what's wrong, I tried to add it from Settings-Printers and it worked. I think there was something wrong at first but it's done now. – ahmad abdallah May 26 '17 at 16:00
0

In Ubuntu 17.04, HPLip 3.16.11, I needed to:

sudo apt-get install python-qt4 python3-pip
pip3 install pyqt5

After that, HP-Setup does run in a graphical mode

  • this shows upE: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? – ahmad abdallah May 26 '17 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.