P1102 linux driver installation problem

Asked by Roderick Tye

I bought a new HP LaserJet P1102 printer and followed the instructions to install it in Linux. I have hplip 3.12.4-1 installed. I run "hp-plugin -ldebug" as root, accept the default option to download the proprietary driver from an authorised HP server, accept the licence agreement, and a pop-up window appears "Plug-in installation successful". However in /var/log/syslog I see

Jun 12 10:43:03 amarilis dbus[2308]: [system] Activating service name='com.hp.hplip' (using servicehelper)
Jun 12 10:43:03 amarilis hp-pkservice: hp-pkservice[7602]: error: Unable to start service (org.freedesktop.DBus.Error.AccessDenied: Connection ":1.103" is not allowed to own the service "com.hp.hplip" due to security policies in the configuration file)
Jun 12 10:43:28 amarilis dbus[2308]: [system] Failed to activate service 'com.hp.hplip': timed out

When I run "hp-check -r -t" it tells me "Printer is not HPLIP installed" (full output attached below). When I try to print via CUPS I get a message "/usr/lib/cups/filter/hpcups failed" and no output appears. I have repeated the process several times with no success.

(Please note: the Laserjet 4L printer has been removed.)

Distribution: Debian Wheezy (hplip 3.12.4-1)
Printer: HP LaserJet P1102
Output from hp-check -r:
hp-check[9958]: info: :
Initializing. Please wait...
Debian

unstable

scheduler is running

1.5.3

Linux amarilis 2.6.38-2-686 #1 SMP Sun May 8 14:49:45 UTC 2011 i686 GNU/Linux

