Ubuntu - Install HP Laserjet Multifunction (Print and Scan)



hp-cm1312-mfpHP provides a very good driver support on the Linux platform for its multifunction Laser printers.

But for the network scanner capabilities, you need to install some HP extension plugin, downloaded during the driver installation process ... and for me the plugin download failed most of the time.

This article explains the different steps needed to install a HP Multi function printer & scanner under Ubuntu, including scanner capabilities, even when you encounter a download error for the plugin extension.

Even if this procedure has been tested on Laserjet CM1312nfi, it should be operationnal for most of the HP multifunction printers.

It has been tested on Ubuntu Precise 12.04 LTS &  Trusty 14.04 LTS and Debian Jessie & Stretch .

1. Install latest HPLIP

To be able to fully handle latest All-In-One HP printers, it is needed to install latest HPLIP from HPLIP Opensource Imaging and Printing site.

First step is to remove hplip package installed by default under Ubuntu.

# sudo apt-get purge hplip

Then, make sure avahi-daemon is properly installed, as HPLIP needs it but has no declared dependancies.

# sudo apt-get install avahi-daemon

Then, you need to download latest HPLIP installation script.

You can now start the installation script :

# sh
Creating directory hplip-3.13.2
Verifying archive integrity... All good.
Uncompressing HPLIP 3.13.2 Self Extracting Archive ...
HP Linux Imaging and Printing System (ver. 3.13.2)
HPLIP Installer ver. 5.1
Distro appears to be Ubuntu 12.04.
Is "Ubuntu 12.04" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y


Installation process will be quite long as the script will download and install missing dependancies and download the HPLIP plugin.

1.1. If plugin download fails

In case the installation process gives you an error message like this one during the plugin download step, don't care about the message, you just need to get the plugin by yourself and to restart the installation.

Plugin download error

So you need to get the version of needed plugin.

# sudo hp-setup -i

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

Copyright (c) 2001-9 Hewlett-Packard 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.
Enter number 0...2 for connection type (q=quit, enter=usb*) ? q

Here the plugin version needed for your distribution is 3.10.6.

Launch your browser and open

Look for the section matching your plugin version.


url =
timestamp = 1279506685.8
datetime = Mon, 19 Jul 2010 02:31:25 +0000
num_files = 40
checksum = b6112a75111ccd9d220f7ff2f1d9e7ae6a35504d
revision = 13772
size = 1757460


Just download from your browser the plugin file given by the link url = http://...

In case the site is not accessible, a backup copy is available from  (thanks to R. B. Winters).

You can now restart the installation procedure.

# sudo hp-setup

When you are on the plugin screen, do not select to download it from the web, but select the plugin file you've just downloaded.

Manual selection of driver plugin

You may get an error message saying that the archive is corrupted ... just ignore it.

Magically, the installation procedure will carry on and you network printer and network scanner will be available !

2. Scanner support

Once installation is finished, the network scanner of your multi-function printer is accessible.

You can check the network scanner availability with following command :

# scanimage -L

device `hpaio:/net/HP_Color_LaserJet_CM1312nfi_MFP?zc=NPI49F2D1' is a Hewlett-Packard HP_Color_LaserJet_CM1312nfi_MFP all-in-one

Your scanner is well recognised.

XSane should work perfectly.

But Simple Scan may give you trouble ... If it is so, first thing to do is to add your current user to the lp group :

# sudo useradd -G lp youruseraccount

After a reboot, everything should be all right !

You should be able to scan from Simple Scan & XSane.

3. Management Interface

A HP printer management interface called HP LIP is provided in the standard Ubuntu repository. 

To install it :

# sudo apt-get install hplip-gui

It is now available thru the menu system / preferences / HPLIP Toolbox.

Now you can even check your cartridges level !

HPLIP Supplies

4. Get rid of "No System tray ..." error

Under Ubuntu 11.04 and 12.04, you can get very often an error message like :

HPLIP Status Service

No system tray detected on this system

When you get this message, the HP system tray won't be displayed.

This problem comes from the fact that HPLIP Status service starts too early, when the whole Gnome desktop has not been fully initialised.

It can be solved quite easily. We just need to apply a certain delay before starting the service.

To do so, just create an executable script file named

# needs HP printer driver to be installed

# wait for 30 seconds
sleep 30

# start hp printer system tray

Next, you just need to modify HPLIP Startup menu under Applications / System / Preferences / Startup application / HP System Tray Service to have :

Command : /path/to/the/script//

Problem should be solved at next boot.


Hope it helps.

Signature Technoblog

This article is published "as is", without any warranty that it will work for your specific need.
If you think this article needs some complement, or simply if you think it saved you lots of time & trouble,
just let me know at This email address is being protected from spambots. You need JavaScript enabled to view it.. Cheers !

icon linux icon debian icon apache icon mysql icon php icon piwik icon googleplus