Device installation: "Plug-in install failed."

Asked by Felix Wolters

Hello,

I have a problem to install the plugin for hplip.

Printer: HP LaserJet 400 Color MFP m475dn
HPLIP Version: 3.12.2
OS: Ubuntu 10.04 (tried the same with Ubuntu 12.04 in vitual machine for testing, same results)

Installation of HPLIP went successfully, HP Device Manager detects the device correctly. Dialog for Installing the driver plugin appears, seems to download the plugin, shows license agreement for confirmation, but imedately after that gives error message "Plug-in install failed."

Maybe the option for a local copy of the plugin could help? But I can't find an adress to download the plugin manually.

Thanks for a solution or an idea!

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Srikanth (srikanth-lokare) said :
#1

Hi Felix

Please try the following instructions.

1. Reboot your machine.
2. Make sure that network is working on your machine. May be you can try to open "google page".
3. Open the terminal and input "sudo hp-plugin" and continue to install the plugin.

Please let us know, if the problem still persists.

Thanks for using HPLIP.

Thanks and Regards,
Srikanth Lokare

Revision history for this message
Felix Wolters (andere-accounts) said :
#2

Hi Srikanth Lokare,

this is what I already had tried and have tried again now, but without success.

Beneeth this message, I'm posting what the terminal gives out while I run "sudo hp-plugin".

My Internet connection is definetely working. The terminal output confirms a successful download, too. Instead, there appear other error messages I'm not really able to deal with.

Thanks and regards
Felix

Terminal output:
-------------------------------

felix@felix-laptop:~$ sudo hp-plugin
[sudo] password for felix:

HP Linux Imaging and Printing System (ver. 3.12.4)
Plugin Download and Install Utility ver. 2.1

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.

/Error: "/var/tmp/kdecache-felix" is owned by uid 1000 instead of uid 0.
(2351) KIconCache::Private::themeDirsChanged: Theme directory has been modified
Checking for network connection...
Downloading configuration file from: http://hplip.sf.net/plugin.conf
Checking for network connection...
Downloading plug-in from: http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.4-plugin.run
Receiving digital keys: /usr/bin/gpg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0xA59047B9
Verifying archive integrity... All good.
Uncompressing HPLIP 3.12.4 Plugin Self Extracting Archive.........................................

HP Linux Imaging and Printing System (ver. 3.12.4)
Plugin Installer ver. 3.0

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.

Plug-in version: 3.12.4
Installed HPLIP version: 3.12.4
Number of files to install: 36

QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Datei oder Verzeichnis nicht gefunden
QFileSystemWatcher: failed to add paths: /home/felix/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
Error: "/var/tmp/kdecache-felix" is owned by uid 1000 instead of uid 0.

Done.
./hplip-plugin-install: Zeile 4: 2431 Speicherzugriffsfehler python ./plugin_install.py $*
error: Plug-in install failed.

Done.
felix@felix-laptop:~$

Revision history for this message
Felix Wolters (andere-accounts) said :
#3

PS: Tried the same ("sudo hp-plugin") on a Ubuntu 12.04, and there it worked now. (Have this Ubuntu 12.04 in a virtual machine for testing, configured a network bridge so it communicates with the hp device as normal.) I can print and scan there.

The description above comes from a Ubuntu 10.04 machine, where the problem still persists.

Revision history for this message
Felix Wolters (andere-accounts) said :
#4

PS2: Could install hplip including plugin on ANOTHER (physical) Ubuntu 10.04 right now, and it seems to work fine! The problem occurs only on the machine first mentioned, where I posted the terminal output above.

Revision history for this message
Srikanth (srikanth-lokare) said :
#5

Hi Felix,

Please try the following steps.

1. Download the required plugin and asc files using following command.
    $wget http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.4-plugin.run
    $wget http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.4-plugin.run.asc

2. Navigate to the directory where the files are downloaded and change the permission to execute using following command.
   $chmod 777 hplip-3.12.4-plugin.run

3. Now install the plugin using following command as root user.
   $sudo sh hplip-3.12.4-plugin.run

Let us know if the problem still perisists.

Thanks and Regards,
Srikanth Lokare

Revision history for this message
Felix Wolters (andere-accounts) said :
#6

Hi Srikanth Lokare,

thank you again for your kind reply!

