LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   HP printer cannot access gnome-keyring (https://www.linuxquestions.org/questions/debian-26/hp-printer-cannot-access-gnome-keyring-4175460970/)

Randicus Draco Albus 05-07-2013 12:39 AM

HP printer cannot access gnome-keyring
 
I installed Squeeze on a new computer then up-graded to Wheezy. I now have a problem getting the printer to work. The print queue says jobs are being processed and completed, but the printer does nothing.

When running hp-setup -i, two error messages were given:
Code:

error: PolicyKit support requires DBUS or PolicyKit support files missing.
The other concerned not being able to connect to gnome-keyring (a location I cannot remember): No such file or directory.

Apt tells me that the latest version (for Wheezy) of HPLIP is installed. And it is worth mentioning that the printer worked perfectly with Squeeze.

.xsession-errors
Code:

WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-eDZbJE/pkcs11: No such file or directory
gtk printer

The last part of dmesg
Code:

[ 9212.586128] usb 1-1.2: Product: HP LaserJet P1007
[ 9212.586131] usb 1-1.2: Manufacturer: Hewlett-Packard
[ 9212.586134] usb 1-1.2: SerialNumber: NC1ATM3
[ 9215.851468] usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x4817
[ 9215.851480] usbcore: registered new interface driver usblp
[ 9217.000172] usblp0: removed
[ 9217.011584] usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x4817
[ 9219.246425] usblp0: removed

I believe this is the only relevant portion of the report, but if not I can run it again and post the result.

I have tried creating a .cache/keyring file and installing eDZbJE/pkcs11. Both return an error about not being able to connect to a non-existent file or directory. Now that I have displayed my newbness, does anyone have any ideas? If I can solve this, my Wheezy installation will be working perfectly.

gdizzle 05-07-2013 06:08 PM

Hi, I have you tried re-installing the hplip driver? I am aware your using the latest one but it might be having a tantrum since the upgrade.

Can you unplug the printer remove all hplip software then re-install it then plug the printer in and try again.

I am not sure if you have tried this as it's not listed in your steps.

Randicus Draco Albus 05-07-2013 06:13 PM

I had thought about re-installing HPLIP but did not, because I had assumed the problem was with gnome-keyring and have focused my attention in that direction. I shall try it later today when I have time. Thanks for the suggestion.

Randicus Draco Albus 05-07-2013 09:54 PM

I re-installed HPLIP and ran hp-setup -i with the same result, except now there is also a connection error - Plug-in download failed: no host given?
Code:

--------------------------
| DOWNLOAD CONFIGURATION |
--------------------------

Checking for network connection...
Downloading configuration file from: http://hplip.sf.net/plugin.conf
Downloading configuration: [\                            ] 0%    error: Plugin download failed with error code = 4


---------------
| COPY PLUGIN |
---------------

Downloading plug-in from: file://
Downloading plug-in: [\                                ] 0%    error: Plug-in download failed: no host given

error: Plug-in file not found (server returned 404 or similar error). Error code: no host given
WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory

Since I have not seen anyone else complaining about printer problems after up-grading, I believe there must have been a small hitch during the up-grade. If I cannot resolve this in the next couple days, it will be time to experiment by re-installing with a new Wheezy disc.

gdizzle 05-07-2013 11:26 PM

http://hplipopensource.com/hplip-web/support.html

Anymore details if you try a : hp-check -t

Randicus Draco Albus 05-08-2013 12:21 AM

hp-check -t showed I still had missing plug-ins.
Code:

Status Types:
    OK
    MISSING      - Missing Dependency or Permission or Plug-in
    INCOMPAT      - Incompatible dependency-version or Plugin-version

Saving output in log file: /home/randicus/hp-check.log

Initializing. Please wait...
warning: debian-7.0 version is not supported. Using debian-6.0.5 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 GNU/Linux
 Host: debian
 Proc: 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 GNU/Linux
 Distribution: debian 7.0

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.12.6
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for debian distro  7.0 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.12.6

[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
libusb01-build=no
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.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 05/08/13 12:28:25
version = 3.12.6


 <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>  <Comment>

--------------------------
|  External Dependencies |
--------------------------

 gs                  Ghostscript              REQUIRED        7.05            9.05            OK        -
 network              Network-wget              OPTIONAL        -              1.13.4          OK        -
 error: dbus          DBus                      REQUIRED        -              1.6.8          MISSING    'DBUS may not be installed or not running'
 scanimage            Shell-Scanning            OPTIONAL        1.0            1.0.22          OK        -
 policykit            Admin-Policy-framework    OPTIONAL        -              0.105          OK        -
 xsane                SANE-GUI                  OPTIONAL        0.9            0.998          OK        -
 error: cups          CUPS                      REQUIRED        1.1            -              INCOMPAT  'CUPS may not be installed or not running'

-------------------------
|  General Dependencies |
-------------------------

 reportlab            Python-PDF-Lib            OPTIONAL        2.0            2.5            OK        -
 error: libcrypto    OpenSSL-Crypto-Lib        REQUIRED        -              1.0.1          MISSING    'libcrypto needs to be installed'
 pil                  Python-Image-Lib          OPTIONAL        -              1.1.7          OK        -
 error: pyqt4-dbus    PyQt4-DBUS                REQUIRED        4.0            -              MISSING    'pyqt4-dbus needs to be installed'
 error: libjpeg      JPEG-Lib                  REQUIRED        -              -              MISSING    'libjpeg needs to be installed'
 error: libpthread    POSIX-Threads-Lib        REQUIRED        -              2.13            MISSING    'libpthread needs to be installed'
 python-dbus          Python-DBUS              REQUIRED        0.80.0          1.1.1          OK        -
 error: cups-ddk      CUPS-DDK                  OPTIONAL        -              -              MISSING    'cups-ddk needs to be installed'
 error: python-devel  Python-SDK                REQUIRED        2.2            2.7.3          MISSING    'python-devel needs to be installed'
 error: pyqt4        Python-Qt4                REQUIRED        4.0            -              MISSING    -
 error: cups-devel    CUPS-SDK                  REQUIRED        -              -              MISSING    'cups-devel needs to be installed'
 error: sane-devel    SANE-SDK                  REQUIRED        -              -              MISSING    'sane-devel needs to be installed'
 error: libusb        USB-Lib                  REQUIRED        -              1.0            MISSING    'libusb needs to be installed'
 sane                Scan-Lib                  REQUIRED        -              -              OK        -
 error: cups-image    CUPS-Image-Lib            REQUIRED        -              -              MISSING    'cups-image needs to be installed'
 error: libnetsnmp-devel SNMP-Networking-SDK      REQUIRED        5.0.9          5.4.3          MISSING    'libnetsnmp-devel needs to be installed'
 python-xml          Python-XML-Lib            REQUIRED        -              2.1.0          OK        -
 python-notify        Desktop-notifications    OPTIONAL        -              -              OK        -

------------------------------
|  Compile Time Dependencies |
------------------------------

 error: gcc          gcc-Compiler              REQUIRED        -              -              MISSING    'gcc needs to be installed'
 error: libtool      Build-tools              REQUIRED        -              -              MISSING    'libtool needs to be installed'
 error: make          GNU-Build-tools          REQUIRED        3.0            -              MISSING    'make needs to be installed'

----------------------
|  Python Extentions |
----------------------

 cupsext              CUPS-Extension            REQUIRED        -              3.12.6          OK        -
 pcardext            PhotoCard-Extension      REQUIRED        -              3.12.6          OK        -
 hpmudext            IO-Extension              REQUIRED        -              3.12.6          OK        -

-----------------------
|  Scan Configuration |
-----------------------

 hpaio                HPLIP-SANE-Backend        REQUIRED        -              3.12.6          OK        'hpaio found in /etc/sane.d/dll.conf'
 scanext              Scan-SANE-Extension      REQUIRED        -              3.12.6          OK        -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory
device `v4l:/dev/video0' is a Noname Integrated Camera virtual device


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

No devices found.

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

 
WARNING
-------
Type: Unknown
Device URI: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory

HP-LaserJet-P1007
-----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_P1007?serial=NC1ATM3
PPD: /etc/cups/ppd/HP-LaserJet-P1007.ppd
PPD Description: HP LaserJet P1007 Foomatic/foo2xqx (recommended)
Printer status: WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.caprinter Unplugged or turned offled since Wed 08 May 2013 10:48:20 AM HKT -

HP Linux Imaging and Printing System (ver. 3.12.6)
System Tray Status Service ver. 2.0

Copyright (c) 2001-14 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.

warning: Qt/PyQt 4 initialization failed.
error: hp-systray requires Qt4 GUI and DBus support. Exiting.
warning: Unable to connect to dbus. Is hp-systray running?
WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory
error: Required plug-in status: Not installed
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_P1007?serial=NC1ATM3
error: Device not found
error: Communication status: Failed


--------------
| PERMISSION |
--------------

groups          user-groups                    Required        -        -        OK      randicus lp cdrom floppy audio dip video plugdev netdev bluetooth lpadmin powerdev scanner

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

Missing Required Dependencies
-----------------------------
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libcups2' package is missing/incompatible
error: 'libssl-dev' package is missing/incompatible
error: 'python-qt4-dbus' package is missing/incompatible
error: 'libjpeg62-dev' package is missing/incompatible
error: 'libc6' package is missing/incompatible
error: 'python-dev' package is missing/incompatible
error: 'python-qt4' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libcupsimage2' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'g++' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'make' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'cups-ddk' package is missing/incompatible


Total Errors: 22
Total Warnings: 0

Re-run 'hp-check --fix' command to prompt and fix the issues.

Done.
randicus@debian:~$ hp-check --fix

HP Linux Imaging and Printing System (ver. 3.12.6)
Dependency/Version Check Utility ver. 15

Copyright (c) 2001-14 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). 

Check types:                                                                   
a. EXTERNALDEP - External Dependencies                                         
b. GENERALDEP - General Dependencies (required both at compile and run time)   
c. COMPILEDEP - Compile time Dependencies                                     
d. [All are run-time checks]                                                   
PYEXT SCANCONF QUEUES PERMISSION                                               

Status Types:
    OK
    MISSING      - Missing Dependency or Permission or Plug-in
    INCOMPAT      - Incompatible dependency-version or Plugin-version

Saving output in log file: /home/randicus/hp-check.log

Initializing. Please wait...
warning: debian-7.0 version is not supported. Using debian-6.0.5 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 GNU/Linux
 Host: debian
 Proc: 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 GNU/Linux
 Distribution: debian 7.0

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.12.6
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for debian distro  7.0 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.12.6

[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
libusb01-build=no
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.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 05/08/13 12:28:55
version = 3.12.6


 <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>  <Comment>

--------------------------
|  External Dependencies |
--------------------------

 gs                  Ghostscript              REQUIRED        7.05            9.05            OK        -
 network              Network-wget              OPTIONAL        -              1.13.4          OK        -
 error: dbus          DBus                      REQUIRED        -              1.6.8          MISSING    'DBUS may not be installed or not running'
 scanimage            Shell-Scanning            OPTIONAL        1.0            1.0.22          OK        -
 policykit            Admin-Policy-framework    OPTIONAL        -              0.105          OK        -
 xsane                SANE-GUI                  OPTIONAL        0.9            0.998          OK        -
 error: cups          CUPS                      REQUIRED        1.1            -              INCOMPAT  'CUPS may not be installed or not running'

-------------------------
|  General Dependencies |
-------------------------

 reportlab            Python-PDF-Lib            OPTIONAL        2.0            2.5            OK        -
 error: libcrypto    OpenSSL-Crypto-Lib        REQUIRED        -              1.0.1          MISSING    'libcrypto needs to be installed'
 pil                  Python-Image-Lib          OPTIONAL        -              1.1.7          OK        -
 error: pyqt4-dbus    PyQt4-DBUS                REQUIRED        4.0            -              MISSING    'pyqt4-dbus needs to be installed'
 error: libjpeg      JPEG-Lib                  REQUIRED        -              -              MISSING    'libjpeg needs to be installed'
 error: libpthread    POSIX-Threads-Lib        REQUIRED        -              2.13            MISSING    'libpthread needs to be installed'
 python-dbus          Python-DBUS              REQUIRED        0.80.0          1.1.1          OK        -
 error: cups-ddk      CUPS-DDK                  OPTIONAL        -              -              MISSING    'cups-ddk needs to be installed'
 error: python-devel  Python-SDK                REQUIRED        2.2            2.7.3          MISSING    'python-devel needs to be installed'
 error: pyqt4        Python-Qt4                REQUIRED        4.0            -              MISSING    -
 error: cups-devel    CUPS-SDK                  REQUIRED        -              -              MISSING    'cups-devel needs to be installed'
 error: sane-devel    SANE-SDK                  REQUIRED        -              -              MISSING    'sane-devel needs to be installed'
 error: libusb        USB-Lib                  REQUIRED        -              1.0            MISSING    'libusb needs to be installed'
 sane                Scan-Lib                  REQUIRED        -              -              OK        -
 error: cups-image    CUPS-Image-Lib            REQUIRED        -              -              MISSING    'cups-image needs to be installed'
 error: libnetsnmp-devel SNMP-Networking-SDK      REQUIRED        5.0.9          5.4.3          MISSING    'libnetsnmp-devel needs to be installed'
 python-xml          Python-XML-Lib            REQUIRED        -              2.1.0          OK        -
 python-notify        Desktop-notifications    OPTIONAL        -              -              OK        -

------------------------------
|  Compile Time Dependencies |
------------------------------

 error: gcc          gcc-Compiler              REQUIRED        -              -              MISSING    'gcc needs to be installed'
 error: libtool      Build-tools              REQUIRED        -              -              MISSING    'libtool needs to be installed'
 error: make          GNU-Build-tools          REQUIRED        3.0            -              MISSING    'make needs to be installed'

----------------------
|  Python Extentions |
----------------------

 cupsext              CUPS-Extension            REQUIRED        -              3.12.6          OK        -
 pcardext            PhotoCard-Extension      REQUIRED        -              3.12.6          OK        -
 hpmudext            IO-Extension              REQUIRED        -              3.12.6          OK        -

-----------------------
|  Scan Configuration |
-----------------------

 hpaio                HPLIP-SANE-Backend        REQUIRED        -              3.12.6          OK        'hpaio found in /etc/sane.d/dll.conf'
 scanext              Scan-SANE-Extension      REQUIRED        -              3.12.6          OK        -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory
device `v4l:/dev/video0' is a Noname Integrated Camera virtual device


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

No devices found.

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

 
WARNING
-------
Type: Unknown
Device URI: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory

HP-LaserJet-P1007
-----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_P1007?serial=NC1ATM3
PPD: /etc/cups/ppd/HP-LaserJet-P1007.ppd
PPD Description: HP LaserJet P1007 Foomatic/foo2xqx (recommended)
Printer status: WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.caprinter Unplugged or turned offled since Wed 08 May 2013 10:48:20 AM HKT -

HP Linux Imaging and Printing System (ver. 3.12.6)
System Tray Status Service ver. 2.0

Copyright (c) 2001-14 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.

warning: Qt/PyQt 4 initialization failed.
error: hp-systray requires Qt4 GUI and DBus support. Exiting.
warning: Unable to connect to dbus. Is hp-systray running?
WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory
error: Required plug-in status: Not installed
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_P1007?serial=NC1ATM3
error: Device not found
error: Communication status: Failed


--------------
| PERMISSION |
--------------

groups          user-groups                    Required        -        -        OK      randicus lp cdrom floppy audio dip video plugdev netdev bluetooth lpadmin powerdev scanner

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

Missing Required Dependencies
-----------------------------
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libcups2' package is missing/incompatible
error: 'libssl-dev' package is missing/incompatible
error: 'python-qt4-dbus' package is missing/incompatible
error: 'libjpeg62-dev' package is missing/incompatible
error: 'libc6' package is missing/incompatible
error: 'python-dev' package is missing/incompatible
error: 'python-qt4' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libcupsimage2' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'g++' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'make' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'cups-ddk' package is missing/incompatible


Total Errors: 22
Total Warnings: 0


------------------------------------
| Installation of Missing Packages |
------------------------------------

Install missing/incompatible packages. (a=install all*, c=custom_install, s=skip, q=quit):a


ENTER ROOT/SUPERUSER PASSWORD
-----------------------------
Please enter the root/superuser password:
Password accepted
Updating repository
-------------------
cmd =su -c "dpkg --configure -a"
cmd =su -c "apt-get install -f"
cmd =su -c "apt-get update"
cmd =su -c "apt-get install --yes cupsys-bsd"
warning: Failed to update Repository, check if any update/installation is running.
Installing Missing/Incompatible packages
----------------------------------------
cmd =su -c "apt-get install --force-yes -y libcups2-dev"
cmd =su -c "apt-get install --force-yes -y cups-bsd"
cmd =su -c "apt-get install --force-yes -y libsane-dev"
cmd =su -c "apt-get install --force-yes -y libsnmp-dev"
cmd =su -c "apt-get install --force-yes -y libssl-dev"
cmd =su -c "apt-get install --force-yes -y libcupsimage2-dev"
cmd =su -c "apt-get install --force-yes -y cups-ddk"
error: Failed to install 'cups-ddk' package, please install manually.
cmd =su -c "apt-get install --force-yes -y libjpeg62-dev"
cmd =su -c "apt-get install --force-yes -y libdbus-1-dev"
cmd =su -c "apt-get install --force-yes -y g++"
cmd =su -c "apt-get install --force-yes -y python-qt4-dbus"
cmd =su -c "apt-get install --force-yes -y cups-client"
cmd =su -c "apt-get install --force-yes -y python-qt4"
cmd =su -c "apt-get install --force-yes -y libc6"
cmd =su -c "apt-get install --force-yes -y libcupsimage2"
cmd =su -c "apt-get install --force-yes -y libcups2"
cmd =su -c "apt-get install --force-yes -y libtool"
cmd =su -c "apt-get install --force-yes -y make"
cmd =su -c "apt-get install --force-yes -y python-dev"
cmd =su -c "apt-get install --force-yes -y libusb-1.0.0-dev"
cmd_status=su -c 'service cups status'
Do you want to install missing/incompatible Plug-in's?(y=yes*, n=no)y
cmd = su -c "hp-plugin"
 
Done.

I installed them, but still no change. One hiccup was
Code:

error: Failed to install 'cups-ddk' package, please install manually.
There may also be a Gnome-KDE conflict. When adding packages after installation, I accidentally installed Krusader when I wanted Midnight Commander. It pulled in sever dependencies, including qt-4, which generated a couple errors when installing the missing plug-ins.

Whatever the exact cause is, I am getting really annoyed.

cynwulf 05-08-2013 04:36 AM

No idea really, but does the slew of "Missing Required Dependencies" have anything to do with it? It looks like cups isn't even installed.

What did you do to get the printer working in squeeze? What did you install and which of those were from outside the Debian repos?

Have you fully upgraded to wheezy?

What is the output of

Code:

# apt-get dist-upgrade
# apt-get -f install

Code:

$ cat /etc/apt/sources.list

Randicus Draco Albus 05-08-2013 05:46 PM

Quote:

Originally Posted by caravel (Post 4947120)
What did you do to get the printer working in squeeze?

Down-loaded the driver from HP's web site and ran hp-setup -i. Nothing more.

Quote:

does the slew of "Missing Required Dependencies" have anything to do with it? It looks like cups isn't even installed.
The problem is that after upgrading, HPLIP was missing many dependencies. Why? My guess is the upgrade had a tiny glitch. I just visited http://localhost:631/ and CUPS lists my printer and says it is active. So CUPS does appear installed. When I try to print, the computer says the job is processed and completed, but the printer does nothing.

Quote:

What is the output of
Code:

# apt-get dist-upgrade
# apt-get -f install

Code:

$ cat /etc/apt/sources.list

Code:

# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# apt-get -f install
Reading package lists... Done
Building dependency tree     
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Code:

# cat /etc/apt/sources.list

deb http://ftp.tw.debian.org/debian/ wheezy main
#deb-src http://ftp.tw.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
#deb-src http://security.debian.org/ wheezy/updates main

I have thought about adding the non-free repository, but I doubt that would solve it.

EDDY1 05-08-2013 09:55 PM

Have you gone to printing under Applications>>Printing & selected your printer as the default printer? It maybe just printing to a file.

Randicus Draco Albus 05-08-2013 10:41 PM

My menu is a little different, being Openbox, but yes, its status is default printer. However, I did discover something that may be relevant. Under Printing - localhost/ Printer, Enabled must be chosen every time the dialogue box is opened. Shared retains its check mark, but Enabled does not. That situation is definitely wrong. Both entries should only need to be set once.

I checked /usr/share/hplip/printsettings.pye and found a couple entries referring to Qt4 and one asking if Qt4 is installed. The only thing KDE I have is Kmahjongg, so I am forced to wonder if the reason HPLIP is looking for Qt4 is because I accidentally installed Krusader (which I removed yesterday). Could it be a Gnome-KDE conflict? Even though only a few Qt libs are in place? It is a long shot, but at this point I am grasping at straws.

Hungry ghost 05-08-2013 11:05 PM

I may be giving a stab in the dark, but is policykit-1-gnome installed? From your first error it seems you're missing some policykit related package, and according to the description of policykit-1-gnome:

Code:

GNOME authentication agent for PolicyKit-1
 PolicyKit-gnome provides a D-Bus session bus service that is used to bring up authentication dialogs used for obtaining privileges.
Página principal: http://hal.freedesktop.org/docs/PolicyKit-gnome/

Not sure if this will solve the printing issue, but might solve the problem when attempting to execute hp-setup.

Randicus Draco Albus 05-08-2013 11:14 PM

Code:

policykit-1 is already the newest version.
policykit-1 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Nice try, but no.

Hungry ghost 05-08-2013 11:17 PM

It's not policikit-1, but policykit-1-gnome. Do you have this one installed?

EDDY1 05-08-2013 11:35 PM

Is this the exact error?
Quote:

error: Failed to install 'cups-ddk' package, please install manually.
It's also installed thru this package
http://packages.debian.org/wheezy/cups-ppdc

Randicus Draco Albus 05-09-2013 02:14 AM

Quote:

Originally Posted by EDDY1 (Post 4947598)
Is this the exact error?
Quote:

error: Failed to install 'cups-ddk' package, please install manually.

Yes. I missed the please before install. I had other messages referring to set to manually installed and missed that word.:o But that is old news now. I got impatient and frustrated to the point of doing something un-Linux-like. I experimented by re-installing with a Wheezy Stable disc. Same problem.

Code:

error: PolicyKit support requires DBUS or PolicyKit support files missing
Code:

# hp-setup -i

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num      Connection  Description                                             
            Type                                                                 
  --------  ----------  ----------------------------------------------------------
  0*        usb        Universal Serial Bus (USB)                               
  1        net        Network/Ethernet/Wireless (direct connection or JetDirect)
  2        par        Parallel Port (LPT:)                                     

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

Using device: hp:/usb/HP_LaserJet_P1007?serial=NC1ATM3


Setting up device: hp:/usb/HP_LaserJet_P1007?serial=NC1ATM3



------------------------
| PLUG-IN INSTALLATION |
------------------------


HP Linux Imaging and Printing System (ver. 3.12.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-14 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: PolicyKit support requires DBUS or PolicyKit support files missing
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

\
-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.12.6 |
-----------------------------------------

  Option      Description                                     
  ----------  --------------------------------------------------
  d          Download plug-in from HP (recomended)           
  p          Specify a path to the plug-in (advanced)         
  q          Quit hp-plugin (skip installation)               

Enter option (d=download*, p=specify path, q=quit) ? d

--------------------------
| DOWNLOAD CONFIGURATION |
--------------------------

Checking for network connection...
Downloading configuration file from: http://hplip.sf.net/plugin.conf
Downloading configuration: [\                            ] 0%    error: Plugin download failed with error code = 4


---------------
| COPY PLUGIN |
---------------

Downloading plug-in from: file://
Downloading plug-in: [\                          ] 0%    error: Plug-in download failed: no host given

error: Plug-in file not found (server returned 404 or similar error). Error code: no host given

---------------------
| PRINT QUEUE SETUP |
---------------------

warning: One or more print queues already exist for this device: HP-LaserJet-P1007.

Would you like to install another print queue for this device (y=yes, n=no*, q=quit) ? n

Done.

This piece at the end is interesting.
error: Plug-in file not found (server returned 404 or similar error). Error code: no host given
Code:

cups-ppdc is already the newest version.
cups-ppdc set to manually installed.

Code:

$ apt-cache policy policykit-1-gnome
policykit-1-gnome:
  Installed: 0.105-2
  Candidate: 0.105-2
  Version table:
 *** 0.105-2 0
        500 cdrom://[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 xfce-CD Binary-1 20130504-14:44]/ wheezy/main amd64 Packages
        500 http://ftp.tw.debian.org/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status

So, according to all this:
1) Everything is installed, except at least plug-in that I cannot down-load.
2) Same situation as before. Jobs are processed and completed, but nothing happens.
3) I know the printer is supported, because it worked perfectly with Squeeze.
4) I am ready to release my frustration by killing someone.

cynwulf 05-09-2013 02:56 AM

Ok this is what jumps out at me from your post no. 6:
Code:

warning: debian-7.0 version is not supported. Using debian-6.0.5 versions dependencies to verify and install...
Code:

warning: HPLIP-Installation: Auto installation is not supported for debian distro  7.0 version
Code:

error: dbus          DBus                      REQUIRED        -              1.6.8          MISSING    'DBUS may not be installed or not running'
Code:

error: cups          CUPS                      REQUIRED        1.1            -              INCOMPAT  'CUPS may not be installed or not running'
Code:

-------------------------
|  General Dependencies |
-------------------------

 reportlab            Python-PDF-Lib            OPTIONAL        2.0            2.5            OK        -
 error: libcrypto    OpenSSL-Crypto-Lib        REQUIRED        -              1.0.1          MISSING    'libcrypto needs to be installed'
 pil                  Python-Image-Lib          OPTIONAL        -              1.1.7          OK        -
 error: pyqt4-dbus    PyQt4-DBUS                REQUIRED        4.0            -              MISSING    'pyqt4-dbus needs to be installed'
 error: libjpeg      JPEG-Lib                  REQUIRED        -              -              MISSING    'libjpeg needs to be installed'
 error: libpthread    POSIX-Threads-Lib        REQUIRED        -              2.13            MISSING    'libpthread needs to be installed'
 python-dbus          Python-DBUS              REQUIRED        0.80.0          1.1.1          OK        -
 error: cups-ddk      CUPS-DDK                  OPTIONAL        -              -              MISSING    'cups-ddk needs to be installed'
 error: python-devel  Python-SDK                REQUIRED        2.2            2.7.3          MISSING    'python-devel needs to be installed'
 error: pyqt4        Python-Qt4                REQUIRED        4.0            -              MISSING    -
 error: cups-devel    CUPS-SDK                  REQUIRED        -              -              MISSING    'cups-devel needs to be installed'
 error: sane-devel    SANE-SDK                  REQUIRED        -              -              MISSING    'sane-devel needs to be installed'
 error: libusb        USB-Lib                  REQUIRED        -              1.0            MISSING    'libusb needs to be installed'
 sane                Scan-Lib                  REQUIRED        -              -              OK        -
 error: cups-image    CUPS-Image-Lib            REQUIRED        -              -              MISSING    'cups-image needs to be installed'
 error: libnetsnmp-devel SNMP-Networking-SDK      REQUIRED        5.0.9          5.4.3          MISSING    'libnetsnmp-devel needs to be installed'
 python-xml          Python-XML-Lib            REQUIRED        -              2.1.0          OK        -
 python-notify        Desktop-notifications    OPTIONAL        -              -              OK        -

Code:

------------------------------
|  Compile Time Dependencies |
------------------------------

 error: gcc          gcc-Compiler              REQUIRED        -              -              MISSING    'gcc needs to be installed'
 error: libtool      Build-tools              REQUIRED        -              -              MISSING    'libtool needs to be installed'
 error: make          GNU-Build-tools          REQUIRED        3.0            -              MISSING    'make needs to be installed'

Code:

WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory
device `v4l:/dev/video0' is a Noname Integrated Camera virtual device


Code:

WARNING
-------
Type: Unknown
Device URI: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory

Code:

warning: Qt/PyQt 4 initialization failed.
error: hp-systray requires Qt4 GUI and DBus support. Exiting.
warning: Unable to connect to dbus. Is hp-systray running?
WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-qxb4OC/pkcs11: No such file or directory
error: Required plug-in status: Not installed
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_P1007?serial=NC1ATM3
error: Device not found
error: Communication status: Failed

Code:

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

Missing Required Dependencies
-----------------------------
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libcups2' package is missing/incompatible
error: 'libssl-dev' package is missing/incompatible
error: 'python-qt4-dbus' package is missing/incompatible
error: 'libjpeg62-dev' package is missing/incompatible
error: 'libc6' package is missing/incompatible
error: 'python-dev' package is missing/incompatible
error: 'python-qt4' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libcupsimage2' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'g++' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'make' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'cups-ddk' package is missing/incompatible

This version of hplip only supports Debian 6.

Have you installed all of the missing packages above?

Instead of downloading hplip from HP did you consider installing the one from the official debian repos? This should also pull in all of the required dependencies.

http://packages.debian.org/wheezy/hplip

Randicus Draco Albus 05-09-2013 05:49 AM

Quote:

Originally Posted by caravel (Post 4947693)
Ok this is what jumps out at me from your post no. 6:
This version of hplip only supports Debian 6.

I noticed that at the beginning of this torment. I have faith (hope) that any changes would affect configurations of new equipment, but not older ones that worked with Squeeze. But I would not be surprised if that is not the case.

Quote:

Have you installed all of the missing packages above?
That is what I was trying to do with hp-setup. It was trying to down-load missing files from HP.

Quote:

Instead of downloading hplip from HP did you consider installing the one from the official debian repos? This should also pull in all of the required dependencies.

http://packages.debian.org/wheezy/hplip
Already installed. It is included in the default installation.
Code:

# apt-cache policy hplip
hplip:
  Installed: 3.12.6-3.1
  Candidate: 3.12.6-3.1
  Version table:
 *** 3.12.6-3.1 0
        500 http://ftp.tw.debian.org/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status

So why is no one else having this problem?

cynwulf 05-09-2013 07:42 AM

You should remove the hplip you downloaded from HP and reinstall the one from the repos. The two are conflicting and the one from HP will break the previously installed version.

If it's already included in the default install, why did you download and attempt to install the one from HP?

Randicus Draco Albus 05-09-2013 08:11 AM

With this installation, I did not down-load from HP, but relied on what came with the system.

Randicus Draco Albus 05-10-2013 01:18 AM

Getting closer, but ...
I used apt-get to install most of the missing or incompatible dependencies, except:
libcups2
libc6
cups-client
libcupsimage2
which were already installed, and therefore (I assume), incompatible.
Also;
Code:

Missing Optional Dependencies
-----------------------------
error: 'cups-ddk' package is missing/incompatible

However,
Code:

E: Unable to locate package cups-ddk
Perhaps in the non-free repository?

I now only have two errors.
Code:

error: PolicyKit NOT installed when configured for use
Code:

error:  The printer you are trying to setup requires a binary driver plug-in and it failed to install.  Please check your internet connection and try again.  Visit  http://hplipopensource.com  for more infomation.
Although hp-check reports
Code:

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

:(
The missing dependency cannot be downloaded from hplipopensource, because
Code:

error:  The printer you are trying to setup requires a binary driver plug-in and it failed to install.  Please check your internet connection and try again.  Visit  http://hplipopensource.com  for more infomation.
The HP management GUI I installed for additional help with this problem explains;
Quote:

Plug-in file not found (server returnd 404 or similar error).
Error code: no host given
Probably because of this.
Code:

warning: debian-7.0 version is not supported. Using debian-6.0.5 versions dependencies to verify and install...
And almost certainly because of this error generated by hp-check --fix.
Code:

Printer status: WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cacheprinter HP-LaserJet-P1007 is idle.  enabled since Fri 10 May 2013 13:08:30 HKT
WARNING: gnome-keyring:: couldn't connect to: /home/randicus/.cache/keyring-jfrR4X/pkcs11: No such file or directory
error: Required plug-in status: Not installed
Communication status: Good

To make a long story short, I am guessing the missing dependency is related to gnome-keyring. Whether or not that is the case, the error message concerning Debian 7 being unsupported suggests my fairly new printer (I have had it for more than a year.) does not play nicely with Wheezy. Apparently, the binary plug-in I need does not exist for Wheezy.

Lexus45 05-10-2013 02:09 AM

HP printers in general work fine Linux, but there are some issues sometimes.
P1007 is fully supported: http://hplipopensource.com/hplip-web...jet_p1007.html
It requires hp-plugin. From my experience, printers which do not require it, work perfectly and their installation is the simplest.
New HP printers areWindows-oriented, that's why they behave like a flash drive by default, to help Win-users install software from themselves.
In this case, in Linux you should disable this feature first. One way is to install Win in VirtualBox, download original HP driver (for Win) , install it and in its software - disable this feature.
Some time ago, as I heard, HP fixed this problem, not to offend Linux users. But I don't remember how to disable this feature. Search the net please.

Randicus Draco Albus 05-10-2013 02:28 AM

However, the driver for this printer was available, and installing it was quick and easy last year with Squeeze. In fact, I checked to make sure the printer had Linux support, especially Debian, before buying it. (And this expensive, professional quality printer worked perfectly, until the upgrade to Wheezy.) Maybe I'll get lucky and the first batch of updates will solve my woes. I shan't hold my breath though.

EDDY1 05-10-2013 02:43 AM

I have a few hp printers & they just work on my wheezy machines, if I plug up to a hp printer & the driver isn't installed it prompts & lets me know the driver thats needed.

Randicus Draco Albus 05-10-2013 03:09 AM

My previous experiences with both HP and Brother were quick and painless. This surprising and bewildering situation seems to be mine alone. If this was not a fresh installation, I would assume I did something wrong to mess up my system. At the moment, I am considering adding the non-free repo. and trying to install that cups-ddk package. Who knows? Perhaps adding a repo. would be an easy fix. I have been avoiding it, because I want to attempt a completely FOSS system.

EDDY1 05-10-2013 03:21 AM

Why not try using synaptic & choosing to remove all config files & reinstall from it??

Hungry ghost 05-10-2013 08:02 AM

Quote:

Originally Posted by Randicus Draco Albus (Post 4948386)
At the moment, I am considering adding the non-free repo. and trying to install that cups-ddk package.

The package you're looking for is cups-ppdc. There's a cupsddk package too, but it actually is a dummy package dependent on cups-ppdc. Not sure if they are in main, contrib or non-free, though.

Randicus Draco Albus 05-10-2013 07:56 PM

Quote:

The package you're looking for is cups-ppdc.
Already installed.

Quote:

Why not try using synaptic & choosing to remove all config files & reinstall from it??
Since the plug-in I need is proprietary, I added the non-free repo. (yes, I did update) and re-installed HPLIP. Still cannot down-load the plug-in. The same 404 or similar error, so it looks like that particular plug-in has been removed at the source?
Or this could be either the cause or a contributing factor. When running hp-setup
Code:

Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon

Although IBus has never been a problem before with anything. I looked through IBus's available packages, but did not see anything that looked relevant. At this point I am giving up and putting this aside, until I feel like tackling it again.

Randicus Draco Albus 05-12-2013 03:02 AM

I contacted people in the know on HP's support forum.
Quote:

The latest Debian release currently supported by HPLIP is Debian 6.0.7, any later version is not currently supported, either for manual install or via an installer
Not even manual installation. That would appear to be the reason the plug-in is not available for down-load. It looks like I must wait, until support for Wheezy is (hopefully) added.


All times are GMT -5. The time now is 10:43 AM.