glatzor, thanks for the hint, using the full 40-character fingerprint
instead of the 8-character key ID works. I am changing system-config-
printer appropriately now.


** Also affects: system-config-printer (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: system-config-printer (Ubuntu)
       Status: New => In Progress

** Changed in: system-config-printer (Ubuntu)
   Importance: Undecided => High

** Changed in: system-config-printer (Ubuntu)
     Assignee: (unassigned) => Till Kamppeter (till-kamppeter)

** Changed in: system-config-printer (Ubuntu)
    Milestone: None => ubuntu-13.04-feature-freeze

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1116503

Title:
  Problems installing package signature from Python script

Status in “aptdaemon” package in Ubuntu:
  New
Status in “packagekit” package in Ubuntu:
  Invalid
Status in “system-config-printer” package in Ubuntu:
  In Progress

Bug description:
  I use PackageKit to auto-download printer driver packages using the
  script /usr/share/system-config-printer/install-printerdriver.py (part
  of the system-config-printer-gnome package). For Epson's drivers the
  signature with ID 8AA65D56 is needed and the "gpg" command line tool
  has no problem to load it:

  ----------
  till@till-lenovo:/usr/lib/cups/backend$ gpg --recv-keys 8AA65D56
  gpg: requesting key 8AA65D56 from hkp server subkeys.pgp.net
  gpg: key 8AA65D56: "Seiko Epson Corporation (Epson Inkjet Printer Driver) 
<[email protected]>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  till@till-lenovo:/usr/lib/cups/backend$
  ----------

  So it exists and is valid.

  But if I let package kit install it via its Python bindings I get

  ----------
  till@till-raring:/usr/lib/cups/backend$ python
  Python 2.7.3 (default, Jan 26 2013, 15:27:43)
  [GCC 4.7.2] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from gi.repository import GLib, PackageKitGlib
  >>> pk = PackageKitGlib.Client()
  >>> def progress(progress, type, user_data):
  ...     return
  ...
  >>> res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, '8AA65D56', 
'', None, progress, None)
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python2.7/dist-packages/gi/types.py", line 113, in function
      return info.invoke(*args, **kwargs)
  gi._glib.GError: Failed to download and install the key 8AA65D56 from 
hkp://keyserver.ubuntu.com:80:

  >>>
  ----------

  What is going wrong here?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1116503/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to