Error opening scanner HP 1120n using xsane

Asked by Krish Nagarajan on 2009-05-24

I am running Ubuntu Jaunty AMD64.

I have installed hplip, hpijs

I have connected my HP M1120n MFP through ethernet. Printing over ethernet works fine.

When I try to scan using xsane, I get the error:

Failed to open device 'hpaio:/net/HP_Laserjet_M1120n_MFP?ip=10.2.0.25': Error during device I/O

See below for relevant lines from syslog.
====================================================
May 24 21:28:51 xanadu xsane: io/hpmud/hpmud.c 608: invalid channel_write state
May 24 21:28:51 xanadu xsane: bb_marvell.c 536: invalid set_default hp:/net/HP_LaserJet_M1120n_MFP?ip=10.2.0.25
May 24 21:28:51 xanadu xsane: io/hpmud/hpmud.c 589: invalid channel_close state
May 24 21:28:51 xanadu xsane: io/hpmud/hpmud.c 483: invalid device_close state
May 24 21:28:55 xanadu xsane: io/hpmud/hpmud.c 323: device_cleanup: device uri=hp:/net/HP_LaserJet_M1120n_MFP?ip=10.2.0.25
May 24 21:28:55 xanadu xsane: io/hpmud/hpmud.c 329: device_cleanup: close channel 21...
May 24 21:28:56 xanadu xsane: io/hpmud/hpmud.c 331: device_cleanup: done closing channel 21
May 24 21:28:56 xanadu xsane: io/hpmud/hpmud.c 335: device_cleanup: close device dd=1...
May 24 21:28:56 xanadu xsane: io/hpmud/hpmud.c 337: device_cleanup: done closing device dd=1
====================================================

See below for output of hp-check -t
====================================================
$ hp-check -t

HP Linux Imaging and Printing System (ver. 3.9.4b)
Dependency/Version Check Utility ver. 14.1

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

Saving output in log file: hp-check.log

Initializing. Please wait...

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

Basic system information:
Linux xanadu 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux

Distribution:
ubuntu 9.04

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.6.2 installed

Checking PyQt 4.x version...
OK, version 4.4.4 installed.

Checking for CUPS...
Status: scheduler is running
Version: 1.3.9
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.9.4b currently installed in '/usr/share/hplip'.

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

[hplip]
version=3.9.4b

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-3.9.4b
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
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
cups-ppd-install=no
cups-drv-install=no
internal-tag=3.9.4b.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes

Current contents of '~/.hplip/hplip.conf' file:
[last_used]
printer_name = HPM1120nMFP
working_dir = .
device_uri = hp:/net/HP_LaserJet_M1120n_MFP?ip=10.2.0.25

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

[installation]
version = 3.9.4b.10
date_time = 05/24/09 21:24:40

[settings]
systray_messages = 0
systray_visible = 0

[fax]
email_address =
voice_phone =

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

[polling]
enable = false
device_list =
interval = 5

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

No devices found.

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

HP_LaserJet_M1120n_Net
----------------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/net/HP_LaserJet_M1120n_MFP?ip=10.2.0.25
PPD: /etc/cups/ppd/HP_LaserJet_M1120n_Net.ppd
PPD Description: HP LaserJet m1120n MFP hpijs, 3.9.2
Printer status: printer HP_LaserJet_M1120n_Net is idle. enabled since Sunday 24,May,2009 04:42:29 PM SGT
Required plug-in status: Installed
Communication status: Good

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/net/HP_LaserJet_M1120n_MFP?ip=10.2.0.25' is a Hewlett-Packard HP_LaserJet_M1120n_MFP all-in-one

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

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

No errors or warnings.

Done.
====================================================

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
2009-10-18
Last reply:
2009-11-02

This question was reopened

Does scanning work over usb correctly?

Aaron

Yes, scanning wotks over usb.

