[Bug 1116503] Re: Problems installing package signature from Python script

Sebastian Heinlein 1116503 at bugs.launchpad.net
Wed Feb 6 04:41:29 UTC 2013


For security reasons the short key ID isn't enough. Could you please try
E5E86C008AA65D56 instead.

I will check why we don't get a better error message here.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptdaemon 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

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 at 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) <epson-linux-inkjet at avasys.jp>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  till at 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 at 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




More information about the foundations-bugs mailing list