Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently installed HP Linux Imaging and Printing System (ver. 2.8.12) in Kubuntu 6.04 and am able to print, but not able to see "status updates" in HP-toolbox. This is not critical but I don't like having error messages.
When I open HP-toolbox I get the following error:
Code:
warning: python-dbus not installed.
HP Linux Imaging and Printing System (ver. 2.8.12)
HP Device Manager ver. 15.0
--(snip Copyright etc.)--
error: Unable to load dbus - Automatic status updates in HPLIP Device Manager will be disabled.
X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
ole@SCO:~$
I have installed python-dbus and ALL other dbus related programs which are available through Adept except dev and doc. Any suggestions?
Have you try it as root.Maybe it's looking for the d-bus in the wrong path.Check hplips config files.Did you run hp-setup?
Thanks for the suggestions, alan_ri. I just ran hp-setup as root (which is actually the only way possible), and it gave me another error message:
Code:
warning: python-dbus not installed.
warning: No display found.
error: hp-setup requires GUI support (try running with --qt4). Also, try using interactive (-i) mode.
I don't know what qt4 is, and running with interactive just says I have another printer by that name installed, which of course I have because I've done this before and it prints OK.
I restarted dbus, but get the same results. The problem is getting HP-setup to understand that d-bus is installed.
What should I look for in hplips config?
Here are some possibly pertinent lines from /etc/hp/hplip.conf:
Code:
foomatic-drv-install = no
dbus-build = no
BTW, I also installed the same printer on another machine which is running Kubuntu 8.04 and it works fine there.
Post the output of hp-check -t,and install d-bus dev.
OK, all dbus Aptitude entries except documentaion are installed.
I ran hp-check -t and found two installation suggestions there.
1. python-reportlab
2. libsane
I then did a "sudo aptitude install --assume-yes" on both of those and the results for both was "0 packages upgraded, 0 newly installed, 0 to remove ... Need to get 0B of archives."
The output of hp-check -t is quite long so I snipped some parts;
Code:
hp-check[25265]: info: :
Initializing. Please wait...
Ubuntu
6.06
scheduler is running
1.2.2
Linux SCO 2.6.15-52-386 #1 PREEMPT Wed Oct 22 18:48:55 UTC 2008 i686 GNU/Linux
--------snip----------------------------
HPOJ running?
hp-check[25265]: info: :No, HPOJ is not running (OK).
hp-check[25265]: info: :
hp-check[25265]: info: :Checking Python version...
hp-check[25265]: info: :OK, version 2.4.3 installed
hp-check[25265]: info: :
hp-check[25265]: info: :Checking PyQt 3.x version...
hp-check[25265]: info: :OK, version 3.15 installed.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking PyQt 4.x version...
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for CUPS...
hp-check[25265]: info: :Status: scheduler is running
hp-check[25265]: info: :Version: 1.2.2
hp-check[25265]: info: :error_log is set to level: warn
---------------snip--------------
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dbus/python-dbus...
hp-check[25265]: info: :dbus daemon is running.
hp-check[25265]: info: :python-dbus version: 0.51.0
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :------------------------------------
hp-check[25265]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[25265]: info: :------------------------------------
hp-check[25265]: info: :
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).
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: cups - Common Unix Printing System...
---------------snip--------------
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dbus/python-dbus...
hp-check[25265]: info: :dbus daemon is running.
hp-check[25265]: info: :python-dbus version: 0.51.0
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :------------------------------------
hp-check[25265]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[25265]: info: :------------------------------------
hp-check[25265]: info: :
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).
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: cups - Common Unix Printing System...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: cups-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: cups-devel- Common Unix Printing System development files...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: dbus - Message bus system...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libtool - Library building support services...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libusb - USB library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: python-ctypes - A foreign function library for Python...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: python-dbus - Python bindings for dbus...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: python-devel - Python development files...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: Python XML libraries...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[25265]: info: :To install this dependency, execute this command:
hp-check[25265]: info: :sudo aptitude install --assume-yes python-reportlab hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: SANE - Scanning library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: scanimage - Shell scanning program...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP fu
nctionality may not function properly.
hp-check[25265]: info: :To install this dependency, execute this command:
hp-check[25265]: info: :sudo aptitude install --assume-yes libsane
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :----------------------
hp-check[25265]: info: :| HPLIP INSTALLATION |
hp-check[25265]: info: :----------------------
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :Currently installed HPLIP version...
hp-check[25265]: info: :HPLIP 2.8.12 currently installed in '/usr/share/hplip'
.
hp-check[25265]: info: :
hp-check[25265]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[25265]: info: :[dirs]
run = /var/run
cupsbackend = /usr/lib/cups/backend
ppd = /usr/share/ppd/hpijs/HP
doc = /usr/share/doc/hplip-2.8.12
drv = /usr/share/cups/drv/hp
ppdbase = /usr/share/ppd/hpijs
home = /usr/share/hplip
cupsfilter = /usr/lib/cups/filter
icon = /usr/share/applications
[last_used]
device_uri = hp:/net/Officejet_Pro_K8600?ip=192.168.1.100
[hplip]
version = 2.8.12
[configure]
foomatic-rip-hplip-install = yes
qt4 = no
foomatic-ppd-install = yes
doc-build = yes
qt3 = yes
cups11-build = no
gui-build = yes
internal-tag = 2.8.12.26
foomatic-drv-install = no
pp-build = yes
ui-toolkit = qt3
scanner-build = yes
network-build = yes
restricted-build = no
dbus-build = no
shadow-build = no
fax-build = no
hp-check[25265]: info: :
hp-check[25265]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[25265]: info: :[last_used]
device_uri = hp:/net/Officejet_Pro_K8600?ip=192.168.1.100
[installation]
version = 2.8.12.26
date_time = 01/14/09 14:13:43
---------------snip--------
hp-check[25265]: info: :Officejet_Pro_K8600
hp-check[25265]: info: :-------------------
hp-check[25265]: info: :Type: Printer
hp-check[25265]: info: :Installed in HPLIP?: Yes, using the hp: CUPS backend.
hp-check[25265]: info: :Device URI: hp:/net/Officejet_Pro_K8600?ip=192.168.1.1
00
hp-check[25265]: info: :PPD: /etc/cups/ppd/Officejet_Pro_K8600.ppd
hp-check[25265]: info: :PPD Description: HP Officejet Pro k8600 Foomatic/hpijs
, hpijs 2.8.12.26
hp-check[25265]: info: :Printer status: printer Officejet_Pro_K8600 is idle.
enabled since Sun 04 Jan 2009 10:32:11 PM PST
hp-check[25265]: info: :Communication status: Good
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :----------------------
hp-check[25265]: info: :| SANE CONFIGURATION |
hp-check[25265]: info: :----------------------
hp-check[25265]: info: :
hp-check[25265]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[25265]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking output of 'scanimage -L'...
error: scanimage not found.
hp-check[25265]: info: :
hp-check[25265]: info: :---------------------
hp-check[25265]: info: :| PYTHON EXTENSIONS |
hp-check[25265]: info: :---------------------
hp-check[25265]: info: :
hp-check[25265]: info: :Checking 'cupsext' CUPS extension...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking 'pcardext' Photocard extension...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking 'hpmudext' I/O extension...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking 'scanext' SANE scanning extension...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :-----------------
hp-check[25265]: info: :| USB I/O SETUP |
hp-check[25265]: info: :-----------------
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for permissions of USB attached printers...
hp-check[25265]: info: :
hp-check[25265]: info: :-----------
hp-check[25265]: info: :| SUMMARY |
hp-check[25265]: info: :-----------
hp-check[25265]: info: :
error: 6 errors and/or warnings.
hp-check[25265]: info: :
hp-check[25265]: info: :Summary of needed commands to run to satisfy missing dependencies:
hp-check[25265]: info: :sudo aptitude install --assume-yes python-reportlab
hp-check[25265]: info: :sudo aptitude install --assume-yes libsane
hp-check[25265]: info: :
hp-check[25265]: info: :Please refer to the installation instructions at:
hp-check[25265]: info: :http://hplip.sourceforge.net/install/index.html
hp-check[25265]: info: :
hp-check[25265]: info: :Done.
apt-get install python-reportlab
apt-get install libsane.
Try that.
Also install Qt4 and PyQt4.I think there's the problem.
I just uninstalled and reinstalled hplip and came to the same conslusion. However python-reportlab will not uninstall (nor purge) properly and it will not install properly either. Here is what Aptitude says:
Code:
There was an error committing changes. There was possibly a problem
downloading some packages, or else the commit would break packages.
The HP installation also reports optional missing dependencies but it cannot install them because:
Code:
warning: This installer cannot install 'cups-ddk' for your distro/OS
and/or version. A package manager 'adept_notifier' appears to be running.
Please quit the package manager and press enter to continue (i=ignore, r=retry*, f=force, q=quit)
Unfortunately killing "adept_notifier" makes it impossible to install anything. I tried it.
After reading your suggestion just now, I installed libsane-extras, and libsane-extras-dev as well as lsb-qt4. There is no PyQt4, or similar, available. Aptitude reports the same as above (There was an error etc) but they still installed.
Then I ran the install again, but it still couldn't do those missing dependecies. After throughly breaking the system I am now back to where I was and I can print again.
It is unfortunate that I still cannot get full functionality, but perhaps it would be safer to leave things as they are and hope for a better situation when I upgrade to 8.04. ... unless you have a better idea.
Thankyou for all that work! I tried it several times and it doesn't look good. My feeling is that there are a number changes since the release of my old 6.04 that have left me in the dust. Some things have broken and the depositories are not right any more. I know they should be, but the problem here seems to indicate otherwise. Unfortunately I don't know enough about debugging this situation to file any bug report.
Your suggestions simply broke the printing system every time, and to bring it back I had to run the hplip-2.8.12.run automatic script. That works every time (fortunately) but leaves me in the same situation.
In case it is of interest, here are some of the errors I encountered:
Code:
Failed to fetch http://people.ubuntu.com/~doko/OOo2/./Packages.gz 404 Not Found
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
------
- Creating/updating hplip user account...
* Starting HP Linux Printing and Imaging System
invoke-rc.d: initscript hplip, action "start" failed.
dpkg: error processing hplip (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
hplip
-----
make: Nothing to be done for `all'.
-----
sudo python ./installer/fix_symlink.py
python: can't open file './installer/fix_symlink.py': [Errno 2] No such file or directory
I have now spent many hours on this, and I am afraid that despite your generous help, it has been for nothing. I am not well and don't feel that I have the energy to continue. After a number of years of not being able to print in Linux (and I won't use MSwindows) I should be grateful that I can now. Perhaps some time in the future Linux will be able to print from every computer, but I don't have much hope and am willing to accept that situation. For me to want to have full functionality is simply asking too much and perhaps even a little arrogant. I fear that maybe I shouldn't have asked for help in the first place as I am getting quite tired and need to rest. Thankyou very much for your generous help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.