[Bug 1116503] Re: Problems installing package signature from Python script
Till Kamppeter
1116503 at bugs.launchpad.net
Tue Feb 5 22:02:13 UTC 2013
I do not use a proxy and my network seems to be working, as I am
regularly updating the system and the updates get downloaded without any
problems. I also can load the key with the gpg utility.
As you can see below I am using the Aptdaemon compat layer, packagekitd
is not installed.
Do I then still have to test PackageKit >= 0.8.x? Probably a fix there
will not help much as standard installations of Ubuntu use aptdaemon.
Adding aptdaemon task.
till at till-lenovo:/usr/lib/cups/backend$ sudo /usr/lib/packagekit/packagekitd --verbose
[sudo] password for till:
sudo: /usr/lib/packagekit/packagekitd: command not found
till at till-lenovo:/usr/lib/cups/backend$ dpkg -l | grep packagekit
ii gir1.2-packagekitglib-1.0 0.7.6-2 amd64 GObject introspection data for the PackageKit GLib library
ii libpackagekit-glib2-14:amd64 0.7.6-2 amd64 Library for accessing PackageKit using GLib
ii packagekit-backend-aptcc 0.7.6-2 amd64 APT backend for PackageKit
ii python-packagekit 0.7.6-2 all PackageKit backend Python bindings
till at till-lenovo:/usr/lib/cups/backend$ dpkg -l | grep aptdaemon
ii aptdaemon 0.45+bzr883-0ubuntu1 all transaction based package management service
ii aptdaemon-data 0.45+bzr883-0ubuntu1 all data files for clients
ii python-aptdaemon 0.45+bzr883-0ubuntu1 all Python 2 module for the server and client of aptdaemon
ii python-aptdaemon-gtk 0.45+bzr883-0ubuntu1 all Transitional dummy package
ii python-aptdaemon.gtk3widgets 0.45+bzr883-0ubuntu1 all Python 2 GTK+ 3 widgets to run an aptdaemon client
ii python-aptdaemon.gtkwidgets 0.45+bzr883-0ubuntu1 all Python GTK+ 2 widgets to run an aptdaemon client
ii python3-aptdaemon 0.45+bzr883-0ubuntu1 all Python 3 module for the server and client of aptdaemon
ii python3-aptdaemon.gtk3widgets 0.45+bzr883-0ubuntu1 all Python 3 GTK+ 3 widgets to run an aptdaemon client
ii python3-aptdaemon.pkcompat 0.45+bzr883-0ubuntu1 all PackageKit compatibilty for AptDaemon
ii software-center-aptdaemon-plugins 0.1.5 all The aptdaemon plugins for software-center
till at till-lenovo:/usr/lib/cups/backend$
** Changed in: packagekit (Ubuntu)
Status: Incomplete => New
** Also affects: aptdaemon (Ubuntu)
Importance: Undecided
Status: New
** Changed in: aptdaemon (Ubuntu)
Importance: Undecided => High
** Changed in: aptdaemon (Ubuntu)
Milestone: None => ubuntu-13.04-feature-freeze
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to packagekit 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:
New
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