Unfortunatelly the problem persists. I give the output of the script beneeth. But this time there came NO information box telling "Plug-in install failed".

My status is something in between: HP Device Manager shows the device correctly and provides information from it (e.g. status of toner cartridges). Printing seems to work perfectly. BUT scanning ends up with error message boxes or mistakes.

Terminal output:
-------------------------

felix@felix-laptop:~$ chmod 777 hplip-3.12.4-plugin.run
felix@felix-laptop:~$ sudo sh hplip-3.12.4-plugin.run
[sudo] password for felix:
Verifying archive integrity... All good.
Uncompressing HPLIP 3.12.4 Plugin Self Extracting Archive.........................................

HP Linux Imaging and Printing System (ver. 3.12.4)
Plugin Installer ver. 3.0

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.

Plug-in version: 3.12.4
Installed HPLIP version: 3.12.4
Number of files to install: 36

QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Datei oder Verzeichnis nicht gefunden
QFileSystemWatcher: failed to add paths: /home/felix/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
Error: "/var/tmp/kdecache-felix" is owned by uid 1000 instead of uid 0.

Done.
./hplip-plugin-install: Zeile 4: 2682 Speicherzugriffsfehler python ./plugin_install.py $*
felix@felix-laptop:~$

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#7

Hello Feilx,

Can you use kdesudo instead of sudo and check.

i.e 3rd step in the above post should be like below.
3. Now install the plugin using following command as root user.
   $ kdesudo sh hplip-3.12.4-plugin.run

First two steps are same.

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#8

If kdesudo also does not work then please try following
==> su -c "sh hplip-3.12.4-plugin.run"

Revision history for this message
Felix Wolters (andere-accounts) said :
#9

Dear Sanjay Kumar,

unfortunatelly this doesn't helb either.

Same results with kdesudo.

When using "su" I get "Fehler bei Authentifizierung" (means "authentification error"). I guess this is because the root account is deactivated in Ubuntu by default (?).

Thanks anyway so far and best regards
Felix

Revision history for this message
Launchpad Janitor (janitor) said :
#10

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

Revision history for this message
David Oxland (doxland) said :
#11

Sanjay Kumar
 I'm struggling with much the same probvlem re install of HPplugin
 Are you able to help?
Thanks
David Oxland

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#12

Hello David,

Please follow following things.
=> Download and install the latest HPLIP release from http://hplipopensource.com/hplip-web/install/install/index.html (automatic) or http://hplipopensource.com/hplip-web/install/manual/index.html (manual if automatic does not work)

=> Reconfigure print queue with the commands in the terminal mentioned below.
       => system-config-printer (remove all print queues)
      => su -c "hp-plugin" or
      => sudo hp-plugin or
      => su - -c "hp-plugin" or
      => kdesudo hp-plugin
      => hp-setup (It should not be run in a root mode. This command is adding print queue, make sure you select ppd name having "-ps" or "hpcups" substring)
=>Try printing now.

Please provide me the output of "hp-check -t" command if above steps dont work.

Revision history for this message
David Oxland (doxland) said :
#13

Reply for Sanjay
 output of

Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb
Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb
Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb

Done.
david@david-System-Product-Name:~$ hp-check -t

HP Linux Imaging and Printing System (ver. 3.12.4)
Dependency/Version Check Utility ver. 14.3

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

Saving output in log file: hp-check.log

Initializing. Please wait...

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

Basic system information:
Linux david-System-Product-Name 3.2.0-25-generic #40-Ubuntu SMP Wed May
23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Distribution:
ubuntu 12.04

Checking Python version...
OK, version 2.7.3 installed

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

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

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 1.0.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 devel- Common Unix Printing System
development files...
OK, found.

Checking for dependency: CUPS image - CUPS image 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: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
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 libnotify - Python bindings for the
libnotify Desktop notifications...
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.12.4 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.12.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.4
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
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.4
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
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.4

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1339661889
pending_upgrade_time = 0
latest_available_version = 3.12.4

[installation]
date_time = 12-06-14 01:28:39
version = 3.12.4

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

No devices found.

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

