HP-Toolbox not functioning

Asked by David Vincent-Jones

In a fresh install of Ubuntu 8.10 using HPLIP-2.8.10 ... 2 printers Deskjet 970 cxi and PhotosmartPro b8850
I was able to print test pages at installation time and am able to print test pages through CUPS.

I can get access to 'printer properties' through System > Administration however ...

hp-toolbox does not appear to have been installed
and .. Applications > Accessories > HP Device Manager is not functioning.

I would appreciate help.

David

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

For HPLIP to function with Ubuntu 8.10 you first need to install hplip-gui, run a terminal, (Applications -> Accesories -> Terminal)

Then run:

sudo apt-get install hplip-gui

Then the toolbox should work correctly.

Hope this helps.

Aaron

Revision history for this message
David Vincent-Jones (davidvj) said :
#2

Aaron;

I ran the line suggested but still not functioning! There were several
strange options at the install, which frankly I found baffling, and I
finally used "Y" .

hp-toolbox appears in the Add/Remove list of applications.

There is a file /usr/bin/hp-toolbox in place.

Applications > Accessories > HP Device Manager still does not function
but the command is set as 'hp-toolbox'; I have tried to fully direct
as /usr/bin/hp-toolbox but that is not helping so I changed it back.

David

On Thu, 2008-12-11 at 00:18 +0000, Aaron Albright wrote:
> Your question #54092 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/54092
>
> Status: Open => Answered
>
> Aaron Albright proposed the following answer:
> For HPLIP to function with Ubuntu 8.10 you first need to install hplip-
> gui, run a terminal, (Applications -> Accesories -> Terminal)
>
> Then run:
>
>
> sudo apt-get install hplip-gui
>
> Then the toolbox should work correctly.
>
> Hope this helps.
>
> Aaron
>

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

Okay..so if you open a terminal and run: hp-toolbox

What happens?

Please post any output in the terminal..

Thanks.

Aaron

Revision history for this message
David Vincent-Jones (davidvj) said :
#4

Aaron;

david@david-laptop:~$ hp-toolbox
error: Unable to open /home/david/.hplip/hp-toolbox.lock lock file.
david@david-laptop:~$

David

On Thu, 2008-12-11 at 17:41 +0000, Aaron Albright wrote:
> Your question #54092 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/54092
>
> Status: Open => Needs information
>
> Aaron Albright requested for more information:
> Okay..so if you open a terminal and run: hp-toolbox
>
> What happens?
>
> Please post any output in the terminal..
>
> Thanks.
>
> Aaron
>

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#5

Run:

rm /home/david/.hplip/hp-toolbox.lock

then hp-toolbox.

A

Revision history for this message
David Vincent-Jones (davidvj) said :
#6

Aaron;

david@david-laptop:~$ rm /home/david/.hplip/hp-toolbox.lock
rm: cannot remove `/home/david/.hplip/hp-toolbox.lock': Permission
denied
david@david-laptop:~$

David

On Thu, 2008-12-11 at 17:48 +0000, Aaron Albright wrote:
> rm /home/david/.hplip/hp-toolbox.lock

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#7

sudo rm /home/david/.hplip/hp-toolbox.lock

A

Revision history for this message
David Vincent-Jones (davidvj) said :
#8

Aaron;

david@david-laptop:~$ sudo rm /home/david/.hplip/hp-toolbox.lock
[sudo] password for david:
rm: cannot remove `/home/david/.hplip/hp-toolbox.lock': No such file or
directory
david@david-laptop:~$

David
On Thu, 2008-12-11 at 18:03 +0000, Aaron Albright wrote:
> sudo rm /home/david/.hplip/hp-toolbox.lock
>

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#9

Run hp-toolbox again..same error?

If so also run:

ps ax | grep hp

and post that output.

A

Revision history for this message
David Vincent-Jones (davidvj) said :
#10

Aaron;

FYI .. /home/david/.hplip shows 2 Emblems .. ReadOnly and Unreadable ..
Permission set at Root

david@david-laptop:~$ hp-toolbox
error: Unable to open /home/david/.hplip/hp-toolbox.lock lock file.
david@david-laptop:~$ ps ax | grep hp
 1222 ? S< 0:00 [khpsbpkt]
