How can I easily install missing hplip dependencies?

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?


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