------Original Message------
From: Aaron Albright
Sender: <email address hidden>
To: <email address hidden>
ReplyTo: <email address hidden>
Subject: Re: [Question #72163]: Error opening scanner HP 1120n using xsane
Sent: May 25, 2009 3:43 AM

Your question #72163 on HPLIP changed:
https://answers.launchpad.net/hplip/+question/72163

    Status: Open => Needs information

Aaron Albright requested for more information:
Does scanning work over usb correctly?

Aaron

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/hplip/+question/72163

You received this question notification because you are a direct
subscriber of the question.

I have verified with a HP LaserJet M1120N that scanning over network is working with HPLIP 3.9.4b.

Try the snmpwalk step here:

http://hplipopensource.com/node/216

and post the output.

I'm thinking this is a snmp, ethernet or other hardware issue at this point. You can also try going to http://hp.com to verify that you are using the latest printer firmware for your device.

Aaron

Pieter Ennes (skion) said : #4

I'm getting this same message on karmic still using this printer. The SNMP part seems to work correctly:

# snmpwalk -Os -c public -v 1 192.168.1.200 1.3.6.1.4.1.11.2.3.9.1.1.7.0
enterprises.11.2.3.9.1.1.7.0 = STRING: "MFG:Hewlett-Packard;MDL:HP LaserJet M1120n MFP;CMD:ZJS,HBS,PJL,ACL;CLS:PRINTER;DES:HP LaserJet M1120n MFP;FWVER:20080908;"

Printing works too, but xsane gives the above mentioned error message.

Hi,

I ha resolved all the issues entirely using FOSS. See enclosed.

Especially see last point at the end titled:

4) Was getting the foll. error in syslog while starting xsane (it also gave the same device I/O error popup)

