LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   HP printer cannot access gnome-keyring (http://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.

odiseo77 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.

odiseo77 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.


All times are GMT -5. The time now is 10:55 PM.