Bug 88343
Summary: | redhat-install-packages chokes, maybe due to lack of public key? | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Barry K. Nathan <barryn> |
Component: | redhat-config-packages | Assignee: | Jeremy Katz <katzj> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | mitsu |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-04-23 01:56:03 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
Barry K. Nathan
2003-04-09 06:02:33 UTC
It looks like there's more to this than missing keys... [root@localhost root]# rpmdb --rebuilddb [root@localhost root]# redhat-install-packages /mnt/cdrom/RedHat/RPMS/kernel-utils-2.4-8.29.i386.rpm error: cannot open Packages database in /var/lib/rpm warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID db42a60e Traceback (most recent call last): File "/usr/share/redhat-config-packages/SinglePackageWindow.py", line 252, in ? main_window.run() File "/usr/share/redhat-config-packages/SinglePackageWindow.py", line 216, in run self.do_initial_setup () File "/usr/share/redhat-config-packages/SinglePackageWindow.py", line 145, in do_initial_setup h = ts.hdrFromFdno(fd) rpm.error: public key not available [root@localhost root]# rpm -K !$ rpm -K /mnt/cdrom/RedHat/RPMS/kernel-utils-2.4-8.29.i386.rpm /mnt/cdrom/RedHat/RPMS/kernel-utils-2.4-8.29.i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#db42a60e) [root@localhost root]# rpm -q 'gpg-pubkey-*' package gpg-pubkey-* is not installed [root@localhost root]# rpm --import /usr/share/rhn/RPM-GPG-KEY [root@localhost root]# rpm --import /usr/share/rhn/BETA-RPM-GPG-KEY [root@localhost root]# rpm -q 'gpg-pubkey-*' gpg-pubkey-db42a60e-37ea5438 gpg-pubkey-897da07a-3c979a7f [root@localhost root]# rpm -K /mnt/cdrom/RedHat/RPMS/kernel-utils-2.4-8.29.i386.rpm /mnt/cdrom/RedHat/RPMS/kernel-utils-2.4-8.29.i386.rpm: (sha1) dsa sha1 md5 gpg OK [root@localhost root]# redhat-install-packages /mnt/cdrom/RedHat/RPMS/kernel-utils-2.4-8.29.i386.rpm error: cannot open Packages database in /var/lib/rpm warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID db42a60e Traceback (most recent call last): File "/usr/share/redhat-config-packages/SinglePackageWindow.py", line 252, in ? main_window.run() File "/usr/share/redhat-config-packages/SinglePackageWindow.py", line 216, in run self.do_initial_setup () File "/usr/share/redhat-config-packages/SinglePackageWindow.py", line 145, in do_initial_setup h = ts.hdrFromFdno(fd) rpm.error: public key not available [root@localhost root]# /usr/lib/rpm/rpmdb_verify /var/lib/rpm/Packages [root@localhost root]# Hmmm.... This was with "nosysinfo" as a kernel boot option (otherwise I get a message from rpm --rebuilddb). Other possibly relevant info: kernel 2.4.20-9 rpm 4.2-1 (test-4.2 from ftp.rpm.org) My original discovery of this bug was done with kernel 2.4.20-8, without the "nosysinfo" option, and with the version of rpm 4.2 that came on the Shrike ISOs. Does 1.1.9-1 at http://people.redhat.com/~katzj/redhat-config-packages/1.1.9/ fix your problem? I've been having the same problem, because of a missing GPG key. The new 1.1.9-1 packages don't crash anymore, but they don't give me even a warning about the missing key. Isn't this a security issue? |