12113 pts/0 S+ 0:00 grep hp
david@david-laptop:~$

David

On Thu, 2008-12-11 at 18:12 +0000, Aaron Albright wrote:
> ps ax | grep hp

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#11

Please run hp-check -t and post the output.

A

Revision history for this message
David Vincent-Jones (davidvj) said :
#12

Aaron;

As requested: *******************************
david@david-laptop:~$ hp-check -t

HP Linux Imaging and Printing System (ver. 2.8.10)
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 david-laptop 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008
i686 GNU/Linux

Distribution:
ubuntu 8.10

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

Checking Python version...
OK, version 2.5.2 installed

Checking PyQt 3.x version...
OK, version 3.17 installed.

Checking PyQt 4.x version...

Checking for CUPS...
Status: scheduler is running
Version: 1.3.9
error_log is set to level: warn
note: For troubleshooting printing issues, it is best to have the CUPS
'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the
file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with
'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on
how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to
the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a
console/shell:
note: tail -f /var/log/cups/error_log

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

------------------------------------
| 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 3- Qt interface for Python (for Qt version
3.x)...
OK, found.

Checking for dependency: PyQt 4- Qt interface for Python (for Qt version
4.x)...
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 2.8.10 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=2.8.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-2.8.10
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=yes
internal-tag=2.8.10.33
restricted-build=no
ui-toolkit=qt3

Current contents of '~/.hplip/hplip.conf' file:
error: Could not access file: Permission denied

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

  Device URI Model
  -------------------------------- ------------------------------
  hp:/usb/DeskJet_970C?serial=US9A HP DeskJet 970C
  D1K012JQ
  hp:/usb/Photosmart_Pro_B8800_ser HP Photosmart Pro B8800 series
  ies?serial=MY82I11007053V

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

DESKJET-970C
------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/DeskJet_970C?serial=US9AD1K012JQ
PPD: /etc/cups/ppd/DESKJET-970C.ppd
PPD Description: HP DeskJet 970C Foomatic/cdj550
Printer status: printer DESKJET-970C is idle. enabled since Wed 10 Dec
2008 03:36:24 PM PST

HP Linux Imaging and Printing System (ver. 2.8.10)
System Tray Status Service 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.

error: Unable to open /home/david/.hplip/hp-systray.lock lock file.
warning: Unable to connect to dbus. Is hp-systray running?
Communication status: Good

Photosmart_Pro_B8800_2
----------------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/Photosmart_Pro_B8800_series?serial=MY82I11007053V
PPD: /etc/cups/ppd/Photosmart_Pro_B8800_2.ppd
PPD Description: HP Photosmart Pro b8800 series Foomatic/hpijs, hpijs
2.8.10
Printer status: printer Photosmart_Pro_B8800_2 is idle. enabled since
Wed 10 Dec 2008 03:38:17 PM PST

HP Linux Imaging and Printing System (ver. 2.8.10)
System Tray Status Service 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.

error: Unable to open /home/david/.hplip/hp-systray.lock lock file.
warning: Unable to connect to dbus. Is hp-systray running?
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'...

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 0xd002 at 002:006:
    Device URI:
hp:/usb/Photosmart_Pro_B8800_series?serial=MY82I11007053V
    Device node: /dev/bus/usb/002/006
    Mode: 0666
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/006
# owner: root
# group: lp
user::rw-
user:david:rw-
group::rw-
mask::rw-
other::rw-

HP Device 0x1004 at 002:005:
    Device URI: hp:/usb/DeskJet_970C?serial=US9AD1K012JQ
    Device node: /dev/bus/usb/002/005
    Mode: 0666
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/005
# owner: root
# group: lp
user::rw-
user:david:rw-
group::rw-
mask::rw-
other::rw-

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

No errors or warnings.

Done.
david@david-laptop:~$

end:**************************************************

On Thu, 2008-12-11 at 21:18 +0000, Aaron Albright wrote:
> hp-check -t

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#13

Run:

ls -l /home/aaron/.hplip/

and post the output.

A

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#14

Actually that was supposed to be

ls -l ~/.hplip/hplip.conf

My cut and paste didn't stick lol

A

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#15

Actually that was supposed to be

ls -l ~/.hplip/

My cut and paste didn't stick lol

A

Revision history for this message
David Vincent-Jones (davidvj) said :
#16

Aaron;

Replying to both emails:

david@david-laptop:~$ ls -l ~/.hplip/hplip.conf
ls: cannot access /home/david/.hplip/hplip.conf: Permission denied
david@david-laptop:~$ sudo ls -l ~/.hplip/hplip.conf
[sudo] password for david:
-rw-r----- 1 root root 0 2008-12-10 14:44 /home/david/.hplip/hplip.conf

david@david-laptop:~$ ls -l ~/.hplip/
ls: cannot open directory /home/david/.hplip/: Permission denied
david@david-laptop:~$ sudo ls -l ~/.hplip/
total 0
-rw-r----- 1 root root 0 2008-12-10 14:44 hplip.conf
david@david-laptop:~$

David

On Thu, 2008-12-11 at 22:30 +0000, Aaron Albright wrote:
> ls -l ~/.hplip/

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#17

Not sure why but your permissions are wrong for the hplip.conf.

Try

sudo chown david ~/.hplip/hplip.conf

then

sudo chmod 700 ~/.hplip/hplip.conf

Revision history for this message
David Vincent-Jones (davidvj) said :
#18

Aaronn;

david@david-laptop:~$ sudo chown david ~/.hplip/hplip.conf
[sudo] password for david:
david@david-laptop:~$ sudo chmod 700 ~/.hplip/hplip.conf
david@david-laptop:~$ hp-toolbox
error: Unable to open /home/david/.hplip/hp-toolbox.lock lock file.
david@david-laptop:~$

David

On Thu, 2008-12-11 at 23:05 +0000, Aaron Albright wrote:
> Your question #54092 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/54092
>
> Status: Open => Needs information
>
> Aaron Albright requested for more information:
> Not sure why but your permissions are wrong for the hplip.conf.
>
> Try
>
> sudo chown david ~/.hplip/hplip.conf
>
> then
>
> sudo chmod 700 ~/.hplip/hplip.conf
>

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#19

Try sudo ls -l ~/.hplip/ again and post the output.

A

Revision history for this message
David Vincent-Jones (davidvj) said :
#20

Aaron;

david@david-laptop:~$ sudo ls -l ~/.hplip/
total 0
-rwx------ 1 david root 0 2008-12-10 14:44 hplip.conf
david@david-laptop:~$

Aaron .. should I at this point just try to totally flush the hplip and
start again? I do hate to be a quitter but something is really wierd
here.

David

On Thu, 2008-12-11 at 23:19 +0000, Aaron Albright wrote:
> Your question #54092 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/54092
>
> Status: Open => Needs information
>
> Aaron Albright requested for more information:
> Try sudo ls -l ~/.hplip/ again and post the output.
>
> A
>

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#21

Well lets try one more thing:

sudo chmod 777 ~/.hplip/hplip.conf

Then try running hp-toolbox...

A

Revision history for this message
David Vincent-Jones (davidvj) said :
#22

Aaron;

this is it ...
david@david-laptop:~$ sudo chmod 777 ~/.hplip/hplip.conf
[sudo] password for david:
david@david-laptop:~$ hp-toolbox
error: Unable to open /home/david/.hplip/hp-toolbox.lock lock file.
david@david-laptop:~$

Something that I notice and also occurred on prior installations: When I
start a print job I get an error message from the printer icon that says
that "Deskjet---(or PhotosmartPro---) may not be connected". I have now
learnt to ignore this and the printing simply continues. This is
obviously not connected to either printer but a general problem.
Anyway ... this I can live with.

So: do I strip the beast and start again. How do I ensure that I get
absolutely everything out?

I have just sent basic png files from DigiKam to both printers and they
appear to be functioning correctly .. so something is OK.

David

On Fri, 2008-12-12 at 00:04 +0000, Aaron Albright wrote:
> sudo chmod 777 ~/.hplip/hplip.conf

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#23

I'm not sure what's going on. Lets uninstall and re-install.

sudo rm -rf /usr/share/hplip
sudo rm -rf /home/david/.hplip

