Bug 97807

Summary: 8.0 system has an rpm database with 3 copies of null-package gpg-pubkey
Product: [Retired] Red Hat Linux Reporter: Glen A. Foster <glen.foster>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-06-25 16:42:17 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:

Description Glen A. Foster 2003-06-21 17:31:47 UTC
In general, it's an error for more than 1 copy of the same package
(name-version-release triplet) to exist in an RPM database... yet there's a
triple installation (3 copies of the same package, name-version-release) of
gpg-pubkey on my 8.0 system.  There's no corresponding SRPM listed in the rpm
header and the package contains no files.  It's clear from it's name what it's
function is, but I am under the impression that this system should only have 1
copy... perhaps a different version should exist for a beta GPG key, etc.

As for how to reproduce, I am not certain.  I know I've connected to RHN quite a
few times.  Someday I'll try a re-install of 8.0 and see if I get 3 copies from
the get-go.

Comment 1 Glen A. Foster 2003-06-21 17:38:13 UTC
more data:

# rpm -q gpg-pubkey
gpg-pubkey-db42a60e-37ea5438
gpg-pubkey-db42a60e-37ea5438
gpg-pubkey-db42a60e-37ea5438
# rpm -ql gpg-pubkey
(contains no files)
(contains no files)
(contains no files)
# rpm -q --qf '%{SOURCERPM}\n' gpg-pubkey
(none)
(none)
(none)
# rpm -qi gpg-pubkey | grep Install
Install date: Fri 30 May 2003 08:41:35 AM MDT       Build Host: localhost
Install date: Thu 19 Jun 2003 10:10:38 AM MDT       Build Host: localhost
Install date: Thu 19 Jun 2003 10:10:40 AM MDT       Build Host: localhost

... has no signature _on_ the package (duh) because it was build locally.

Comment 2 Bill Nottingham 2003-06-23 14:45:56 UTC
up2date usually is what imports the key.

Comment 3 Jeff Johnson 2003-06-25 16:42:17 UTC
Fix is to do the following
    rpm -e --allmatches gpg-pubkey
    rpm --import /usr/share/doc/rpm-4*/RPM-GPG-KEY

How multiple puplic keys got imported is a whole different
problem.