HP_LaserJet_Professional_P1102w
-------------------------------
Type: Printer
Device URI:
hp:/usb/HP_LaserJet_Professional_P1102w?serial=000000000Q93422TSI1c
PPD: /etc/cups/ppd/HP_LaserJet_Professional_P1102w.ppd
PPD Description: HP LaserJet Professional p1102w, hpcups 3.12.2,
requires proprietary plugin
Printer status: printer HP_LaserJet_Professional_P1102w is idle.
enabled since Thu 14 J/usr/lib/cups/backend/hp failed
Required plug-in status: Installed
error: Unable to communicate with device (code=12):
hp:/usb/HP_LaserJet_Professional_P1102w?serial=000000000Q93422TSI1c
error: Device not found
error: Communication status: Failed

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

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

Checking output of 'scanimage -L'...

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

---------------------
| 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...

HP Device 0x32a at 002:007:
    Device URI:
hp:/usb/HP_LaserJet_Professional_P1102w?serial=000000000Q93422TSI1c
    Device node: /dev/bus/usb/002/007
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/007
# owner: root
# group: lp
user::rw-
user:david:rw-
group::rw-
mask::rw-
other::r--

---------------
| USER GROUPS |
---------------

david adm lp cdrom sudo dip plugdev lpadmin sambashare

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

error: 1 error or warning.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#14

 Hi,
Thanks for the update. Looks like Smart install feature is enabled. Can you do following things.
1)Run in terminal : $ lsusb
                         (It will display one device as Hewlett-Packard.)
                         e.g. Bus 001 Device 002: ID 03f0:002a Hewlett-Packard
2) Now Run in teminal : $ lsusb -d 03f0:002a -v
If bMumInterfaces = 1, then smart install feature has been enabled. If this is enabled, your device will be detected as CDRom from where you can install the software on windows. Unfortunately we don't support this feature in Linux as of now. If you disable this feature on device, your device will be detected in Linux. To disable this you should have a windows machine and can follow the below steps.
1. Download the Full Driver for Windows from www.hp.com
2. Run the exe, extract it to a folder.
3. Go to extracted folder/UTIL directory
4. Connect your device.
5. Run SIUtility.exe and follow the wizard to disable the feature.

Revision history for this message
David Oxland (doxland) said :
#15

Hillo Sanjay
Thanks for the quick reply.
 Judging from your remarks you may believe that I have a dual boot with
Microsoft installed.
 I'm strictly a Ubuntu user so i'm questioning downloading a windows
application with exe's.
 If this is truly what you mean I'll get going with it .
 I'm very happy to have help as I've been waiting on Ubuntu paid help
for 4 weeks and I think I'm in a printer stack waiting to be examined.
Thanks again for your help.
David Oxland

On Thu, 2012-06-14 at 11:21 +0000, Sanjay Kumar wrote:

> Question #197841 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/197841
>
> Sanjay Kumar posted a new comment:
> Hi,
> Thanks for the update. Looks like Smart install feature is enabled. Can you do following things.
> 1)Run in terminal : $ lsusb
> (It will display one device as Hewlett-Packard.)
> e.g. Bus 001 Device 002: ID 03f0:002a Hewlett-Packard
> 2) Now Run in teminal : $ lsusb -d 03f0:002a -v
> If bMumInterfaces = 1, then smart install feature has been enabled. If this is enabled, your device will be detected as CDRom from where you can install the software on windows. Unfortunately we don't support this feature in Linux as of now. If you disable this feature on device, your device will be detected in Linux. To disable this you should have a windows machine and can follow the below steps.
> 1. Download the Full Driver for Windows from www.hp.com
> 2. Run the exe, extract it to a folder.
> 3. Go to extracted folder/UTIL directory
> 4. Connect your device.
> 5. Run SIUtility.exe and follow the wizard to disable the feature.
>

Revision history for this message
David Oxland (doxland) said :
#16

Further for Sanjay
 No mention of bMUMinterfaces appeared here.

David

david@david-System-Product-Name:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 002 Device 004: ID 03f0:032a Hewlett-Packard
Bus 003 Device 002: ID 046d:c526 Logitech, Inc. Nano Receiver
Bus 006 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
david@david-System-Product-Name:~$ lsusb -d 03f0:002a -v
david@david-System-Product-Name:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 002 Device 004: ID 03f0:032a Hewlett-Packard
Bus 003 Device 002: ID 046d:c526 Logitech, Inc. Nano Receiver
Bus 006 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
david@david-System-Product-Name:~$