How can I easily install missing hplip dependencies?

28,025

Solution 1

In terminal

sudo apt-get -f install hplip

should fix it

There is the other option here : source

which has the download and installation instructions. It has a section that will run

DEPENDENCY AND CONFLICT RESOLUTION

This is the direct download source

Solution 2

The dependencies can be installed following instructions here: http://hplipopensource.com/hplip-web/install/manual/distros/ubuntu.html

hplip is not a dependency, it's the package that contains hp-check and other utilities. The dependencies such as "CUPS devel", "Python devel", "PyQt4" and so on can be installed using the following command for Ubuntu 10.04 and up, according to current info from link above (but I recommend checking for updated info):

sudo apt-get install --assume-yes libcups2 cups libcups2-dev cups-bsd cups-client libcupsimage2-dev libdbus-1-dev build-essential ghostscript openssl libjpeg62-dev libsnmp-dev libtool libusb-dev python-imaging policykit-1 policykit-1-gnome python-qt4 python-qt4-dbus python-dbus python-gobject python-dev python-notify python python-reportlab libsane libsane-dev sane-utils xsane

Solution 3

I also had the problem of the printer being seen but not printing. I actually manually added a new instance of the same printer with a new name and description and stuff and it started printing. I'm using SteamOS and I first used:

sudo hp-setup -i

Then I have chosen the identified printer (k209a) but renamed to just the model, added location and description. When it prompted to print a test page I did so without hope but the "Stupid Old Black printer" started to print :)

Share:
28,025

Related videos on Youtube

Rosco
Author by

Rosco

10.10 User (non geek)

Updated on September 18, 2022

Comments

  • Rosco
    Rosco almost 2 years

    Having installed HPLIP on my 10.10 system, the HP Photosmart 420 gives "Device Communication Error" code 5012 when I try to print. Running hp-check lists 11 missing dependencies. Do I have to install them all one by one or is there an easier way to get the printer going? What is the command to install a dependency?

    • Knowledge Cube
      Knowledge Cube over 12 years
      On a side note, your system should have all required dependencies for hplip already installed if you installed it from the Ubuntu repos through the package management tool of your choice. Or did you install it from elsewhere?
  • Rosco
    Rosco over 12 years
    I installed hplip as indicated but it still says missing dependancies. When I tried installing the first missing dep. ie "CUPS devel" it could not find said dependancy.
  • Ringtail
    Ringtail over 12 years
    are you able to give us the print from terminal as to the error message
  • Rosco
    Rosco over 12 years
    Thanks for the info BlueXrider. When I do that I get this:Could not open the file /home/mystuff/Downloads/hplip-3.12.2.run using the Unicode (UTF-8) character encoding.Which char encoding do I need?
  • Ringtail
    Ringtail over 12 years
    this is the web site hplipopensource.com/hplip-web/index.html follow the instructions at the left of it. Where it says Install and Setup
  • Rosco
    Rosco over 12 years
    Thanks BlueXrider. Did that and fixed all dependancies. Rebooted PC.But still get this:Type: Printer Device URI: hp:/usb/Photosmart_420_series?serial=CN59N250BX04HP PPD: /etc/cups/ppd/Photosmart_420.ppd PPD Description: HP Photosmart 420 Series, hpcups 3.10.6 Printer status: printer Photosmart_420 is idle. enabled since Fri 09 Mar 2012 17:30:26 GMT error: Unable to communicate with device (code=12): hp:/usb/Photosmart_420_series?serial=CN59N250BX04HP error: Device not found error: Communication status: Failed
  • Ringtail
    Ringtail over 12 years
    @Rosco That is a bug. bugs.launchpad.net/hplip/+bug/521909 This may be a work around. Drop to #2 answer linuxquestions.org/questions/slackware-14/…
  • Sanam Patel
    Sanam Patel over 11 years
    -1 just tried this and get warning: hp-toolbox should not be run as root/superuser, followed immediately by error: dBus initialization error. Exiting.
  • matanster
    matanster almost 5 years
    Wondering what's the up-to-date way to do this with newer versions of Ubuntu