Bug 637211 - AttributeError: 'NoneType' object has no attribute 'pgpImportPubkey'
Summary: AttributeError: 'NoneType' object has no attribute 'pgpImportPubkey'
Keywords:
Status: CLOSED DUPLICATE of bug 622179
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-24 15:23 UTC by Brian Lane
Modified: 2014-01-21 23:16 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-09-27 13:07:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
screenshot with pgpImportPubkey message in qemu-kvm window (344.34 KB, image/png)
2010-09-25 19:47 UTC, Steve Tyler
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.