hp-check[9958]: info: :
hp-check[9958]: info: :---------------
hp-check[9958]: info: :| SYSTEM INFO |
hp-check[9958]: info: :---------------
hp-check[9958]: info: :
hp-check[9958]: info: :[01mBasic system information:[0m
hp-check[9958]: info: :Linux amarilis 2.6.38-2-686 #1 SMP Sun May 8 14:49:45 UTC 2011 i686 GNU/Linux
hp-check[9958]: info: :
hp-check[9958]: info: :[01mDistribution:[0m
hp-check[9958]: info: :debian unstable
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking Python version...[0m
hp-check[9958]: info: :OK, version 2.7.3 installed
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking PyQt 4.x version...[0m
hp-check[9958]: info: :OK, version 4.9.1 installed.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for CUPS...[0m
hp-check[9958]: info: :Status: scheduler is running
hp-check[9958]: info: :Version: 1.5.3
hp-check[9958]: info: :error_log is set to level: warn
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dbus/python-dbus...[0m
hp-check[9958]: info: :dbus daemon is running.
hp-check[9958]: info: :python-dbus version: 1.1.0
hp-check[9958]: info: :
hp-check[9958]: info: :
hp-check[9958]: info: :------------------------
hp-check[9958]: info: :| RUNTIME DEPENDENCIES |
hp-check[9958]: info: :------------------------
hp-check[9958]: info: :
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: CUPS - Common Unix Printing System...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: PolicyKit - Administrative policy framework...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: PyQt 4 DBus - DBus Support for PyQt4...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: Python DBus - Python bindings for DBus...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: Python XML libraries...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: Python 2.3 or greater - Required for fax functionality...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: Reportlab - PDF library for Python...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: SANE - Scanning library...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: scanimage - Shell scanning program...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for dependency: xsane - Graphical scanner frontend for SANE...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :
hp-check[9958]: info: :----------------------
hp-check[9958]: info: :| HPLIP INSTALLATION |
hp-check[9958]: info: :----------------------
hp-check[9958]: info: :
hp-check[9958]: info: :
hp-check[9958]: info: :[01mCurrently installed HPLIP version...[0m
hp-check[9958]: info: :HPLIP 3.12.4 currently installed in '/usr/share/hplip'.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[9958]: info: :# 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/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-doc/HTML
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=yes
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=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-only-build=no
hpijs-only-build=no

hp-check[9958]: info: :
hp-check[9958]: info: :[01mCurrent contents of '/var/lib/hp/hplip.state' file:[0m
hp-check[9958]: info: :[plugin]
installed = 1
eula = 1
version = 3.12.4

hp-check[9958]: info: :
hp-check[9958]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
hp-check[9958]: info: :[installation]
date_time = 06/12/12 12:19:37
version = 3.12.4

hp-check[9958]: info: :
hp-check[9958]: info: :--------------------------
hp-check[9958]: info: :| DISCOVERED USB DEVICES |
hp-check[9958]: info: :--------------------------
hp-check[9958]: info: :
hp-check[9958]: info: : Device URI Model
hp-check[9958]: info: : --------------------------------------------------------- ------------------------------
hp-check[9958]: info: : hp:/usb/HP_LaserJet_Professional_P1102?serial=000000000W9 HP LaserJet Professional P1102
  000KLSI1c
hp-check[9958]: info: :
hp-check[9958]: info: :---------------------------------
hp-check[9958]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[9958]: info: :---------------------------------
hp-check[9958]: info: :
hp-check[9958]: info: :
hp-check[9958]: info: :[01mamarilis[0m
hp-check[9958]: info: :[01m--------[0m
hp-check[9958]: info: :Type: Unknown
hp-check[9958]: info: :Device URI: parallel:/dev/lp0
hp-check[9958]: info: :PPD: /etc/cups/ppd/amarilis.ppd
hp-check[9958]: info: :PPD Description: HP LaserJet 4L - CUPS+Gutenprint v5.2.7
hp-check[9958]: info: :Printer status: printer amarilis is idle. enabled since Tue 29 May 2012 06:14:52 AM BRT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mP1102[0m
hp-check[9958]: info: :[01m-----[0m
hp-check[9958]: info: :Type: Unknown
hp-check[9958]: info: :Device URI: usb://HP/LaserJet%20Professional%20P1102?serial=000000000W9000KLSI1c
hp-check[9958]: info: :PPD: /etc/cups/ppd/P1102.ppd
hp-check[9958]: info: :PPD Description: HP LaserJet Professional p1102, hpcups 3.12.4, requires proprietary plugin
hp-check[9958]: info: :Printer status: printer P1102 is idle. enabled since Tue 12 Jun 2012 12:06:56 PM BRT
 /usr/lib/cups/filter/hpcups failed
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
hp-check[9958]: info: :
hp-check[9958]: info: :
hp-check[9958]: info: :----------------------
hp-check[9958]: info: :| SANE CONFIGURATION |
hp-check[9958]: info: :----------------------
hp-check[9958]: info: :
hp-check[9958]: info: :[01m'hpaio' in '/etc/sane.d/dll.conf'...[0m
hp-check[9958]: info: :[01m'hpaio' in '/etc/sane.d/dll.d/hplip'...[0m
hp-check[9958]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking output of 'scanimage -L'...[0m
hp-check[9958]: info: :
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).

hp-check[9958]: info: :
hp-check[9958]: info: :---------------------
hp-check[9958]: info: :| PYTHON EXTENSIONS |
hp-check[9958]: info: :---------------------
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking 'cupsext' CUPS extension...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking 'pcardext' Photocard extension...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking 'hpmudext' I/O extension...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking 'scanext' SANE scanning extension...[0m
hp-check[9958]: info: :OK, found.
hp-check[9958]: info: :
hp-check[9958]: info: :
hp-check[9958]: info: :
hp-check[9958]: info: :-----------------
hp-check[9958]: info: :| USB I/O SETUP |
hp-check[9958]: info: :-----------------
hp-check[9958]: info: :
hp-check[9958]: info: :[01mChecking for permissions of USB attached printers...[0m
hp-check[9958]: info: :
HP Device 0x2a at 001:022:
hp-check[9958]: info: : Device URI: hp:/usb/HP_LaserJet_Professional_P1102?serial=000000000W9000KLSI1c
hp-check[9958]: info: : Device node: /dev/bus/usb/001/022
hp-check[9958]: info: : Mode: 0664
hp-check[9958]: info: :getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/022
# owner: root
# group: lp
# flags: --t
user::rw-
group::rw-
other::r--

hp-check[9958]: info: :
hp-check[9958]: info: :---------------
hp-check[9958]: info: :| USER GROUPS |
hp-check[9958]: info: :---------------
hp-check[9958]: info: :
hp-check[9958]: info: :rod lp audio lpadmin fuse netdev shutdown

hp-check[9958]: info: :[32;01mUser member of group 'lp'. Enables print/ scan/ fax.[0m
hp-check[9958]: info: :[32;01mUser member of group 'lpadmin'.[0m
hp-check[9958]: info: :
hp-check[9958]: info: :-----------
hp-check[9958]: info: :| SUMMARY |
hp-check[9958]: info: :-----------
hp-check[9958]: info: :
error: 2 errors and/or warnings.
hp-check[9958]: info: :
hp-check[9958]: info: :Please refer to the installation instructions at:
hp-check[9958]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[9958]: info: :
hp-check[9958]: info: :Done.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Roderick Tye
Solved:
Last query:
Last reply:
Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#1

Hi,

Thanks for reporting the issue in HPLIP. To help us understand and analyze the issue 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" (This will download right 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.

If problem does not get solved then please capture some logs by doing following things.

=>Enable/Clear Logs as mentioned below
    a) Enable Log capture
       => su (switch to root mode here and execute all remaing commands in root mode)
      => open /etc/cups/cupsd.conf from terminal e.g (vi /etc/cups/cupsd.conf or gedit /etc/cups/cupsd.conf) and then replace
         LogLevel warn
                   with
        LogLevel debug
        hpLogLevel 15

    b) Open Terminal and run following commands:
       => su (switch to root mode here and execute all remaing commands in root mode)
       => /etc/init.d/cups restart
                  or
       => service cups restart
       => cd /tmp
       => rm *.out
       => rm *.bmp
       => cat /dev/null > /var/log/cups/error_log
       => cat /dev/null > /var/log/messages
       => cat /dev/null > /var/log/syslog
       => hp-check -t > /tmp/hpcheck.log
       =>lsusb -v > /tmp/lsusb.log

    c) Try to print the file. If issue is not resolved then please send following files
        (**Please use "Create a bug report" to attach the logs as "Ask a Question" does not provide the file attachment option)
          => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log
          => /tmp/*.bmp
          => /tmp/*.out
          => /tmp/hpcheck.log
          => /tmp/lsusb.log
          => document used for printing
          => scanned copy of the printed document (if present)
    d) Please let me know the application used for testing.

Revision history for this message
Roderick Tye (78luphr0rnk2nuqimstywepozxn9kl19tqh0tx66b5dki1xxsh5mkz9gl21a5rlwfnr8jn6ln0m3jxne2k9x1ohg85w3jabxlrqbgszpjpwcmvkbcv-launchpad) said :
#2

Thanks for fast response. Since raising the report I've managed to fix the problem. I had to perform two steps:
1. disable the "Smartinstall" feature using a Windows PC (see https://bbs.archlinux.org/viewtopic.php?id=134381)
2. rerun hp-setup

It would be nice if there was a way to install the printer without using Microsoft software.