Bug 637211

Summary: AttributeError: 'NoneType' object has no attribute 'pgpImportPubkey'
Product: [Fedora] Fedora Reporter: Brian Lane <bcl>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: ffesti, james.antill, jonathan, maxamillion, pmatilai, rhughes, smparrish, stephent98, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-27 13:07:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot with pgpImportPubkey message in qemu-kvm window none

Description Brian Lane 2010-09-24 15:23:12 UTC
failed to install signature: Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2937, in install_signature
    self.yumbase.getKeyForPackage(pkg, askcb = lambda x, y, z: True)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4329, in getKeyForPackage
    result = ts.pgpImportPubkey(misc.procgpgkey(info['raw_key']))
  File "/usr/lib/python2.7/site-packages/rpmUtils/transaction.py", line 59, in __getattr__
    return self.getMethod(attr)
  File "/usr/lib/python2.7/site-packages/rpmUtils/transaction.py", line 69, in getMethod
    return getattr(self.ts, method)
AttributeError: 'NoneType' object has no attribute 'pgpImportPubkey'



Description of problem:
Can't upgrade new F14 system.

Version-Release number of selected component (if applicable):
PackageKit-0.6.7-2.fc14.x86_64


How reproducible:
Unsure, probably consistently

Steps to Reproduce:
1. Installed F13
2. Used F14 Beta RC3 to upgrade
3. PackageKit wanted to install updates. Resulted in above traceback after asking if I trusted the source of the GPG key.

Comment 1 Brian Lane 2010-09-24 16:08:16 UTC
I ran the update from a terminal with 'yum update --skip-broken' and it imported the key just fine. --skip-problem was needed due to an un-related library ABI issue.

Comment 2 Steve Tyler 2010-09-25 19:47:15 UTC
Created attachment 449624 [details]
screenshot with pgpImportPubkey message in qemu-kvm window

Reproduced in VM.

Install:
$ qemu-kvm -m 512m -cdrom F14-Beta-RC3/Fedora-14-Beta-x86_64-DVD.iso -hda foobar.img -boot menu=on

Post-install: Software Update from System menu.

$ sha256sum F14-Beta-RC3/Fedora-14-Beta-x86_64-DVD.iso 
24d764247508f18c19fdceb2d9f2bf714e3615a722f20c64a0ed365f3b7af885  F14-Beta-RC3/Fedora-14-Beta-x86_64-DVD.iso

Comment 3 Steve Tyler 2010-09-25 20:00:09 UTC
(In reply to comment #2)
> Created attachment 449624 [details]
> screenshot with pgpImportPubkey message in qemu-kvm window
> 
> Reproduced in VM.
> 
> Install:
> $ qemu-kvm -m 512m -cdrom F14-Beta-RC3/Fedora-14-Beta-x86_64-DVD.iso -hda
> foobar.img -boot menu=on

This was a fresh install ...

Comment 4 Steve Tyler 2010-09-26 12:11:27 UTC
Following Brian here ...

A workaround is to update yum from a terminal window:

1. Complete the DVD install, reboot, complete firstboot, login.
2. Enable networking.
3. From a terminal window:
   $ su -c 'yum -y update yum'
4. Complete the update with Software Update.
5. Restart.

Tested in a VM.

This workaround may need to be documented in Common Bugs.
http://fedoraproject.org/wiki/Common_F14_bugs

Comment 5 James Antill 2010-09-27 13:07:37 UTC

*** This bug has been marked as a duplicate of bug 622179 ***