unable to install a laserjet M175nw under Ubuntu 11.04

Asked by martin

I have just bought a laserjet M175nw, and I can't install it on Ubuntu 11.04.

I've downloaded hplip-3.12.6.run, then run it.
Then I have log out/log in (as asked by the program, to add me to the right groups).

Then hp-setup in a terminal. I want to install the printer/scanner via wifi, but it fails in usb too.
When I plug the usb cable:
Error mounting: mount: /dev/sr1 already mounted or /media/HP Smart Install busy

Then in the Device Discovery, if I try "Wireless/802.11", -> "No wireless capable device found".
If I try "Universal Serial Bus", -> "No device found".
No more success with "refresh".

I have tried to unmount or eject /media/HP Smart Install, and relaunch hp-setup, no success.

My system try to automatically install the printer, I can see an entry in the printers panel, but I can't print.
I have tried to uninstall it from the printer manager of Ubuntu, then relaunch hp-setup, no success.

The HP Device Manager in my top panel (gnome 2) shows me an entry with "HP LaserJet 100 Colormfp m175nw Printer(...)", so the program have found it one time...

Any help will be really appreciated, thank you.

The result of hp-check will follow.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
martin
Solved:
Last query:
Last reply:
Revision history for this message
martin (joliclic) said :
#1

~$ hp-check

HP Linux Imaging and Printing System (ver. 3.12.6)
Dependency/Version Check Utility ver. 15

Copyright (c) 2001-14 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

Saving output in log file: /home/moi/hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

 Kernel: 2.6.38-15-generic #66-Ubuntu SMP Tue Aug 14 17:25:35 UTC 2012 GNU/Linux
 Host: moi-laptop
 Proc: 2.6.38-15-generic #66-Ubuntu SMP Tue Aug 14 17:25:35 UTC 2012 GNU/Linux
 Distribution: ubuntu 11.04

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.12.6
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 11.04 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.12.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.12.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.12.6

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 06/09/2012 13:11:36
version = 3.12.6

[upgrade]
notify_upgrade = true
last_upgraded_time = 1346924947
pending_upgrade_time = 0
latest_available_version = 3.12.6

[scan_plugins]
bb_marvell.so = Present
bb_soapht.so = Present
bb_soap.so = Present

[fax_plugins]
fax_marvell.so = Present

[print_plugins]
lj.so = Present
hbpl1.so = Present

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/HP_LaserJet_100_colorMFP_M175nw?serial=00CNC9D600SI"
printer_name =
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 gs Ghostscript REQUIRED 7.05 9.01 OK -
 network Network-wget OPTIONAL - 1.12 OK -
 dbus DBus REQUIRED - 1.4.6 OK -
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.22 OK -
 policykit Admin-Policy-framework OPTIONAL - 0.101 OK -
 xsane SANE-GUI OPTIONAL 0.9 0.998 OK -
 cups CUPS REQUIRED 1.1 1.4.6 OK 'CUPS Scheduler is running'

-------------------------
| General Dependencies |
-------------------------

 reportlab Python-PDF-Lib OPTIONAL 2.0 2.5 OK -
 libcrypto OpenSSL-Crypto-Lib REQUIRED - 0.9.8 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
 pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.8.3 OK -
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - 2.13 OK -
 python-dbus Python-DBUS REQUIRED 0.80.0 0.83.1 OK -
 python-devel Python-SDK REQUIRED 2.2 2.7.1 OK -
 pyqt4 Python-Qt4 REQUIRED 4.0 4.8.3 OK -
 cups-devel CUPS-SDK REQUIRED - 1.4.6 OK -
 sane-devel SANE-SDK REQUIRED - 1.0.22 OK -
 libusb USB-Lib REQUIRED - 1.0 OK -
 sane Scan-Lib REQUIRED - 1.0.22 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.4.6 OK -
 libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.4.3 OK -
 python-xml Python-XML-Lib REQUIRED - 2.0.1 OK -
 python-notify Desktop-notifications OPTIONAL - - OK -

------------------------------
| Compile Time Dependencies |
------------------------------

 gcc gcc-Compiler REQUIRED - 4.5.2 OK -
 libtool Build-tools REQUIRED - 2.2.6 OK -
 make GNU-Build-tools REQUIRED 3.0 3.81 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.12.6 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.12.6 OK -
 hpmudext IO-Extension REQUIRED - 3.12.6 OK -

