HP printer install fail

24,076

Solution 1

you should run this

sudo apt-get install python3-pyqt4

and for Ubuntu 18.04, you will need both pyqt4 and pyqt5

sudo apt-get install python3-pyqt5

font: https://help.ubuntu.com/community/HpAllInOne

Solution 2

It looks like it is complaining about stuff that should be installed. Actually, you should not have to "download" anything as all of this stuff is available through apt-get.

Run the following commands to install all needed software and drivers:

sudo apt-get update
sudo apt-get install hplip hplip-data hplip-doc hpijs-ppds hplip-gui hplip-dbg printer-driver-hpcups printer-driver-hpijs printer-driver-pxljr

Now, run one of the following commands:

/usr/bin/hp-setup --gui

or if that fails due to permission issues, run this instead:

sudo -i /usr/bin/hp-setup --gui

This version, 3.16.3, is the same version available from the hp website.

Please post any errors.

Share:
24,076

Related videos on Youtube

Jon S 101
Author by

Jon S 101

Updated on September 18, 2022

Comments

  • Jon S 101
    Jon S 101 almost 2 years

    I have a failed install of Hp printer at http://hplipopensource.com/hplip-web/install/manual/distros/ubuntu.html What I need help with is how do I Delete the printer software so I can reinstall. Also am I python 2 or 3? in 16.04 64 bit? I accidentally downloaded HPLIP double clicked the file and got an error message and clicked continue. Then I attempted a manual install i got

    :~$ sudo hp-setup
    [sudo] password for  
    
    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.
    

    Also,

    I had an error when using: Ubuntu 15.10 and 16.04 in python3 environment:

    seemed to run when i used: Ubuntu 12.04 and above in python2 environment:

    I have no idea whether I am python3 or python2.

    I think once I know whether I am python3 or python2 I need to know how to completely uninstall my mistakes and then attempt a reinstall. I am a beginner so I may need to cut and paste the code for deleting my messed up install.

    I am installing a HP officejet pro 8600. I can scan with simple scan and I print with my brother laserjet. Should i give up and just use simplescan since my 8600 does not even have ink. I was trying to get better scanning software.

    Thank you for looking and any help.

    Jon

    • Techjail
      Techjail almost 8 years
      as the problem itselft states error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode. have you tried that? I mean try running with sudo hp-setup -i or sudo hp-setup --qt3
  • Ben Farmer
    Ben Farmer over 5 years
    Unable to locate package hplip-dbg
  • mchid
    mchid over 5 years
    @BenFarmer That's just a debugging package and it looks like you can get it running without it and the package has probably been depreciated and/or merged with the main hplip package. Go ahead and delete that package from the command and try again and please post any more errors. Thanks!
  • mchid
    mchid over 5 years
    @BenFarmer The following command will search for and install all of the available packages according to your current distro: sudo apt install $(echo $(apt-cache search hplip | sed 's/ - .*$//g'))
  • Krzysztof Tomaszewski
    Krzysztof Tomaszewski almost 4 years
    In case of a fresh install of Linux Mint 19.3 the only thing required was "python3-pyqt5".