1) Uninstalled the hplip.run using make uninstall
2) Had to downgrade python-support-1.0.2 (it was the cause of the py-qt4-dbus not working
Did this by giong to my repository and doing

===============================================================================
  dpkg -i python-support_0.8.7ubuntu4_all.deb
dpkg - warning: downgrading python-support from 1.0.2ubuntu1 to 0.8.7ubuntu4.
(Reading database ... 114480 files and directories currently installed.)
Preparing to replace python-support 1.0.2ubuntu1 (using python-support_0.8.7ubuntu4_all.deb) ...
Unpacking replacement python-support ...
dpkg: warning - unable to delete old directory `/usr/lib/pymodules': Directory not empty
Setting up python-support (0.8.7ubuntu4) ...
===============================================================================

3) installed the foll. packages from my repository (hplip ver. 3.9.2) :-
hplip
hplip-data
hp-gui
This also pulled and installed hpijs

===============================================================================
apt-get install hplip-data hplip hplip-gui
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  hpijs
Suggested packages:
  hpijs-ppds hplip-doc kdeprint gtklp xpp
The following NEW packages will be installed:
  hpijs hplip hplip-data hplip-gui
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/7863kB of archives.
After this operation, 13.9MB of additional disk space will be used.
Do you want to continue [Y/n]?
===============================================================================

3b) Ran hp-setup to setup printer
This prompted me to download and install the proprietary plugin for my printer.

===============================================================================
HP Linux Imaging and Printing System (ver. 3.9.2)
Plugin Installer ver. 2.0

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

Plug-in version: 3.9.2
Installed HPLIP version: 3.9.2
Number of files to install: 27

Starting plugin install...
Copying file 86-hpmud-hp_laserjet_1000.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_1000.rules...
Copying file 86-hpmud-hp_laserjet_1005_series.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_1005_series.rules...
Copying file 86-hpmud-hp_laserjet_1018.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_1018.rules...
Copying file 86-hpmud-hp_laserjet_1020.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_1020.rules...
Copying file 86-hpmud-hp_laserjet_p1005.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1005.rules...
Copying file 86-hpmud-hp_laserjet_p1006.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1006.rules...
Copying file 86-hpmud-hp_laserjet_p1007.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1007.rules...
Copying file 86-hpmud-hp_laserjet_p1008.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1008.rules...
Copying file 86-hpmud-hp_laserjet_p1505.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1505.rules...
Copying file bb_marvell-x86_64.so to /usr/share/hplip/scan/plugins/bb_marvell-x86_64.so (link=/usr/share/hplip/scan/plugins/bb_marvell.so)...
Creating directory /usr/share/hplip/scan/plugins
Creating symlink /usr/share/hplip/scan/plugins/bb_marvell.so (link) to file /usr/share/hplip/scan/plugins/bb_marvell-x86_64.so (target)...
Copying file bb_soap-x86_64.so to /usr/share/hplip/scan/plugins/bb_soap-x86_64.so (link=/usr/share/hplip/scan/plugins/bb_soap.so)...
Creating symlink /usr/share/hplip/scan/plugins/bb_soap.so (link) to file /usr/share/hplip/scan/plugins/bb_soap-x86_64.so (target)...
Copying file bb_soapht-x86_64.so to /usr/share/hplip/scan/plugins/bb_soapht-x86_64.so (link=/usr/share/hplip/scan/plugins/bb_soapht.so)...
Creating symlink /usr/share/hplip/scan/plugins/bb_soapht.so (link) to file /usr/share/hplip/scan/plugins/bb_soapht-x86_64.so (target)...
Copying file hp_laserjet_1000.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_1000.fw.gz...
Creating directory /usr/share/hplip/data/firmware
Copying file hp_laserjet_1005_series.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_1005_series.fw.gz...
Copying file hp_laserjet_1018.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_1018.fw.gz...
Copying file hp_laserjet_1020.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_1020.fw.gz...
Copying file hp_laserjet_p1005.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1005.fw.gz...
Copying file hp_laserjet_p1006.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1006.fw.gz...
Copying file hp_laserjet_p1007.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1007.fw.gz...
Copying file hp_laserjet_p1008.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1008.fw.gz...
Copying file hp_laserjet_p1505.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1505.fw.gz...
Copying file license.txt to /usr/share/hplip/data/plugins/license.txt...
Creating directory /usr/share/hplip/data/plugins
Copying file lj-x86_64.so to /usr/share/hplip/prnt/plugins/lj-x86_64.so (link=/usr/share/hplip/prnt/plugins/lj.so)...
Creating directory /usr/share/hplip/prnt/plugins
Creating symlink /usr/share/hplip/prnt/plugins/lj.so (link) to file /usr/share/hplip/prnt/plugins/lj-x86_64.so (target)...
Setting plugin installed flag to 1.

Done.
Plug-in install successful.

Done.
===============================================================================

Now the hp-toolbox worked, and I was able to setup the printer and print as well.

4) Was getting the foll. error in syslog while starting xsane (it also gave the same device I/O error popup) :-

===============================================================================
May 28 22:05:05 xanadu xsane: scan/sane/marvell.c 66: unable to load restricted library: libhpmud.so: cannot open shared object file: No such file or directory
===============================================================================

Upon searching for this error (different from the error in syslog while starting xsane with the hplip.run install), I came across:

https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/364653

Solution:

Creating a link to /usr/lib/libhpmud.so.0 works around the issue:
===============================================================================
  sudo ln -s /usr/lib/libhpmud.so.0 /usr/lib/libhpmud.so
===============================================================================

I did this and xsane started fine and scanned across the network !

HP Packages installed:
===============================================================================
root@xanadu:~# dpkg -l | grep hp
ii hpijs 3.9.2-3ubuntu4 HP Linux Printing and Imaging - gs IJS drive
ii hplip 3.9.2-3ubuntu4 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 3.9.2-3ubuntu4 HP Linux Printing and Imaging - data files
ii hplip-gui 3.9.2-3ubuntu4 HP Linux Printing and Imaging - GUI utilitie
===============================================================================

Hi I resolved all isues using only FOSS. See enclosed.

Esp. point (4) at the end.

1) Uninstalled the hplip.run using make uninstall
2) Had to downgrade python-support-1.0.2 (it was the cause of the py-qt4-dbus not working
Did this by giong to my repository and doing

===============================================================================
  dpkg -i python-support_0.8.7ubuntu4_all.deb
dpkg - warning: downgrading python-support from 1.0.2ubuntu1 to 0.8.7ubuntu4.
(Reading database ... 114480 files and directories currently installed.)
Preparing to replace python-support 1.0.2ubuntu1 (using python-support_0.8.7ubuntu4_all.deb) ...
Unpacking replacement python-support ...
dpkg: warning - unable to delete old directory `/usr/lib/pymodules': Directory not empty
Setting up python-support (0.8.7ubuntu4) ...
===============================================================================

3) installed the foll. packages from my repository (hplip ver. 3.9.2) :-
hplip
hplip-data
hp-gui
This also pulled and installed hpijs

===============================================================================
apt-get install hplip-data hplip hplip-gui
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  hpijs
Suggested packages:
  hpijs-ppds hplip-doc kdeprint gtklp xpp
The following NEW packages will be installed:
  hpijs hplip hplip-data hplip-gui
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/7863kB of archives.
After this operation, 13.9MB of additional disk space will be used.
Do you want to continue [Y/n]?
===============================================================================

3b) Ran hp-setup to setup printer
This prompted me to download and install the proprietary plugin for my printer.

===============================================================================
HP Linux Imaging and Printing System (ver. 3.9.2)
Plugin Installer ver. 2.0

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

Plug-in version: 3.9.2
Installed HPLIP version: 3.9.2
Number of files to install: 27