-----------------------
| Scan Configuration |
-----------------------

 hpaio HPLIP-SANE-Backend REQUIRED - 3.12.6 OK 'hpaio found in /etc/sane.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.12.6 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_LaserJet_100_colorMFP_M175nw
---------------------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_100_colorMFP_M175nw?serial=00CNC9D600SI
Required plug-in status: Installed
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_100_colorMFP_M175nw?serial=00CNC9D600SI
error: Device not found
error: Communication status: Failed

OKI-C5650
-----------
Type: Unknown
Device URI: dnssd://OKI-C5650-3BC7ED._pdl-datastream._tcp.local/

--------------
| PERMISSION |
--------------

groups user-groups Required - - OK moi adm lp dialout cdrom audio dip video plugdev netdev lpadmin admin sambashare vboxusers

USB HP_LaserJet_100_colorMFP_M175nw Required - - OK Node:'/dev/bus/usb/002/020' Mode:'436'

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

Total Errors: 1
Total Warnings: 0

Done.

Revision history for this message
martin (joliclic) said :
#2

OK, I have made some progress...
The cause of my problem is the Smart Installer (bug #813482, bug #672134).

So I have plugged my printer into a windows computer, but i was unable to find the SIUtility.exe executable mentioned into these bugs.
But, I could launch the "HP Device toolbox" program, and there is a tab where the "Smart" option can be disable.

Now, back on my ubuntu, I can setup my printer with hp-setup, BUT ONLY in usb mode.
 if I try "Wireless/802.11", -> "No wireless capable device found".

I want to use the wifi mode, how can I do ?
Does hplip blacklist the m175nw models for the wifi ?

Revision history for this message
martin (joliclic) said :
#3

The wifi configuration for the laserjet m175nw is deactivated in hplip.

I have tried to force it, modifying the file /usr/share/hplip/data/models/models.dat:
search the section [hp_laserjet_100_colormfp_m175nw], an replace the line 'wifi-config=-1' by 'wifi-config=3'.

Then I launched hp-setup, tried '802.11', it found my laserjet (normal). Then the program dialogs with the printer, find my wifi network, ask for the WEP key, and,... impossible to connect the printer to the wifi network :( .
So, ok, impossible to setup this printer for a wifi network with the current hplip (3.12.9).

But I have the workaround ;) , my printer is installed at home, on 2 ubuntu computers, and on my wifi network. I'll describe my solution in the next comment.

Revision history for this message
martin (joliclic) said :
#4

Ok, here's how to install a laserjet m175nw under ubuntu (mine is 11.04), by usb, or by wifi network. That's not entirely satisfying because for the 2 cases it requires a step under Windows, but at least the printer is fully functional under linux after.

1- install with the usb connection
  - problem:
     The printer is recognized as a CD-ROM drive, because of the HP Smart Installer.
     That's the bug #813482 , and the bug #672134 is related.
     I have tried the trick mentioned in the bug 672134, but it fails for me.
  - solution:
     Install the printer in a Windows computer. Use the Windows CD ROM. Once the driver is installed, use the program HP Devices Toolbox, there's an option to deactivate the "Smart Installer".
     Now, back to a Linux computer, download and install HPLIP 3.12.9 (that's the current version when I write this text).
     You can install the printer with a usb connection.

2- install with the wifi network
  - problem:
     The printer cannot be configured for the wifi connection by HPLIP 3.12.9. The printer requires to use a computer to connect it to a wifi network. In fact, there's 2 problem here. First, this configuration need a step with a usb connection, and the HP Smart installer must be deactivated (see 1). Secondly, this model is marked as not wifi-configurable by HPLIP. I have tried to force this, but the configuration cannot finish (impossible to connect the printer to the network.
  - solution:
     Install the printer in a Windows computer. Use the Windows CD ROM. The printer is connected to the wifi network.
     Now, back to a Linux computer, download and install HPLIP 3.12.9 (that's the current version when I write this text).
     Install the printer as a network one (not the option '802.11')
     Optional step, if you want to use an fixed Ip for the printer in the network, you print directly from the printer all the needed information (current ip, HMAC adress). Then configure your router with these informations.

So, I'm happy, I can use my laserjet on my Linux computers, all functions work (print, scan).

Please, mark this question as answered and solved. I just hope that future version HPLIP will be able to fully set up this model from Linux ;) .