[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#518029: hp-levels: refuses to work as user without session bus



Package: hplip
Version: 2.8.12-3
Severity: important
File: /usr/bin/hp-levels

hp-levels complains about being run as root, but doesn't run as a normal
user.  This is on a server, so X is not running, and there is no session
bus.  hal is not installed.

hp-levels should work on a server. If it absolutely needs a session bus,
it must create one if one is not present, or depend on a package that
will do this.

As a user:
  castro ok % hp-levels
HP Linux Imaging and Printing System (ver. 2.8.12)
  Supply Levels Utility 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.
Using device: hp:/usb/Deskjet_5700?serial=<elided> error: Unable to connect to dbus session bus.
  error: Unable to communicate with device (code=12): hp:/usb/Deskjet_5700?serial=<elided>
  error: Error opening device (Device not found). Exiting.

As root:
  castro ok % sudo hp-levels
[sudo] password for bmc: warning: hp-levels should not be run as root/superuser. HP Linux Imaging and Printing System (ver. 2.8.12)
  Supply Levels Utility 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.
Using device: hp:/usb/Deskjet_5700?serial=<elided> Black cartridge
  Part No.: 94 (C8765WN)/96 (C8767WN)
  Health: Good/OK
------------------------------------------------------------------------------------------------------------------
  |//////////////////////////////////////////////////////////////////////////////                                  | (approx. 69%)
  ------------------------------------------------------------------------------------------------------------------
Tri-color cartridge
  Part No.: 95 (C8766WN)/97 (C9363WN)
  Health: Good/OK
------------------------------------------------------------------------------------------------------------------
  |///////////////////////////////////////////////////////////////////////////////////////////////                 | (approx. 84%)
  ------------------------------------------------------------------------------------------------------------------
Done.



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hplip depends on:
ii  adduser                    3.110         add and remove users and groups
ii  coreutils                  7.1-2         The GNU core utilities
ii cups 1.3.9-14 Common UNIX Printing System(tm) - ii hplip-data 2.8.12-3 HP Linux Printing and Imaging - da
ii  libc6                      2.9-4         GNU C Library: Shared libraries
ii libcups2 1.3.9-14 Common UNIX Printing System(tm) - ii libdbus-1-3 1.2.12-1 simple interprocess messaging syst
ii  libsane                    1.0.19-25     API library for scanners
ii  libsnmp15                  5.4.1~dfsg-12 SNMP (Simple Network Management Pr
ii  libssl0.9.8                0.9.8g-15     SSL shared libraries
ii  libusb-0.1-4               2:0.1.12-13   userspace USB programming library
ii  lsb-base                   3.2-20        Linux Standard Base 3.2 init scrip
ii  python                     2.5.4-2       An interactive high-level object-o
ii  python-dbus                0.83.0-1      simple interprocess messaging syst
ii  python-imaging             1.1.6-3       Python Imaging Library
ii  python-support             0.8.7         automated rebuilding support for P

Versions of packages hplip recommends:
ii cups-client 1.3.9-14 Common UNIX Printing System(tm) - ii hpijs 2.8.12-3 HP Linux Printing and Imaging - gs
ii  sane-utils                    1.0.19-25  API library for scanners -- utilit

Versions of packages hplip suggests:
pn  hplip-doc                     <none>     (no description available)
pn  hplip-gui                     <none>     (no description available)
pn  kdeprint | gtklp | xpp        <none>     (no description available)
ii  openprinting-ppds             20090301-1 OpenPrinting printer support - Pos

-- no debconf information

--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
troff on top of XML: http://crustytoothpaste.ath.cx/~bmc/code/thwack
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature


Reply to: