hp-setup fails with errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
goutam kodu |
Bug Description
Installed HPlip 33.11.10 the output and errors:
ste@local:
Creating directory hplip-3.11.10
Verifying archive integrity... All good.
Uncompressing HPLIP 3.11.10 Self Extracting Archive.
HP Linux Imaging and Printing System (ver. 3.11.10)
HPLIP Installer ver. 5.1
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.
Installer log saved in: hplip-install_
/
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.
Please choose the installation mode (a=automatic*, c=custom, q=quit) : a
Initializing. Please wait...
INTRODUCTION
------------
This installer will install HPLIP version 3.11.10 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).
DISTRO/OS CONFIRMATION
-------
Distro appears to be Ubuntu 11.10.
Is "Ubuntu 11.10" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y
ENTER USER PASSWORD
-------------------
Please enter the user (ste)'s password:
Password accepted
INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https:/
Please read the installation notes. Press <enter> to continue or 'q' to quit:
RUNNING PRE-INSTALL COMMANDS
-------
OK
INSTALL MISSING REQUIRED DEPENDENCIES
-------
warning: There are 6 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python-devel (Python devel - Python development files)
warning: Missing REQUIRED dependency: cups-devel (CUPS devel- Common Unix Printing System development files)
warning: Missing REQUIRED dependency: libusb (libusb - USB library)
warning: Missing REQUIRED dependency: libtool (libtool - Library building support services)
warning: Missing REQUIRED dependency: cups-image (CUPS image - CUPS image development files)
warning: Missing REQUIRED dependency: libjpeg (libjpeg - JPEG library)
INSTALL MISSING OPTIONAL DEPENDENCIES
-------
warning: There are 9 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency for option 'network': libcrypto (libcrypto - OpenSSL cryptographic library)
warning: Missing REQUIRED dependency for option 'network': libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: Missing REQUIRED dependency for option 'gui_qt4': pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: Missing REQUIRED dependency for option 'gui_qt4': pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab - PDF library for Python)
warning: Missing REQUIRED dependency for option 'fax': dbus (DBus - Message bus system)
warning: Missing REQUIRED dependency for option 'scan': sane-devel (SANE - Scanning library development files)
warning: Missing OPTIONAL dependency for option 'scan': xsane (xsane - Graphical scanner frontend for SANE)
warning: Missing OPTIONAL dependency for option 'base': cups-ddk (CUPS DDK - CUPS driver development kit)
CHECKING FOR NETWORK CONNECTION
-------
Network connection present.
RUNNING PRE-PACKAGE COMMANDS
-------
sudo dpkg --configure -a (Pre-depend step 1)
sudo apt-get install --yes --force-yes -f (Pre-depend step 2)
sudo apt-get update (Pre-depend step 3)
OK
DEPENDENCY AND CONFLICT RESOLUTION
-------
Running 'sudo apt-get install --assume-yes python-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups-bsd'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups-client'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libusb-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libtool'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libcupsimage2-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libjpeg62-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes openssl'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libsnmp-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-qt4-dbus'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-qt4'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libdbus-1-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libsane-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes xsane'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups'
Please wait, this may take several minutes...
warning: A previous install of HPLIP is installed and/or running.
sudo apt-get remove --assume-yes hplip hpijs hplip-cups hplip-data libhpmud0 foomatic-db-hpijs (Removing old HPLIP version)
warning: HPLIP removal failed. The previous install may have been installed using a tarball or this installer.
warning: Continuing to run installer - this installation should overwrite the previous one.
RUNNING POST-PACKAGE COMMANDS
-------
OK
RE-CHECKING DEPENDENCIES
-------
PRE-BUILD COMMANDS
------------------
OK
BUILD AND INSTALL
-----------------
Running './configure --with-
Please wait, this may take several minutes...
Command completed successfully.
Running 'make clean'
Please wait, this may take several minutes...
Command completed successfully.
Running 'make'
Please wait, this may take several minutes...
Command completed successfully.
Running 'sudo make install'
Please wait, this may take several minutes...
Command completed successfully.
Build complete.
POST-BUILD COMMANDS
-------------------
sudo /usr/sbin/usermod -a -Glp,lpadmin ste (Post-build step 1)
CLOSE HP_SYSTRAY
----------------
Sending close message to hp-systray (if it is currently running)...
RESTART OR RE-PLUG IS REQUIRED
-------
If you are installing a USB connected printer, and the printer was plugged in
when you started this installer, you will need to either restart your PC or
unplug and re-plug in your printer (USB cable only). If you choose to restart,
run this command after restarting: hp-setup (Note: If you are using a parallel
connection, you will have to restart your PC. If you are using network/wireless,
you can ignore and continue).
Restart or re-plug in your printer (r=restart, p=re-plug in*, i=ignore/continue, q=quit) : p
Please unplug and re-plugin your printer now. Press <enter> to continue or 'q' to quit:
PRINTER SETUP
-------------
Please make sure your printer is connected and powered on at this time.
error: hp-setup failed. Please run hp-setup manually.
ste@local:
Traceback (most recent call last):
File "/usr/bin/
from base import device, utils, tui, models, module
File "/usr/share/
import status
File "/usr/share/
import hpmudext
ImportError: libhpmud.so.0: cannot open shared object file: No such file or directory
Hi SJI,
Thank you for the terminal outputs.
The problem with Ubuntu 11.10 x86_64 bit is that they dont have a softlink between /usr/lib64 to /usr/lib. Where as in previous versions of Ubuntu (10.10 & 11.04) x86_64 bit there was a softlink between them.
HPLIP installer copies the libhpmud.* file in the /usr/lib64 directory and when "import hpmudext " is called from the status.py file it tries to look for the library in /usr/lib/ directory by default and hence it reports ,
ImportError: libhpmud.so.0: cannot open shared object file: No such file or directory
/usr/lib64 path is not set in LD_LIBRARY_PATH (env variable) by default hence is ends up looking for the library in /usr/lib/ (Which is something OS has to take care)
You can launch a query about this to Ubuntu.
What is i can provide is only a work around.
Open terminal and type in the below command: PATH=$LD_ LIBRARY_ PATH:/usr/ lib64/"
"export LD_LIBRARY_
Next run the command : "hp-setup" and check if it imports the library libhpmud.so.0
This is a temporary solution . The environment variable LD_LIBRARY_PATH is set until the terminal in not closed. To have this variable permanently set you need to edit the file .bashrc present in your home folder ($HOME).
Go to you home directory ( $cd ~)
edit the file .bashrc ( $vim .bashrc)
enter the below lines at the end of the file and save it and close it
LD_LIBRARY_PATH = $LD_LIBRARY_ PATH:/usr/ lib64/
export LD_LIBRARY_PATH
After that restart your system and check running "hp-setup"
Let us know on the same,
When it comes to installing of the plugin files for your printer it will ask you to have sudo user previlages. By default the env variable LD_LIBRARY_PATH is not set for sudo user.
Will provide you the steps to set the same for sudo user:
1. Enter the folder /etc/ld.so.conf.d/
$ cd /etc/ld.so.conf.d/
2. create a "conf" file by name "lib64.conf".
$vim lib64.conf
3. Add the line /usr/lib64/ in the file lib64.conf
4. Run command "sudo ldconfig" to load the libraries.
5. Next run commad "sudo hp-plugin -g" and check whether you are able to download and install the plugin file.
Sorry for inconvenience.
Thanks & Regards,
Goutam Kodu