Starting plugin install...
Copying file 86-hpmud-hp_laserjet_1000.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_1000.rules...
Copying file 86-hpmud-hp_laserjet_1005_series.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_1005_series.rules...
Copying file 86-hpmud-hp_laserjet_1018.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_1018.rules...
Copying file 86-hpmud-hp_laserjet_1020.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_1020.rules...
Copying file 86-hpmud-hp_laserjet_p1005.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1005.rules...
Copying file 86-hpmud-hp_laserjet_p1006.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1006.rules...
Copying file 86-hpmud-hp_laserjet_p1007.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1007.rules...
Copying file 86-hpmud-hp_laserjet_p1008.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1008.rules...
Copying file 86-hpmud-hp_laserjet_p1505.rules to /etc/udev/rules.d/86-hpmud-hp_laserjet_p1505.rules...
Copying file bb_marvell-x86_64.so to /usr/share/hplip/scan/plugins/bb_marvell-x86_64.so (link=/usr/share/hplip/scan/plugins/bb_marvell.so)...
Creating directory /usr/share/hplip/scan/plugins
Creating symlink /usr/share/hplip/scan/plugins/bb_marvell.so (link) to file /usr/share/hplip/scan/plugins/bb_marvell-x86_64.so (target)...
Copying file bb_soap-x86_64.so to /usr/share/hplip/scan/plugins/bb_soap-x86_64.so (link=/usr/share/hplip/scan/plugins/bb_soap.so)...
Creating symlink /usr/share/hplip/scan/plugins/bb_soap.so (link) to file /usr/share/hplip/scan/plugins/bb_soap-x86_64.so (target)...
Copying file bb_soapht-x86_64.so to /usr/share/hplip/scan/plugins/bb_soapht-x86_64.so (link=/usr/share/hplip/scan/plugins/bb_soapht.so)...
Creating symlink /usr/share/hplip/scan/plugins/bb_soapht.so (link) to file /usr/share/hplip/scan/plugins/bb_soapht-x86_64.so (target)...
Copying file hp_laserjet_1000.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_1000.fw.gz...
Creating directory /usr/share/hplip/data/firmware
Copying file hp_laserjet_1005_series.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_1005_series.fw.gz...
Copying file hp_laserjet_1018.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_1018.fw.gz...
Copying file hp_laserjet_1020.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_1020.fw.gz...
Copying file hp_laserjet_p1005.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1005.fw.gz...
Copying file hp_laserjet_p1006.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1006.fw.gz...
Copying file hp_laserjet_p1007.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1007.fw.gz...
Copying file hp_laserjet_p1008.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1008.fw.gz...
Copying file hp_laserjet_p1505.fw.gz to /usr/share/hplip/data/firmware/hp_laserjet_p1505.fw.gz...
Copying file license.txt to /usr/share/hplip/data/plugins/license.txt...
Creating directory /usr/share/hplip/data/plugins
Copying file lj-x86_64.so to /usr/share/hplip/prnt/plugins/lj-x86_64.so (link=/usr/share/hplip/prnt/plugins/lj.so)...
Creating directory /usr/share/hplip/prnt/plugins
Creating symlink /usr/share/hplip/prnt/plugins/lj.so (link) to file /usr/share/hplip/prnt/plugins/lj-x86_64.so (target)...
Setting plugin installed flag to 1.

Done.
Plug-in install successful.

Done.
===============================================================================

Now the hp-toolbox worked, and I was able to setup the printer and print as well.

4) Was getting the foll. error in syslog while starting xsane (it also gave the same device I/O error popup) :-

===============================================================================
May 28 22:05:05 xanadu xsane: scan/sane/marvell.c 66: unable to load restricted library: libhpmud.so: cannot open shared object file: No such file or directory
===============================================================================

Upon searching for this error (different from the error in syslog while starting xsane with the hplip.run install), I came across:

https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/364653

Solution:

Creating a link to /usr/lib/libhpmud.so.0 works around the issue:
===============================================================================
  sudo ln -s /usr/lib/libhpmud.so.0 /usr/lib/libhpmud.so
===============================================================================

I did this and xsane started fine and scanned across the network !

HP Packages installed:
===============================================================================
root@xanadu:~# dpkg -l | grep hp
ii hpijs 3.9.2-3ubuntu4 HP Linux Printing and Imaging - gs IJS drive
ii hplip 3.9.2-3ubuntu4 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 3.9.2-3ubuntu4 HP Linux Printing and Imaging - data files
ii hplip-gui 3.9.2-3ubuntu4 HP Linux Printing and Imaging - GUI utilitie
===============================================================================

Launchpad Janitor (janitor) said : #7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.