[packagekit] yum repo keys

Seth Vidal skvidal at fedoraproject.org
Fri Nov 14 06:48:36 PST 2008



On Fri, 14 Nov 2008, Richard Hughes wrote:

> Can anyone see the problem here?
>
> [hughsie at hughsie-laptop yum]$ sudo ./yumBackend.py get-updates none
> Loaded plugins: refresh-packagekit
> allow-cancel	true
> no-percentage-updates
> status	info
> status	download-repository
> subpercentage	0
> subpercentage	100
> status	download-repository
> subpercentage	0
> subpercentage	100
> subpercentage	0
> Importing GPG key 0x69886CC7 "Seth Vidal <skvidal at phy.duke.edu>" from http://sethdot.org/~skvidal/skvidal.gpg
> repo-signature-required	;;;signs-good	signs-good	http://sethdot.org/~skvidal/skvidal.gpg	Seth Vidal <skvidal at phy.duke.edu>	69886CC7	cb5505f988680962df52f6a6d408f7c769886cc7	Sun Sep 16 23:56:43 2001	gpg
> error	gpg-failure	GPG key 69886CC7 required
> finished
>
> [hughsie at hughsie-laptop yum]$ sudo ./yumBackend.py install-signature gpg 69886CC7 ";;;signs-good"
> Loaded plugins: refresh-packagekit
> allow-cancel	true
> no-percentage-updates
> status	info
> subpercentage	0
> Importing GPG key 0x69886CC7 "Seth Vidal <skvidal at phy.duke.edu>" from http://sethdot.org/~skvidal/skvidal.gpg
> finished
>
> [hughsie at hughsie-laptop yum]$ sudo ./yumBackend.py get-updates none
> Loaded plugins: refresh-packagekit
> allow-cancel	true
> no-percentage-updates
> status	info
> status	download-repository
> subpercentage	0
> subpercentage	100
> status	download-repository
> subpercentage	0
> subpercentage	100
> subpercentage	0
> Importing GPG key 0x69886CC7 "Seth Vidal <skvidal at phy.duke.edu>" from http://sethdot.org/~skvidal/skvidal.gpg
> repo-signature-required	;;;signs-good	signs-good	http://sethdot.org/~skvidal/skvidal.gpg	Seth Vidal <skvidal at phy.duke.edu>	69886CC7	cb5505f988680962df52f6a6d408f7c769886cc7	Sun Sep 16 23:56:43 2001	gpg
> error	gpg-failure	GPG key 69886CC7 required
> finished
>
> The key import doesn't seem to work. The key import is done like this:
>
> repo = self.yumbase.repos.getRepo(repoid)
> if repo:
>    try:
>        self.yumbase.repos.doSetup(thisrepo=repoid)
>        self.yumbase.getKeyForRepo(repo, callback = lambda x: True)
>    except yum.Errors.YumBaseError, e:
>        self.error(ERROR_UNKNOWN, "cannot install signature: %s" % str(e))
>    except Exception, e:
>        self.error(ERROR_GPG_FAILURE, "Error importing GPG Key for the %s repository: %s" % (repo, str(e)))
>
> Anybody got any ideas?
>

Are you using yum from git 3.2.X? If so then the problem is a check that 
was removed b/c it was wrong and needs to br replaced with a more correct 
one. I think.

-sv



More information about the PackageKit mailing list