and then reinstall using the automatic installer.

Hope this helps.

A

Revision history for this message
David Vincent-Jones (davidvj) said :
#24

Aaron;

Did a full re-install and all appears to be running correctly. The
hp-toolbox is now opening.
I will do a full test tomorrow and advise if problems surface.

In the meantime, thanks for for your dogged help.

David

On Fri, 2008-12-12 at 00:39 +0000, Aaron Albright wrote:
> Your question #54092 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/54092
>
> Status: Open => Needs information
>
> Aaron Albright requested for more information:
> I'm not sure what's going on. Lets uninstall and re-install.
>
> sudo rm -rf /usr/share/hplip
> sudo rm -rf /home/david/.hplip
>
> and then reinstall using the automatic installer.
>
> Hope this helps.
>
> A
>

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#25

No problem. Thanks for your support of HPLIP--we appreciate it.

Aaron

Revision history for this message
Chico de la Guerra (cypress-six1923) said :
#26

I have a similar problem to the one David had.

I installed JJ (9.04) last night. During that install I was asked if I'd like to replace my hplip (files or configuration or something) or keep that from 8.10 and I choose to keep it (I was asked two questions about replacing something with hplip and declined in both cases)

The hplip icon no longer appears (as it did in 8.10) as a panel icon nor as a system-tray box on the lower toolbox.

The printers work fine however.

On System>preferences>hpliptoolbox I see the icon. When I right click, I can place the launcher on either panel or desktop, no problem, however it has no effect when clicked (in 8.10 it brought up the interactive GUI menu).

hplip-gui is installed.

I cut to the chase, and started attempting to run /usr/bin/hp-toolbox directly.

I received the error message that qt3 support was missing, and installed it repeatedly with aptitude or apt-get and probably synaptic too (not all at once, at different times)

Once it installed, I received a different error message, namely, "unable to lock . . . (you will see the rest below) . . . "

Taking a cue from Aaron, I rm'd the toolbox lock in /home/chico/.hplip/hp-toolbox.lock

However there appears to be some sort of error loop. Relevant command line output below:

chico@chico-laptop:~$ ls .hplip/
hplip.conf hp-toolbox.lock
chico@chico-laptop:~$ rm .hplip/hp-toolbox.lock
chico@chico-laptop:~$ hp-toolbox

HP Linux Imaging and Printing System (ver. 2.8.12)
HP Device Manager ver. 15.0

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.

error: Unable to load Qt3 support. Is it installed?
chico@chico-laptop:~$ hp-toolbox
error: Unable to lock /home/chico/.hplip/hp-toolbox.lock. Is hp-toolbox already running?
chico@chico-laptop:~$ ls .hplip
hplip.conf hp-toolbox.lock
chico@chico-laptop:~$ rm .hplip/hp-toolbox.lock
chico@chico-laptop:~$ ls .hplip
hplip.conf
chico@chico-laptop:~$ hp-toolbox

HP Linux Imaging and Printing System (ver. 2.8.12)
HP Device Manager ver. 15.0

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.

error: Unable to load Qt3 support. Is it installed?

+++

there thus seems to be a loop -- one solution brings back the other, and vice versa

I suspect I should have just loaded the new hplip code with JJ last night

but will await any insights you gentlemen may have . . . .

thanks in advance -- Chico

Revision history for this message
Carlos Silva (carlossilva20) said :
#27

Just had the same problem, tried to start hp-toolbox on a fresh install and got the same "unable to open hp-toolbox.lock" problem.

In my case I installed an hp-plugin for specific printers right after installing the hp tools but without having opened them first. I'm convinced the first run of hp-toolbox does some populating which didn't happen (hp-toolbox works without administrative privileges) so when installing the plugin (which does need sudo) the root account created/took ownership of /.hplip even though it was in a /home folder.

That's my speculation. What is a fact is that /.hplip was under root ownership. Once I opened the file manager with sudo it was easy to erase the empty /.hplip folder and from there hp-toolbox was free to open.

Hope that helped some.

Can you help with this problem?

Provide an answer of your own, or ask David Vincent-Jones for more information if necessary.

To post a message you must log in.