Broke RPM Database

Issues related to applications and software problems and general support
Post Reply
MHolinde
Posts: 2
Joined: 2022/05/25 00:38:39

Broke RPM Database

Post by MHolinde » 2022/05/25 00:52:34

When I run rpm -qa I get a normal list until the packages that broke my RPM database or GPG keychain or???

Code: Select all

...
iwl6050-firmware-41.28.5.1-126.el9.noarch
iwl7260-firmware-25.30.13.0-126.el9.noarch
rootfiles-8.1-31.el9.noarch
gpg-pubkey-8483c65d-5ccc5b19
wget-1.21.1-7.el9.x86_64
dialog-1.3-32.20210117.el9.x86_64
error: rpmdbNextIterator: skipping h#     380 
Header V4 RSA/SHA1 Signature, key ID 1a693c5c: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
gpm-libs-1.20.7-29.el9.x86_64
vim-filesystem-8.2.2637-16.el9.noarch
vim-common-8.2.2637-16.el9.x86_64
vim-enhanced-8.2.2637-16.el9.x86_64
gpg-pubkey-1a693c5c-61fb9193
[root@localhost yum.repos.d]#
Here are the steps I did to cause it:

1. I modified amdgpu-proprietary.repo, amdgpu.repo and rocm.repo because the env variable for $amdgpudistro was not set. So in the amdgpu .repo files I changed that var to "9.0" and in rocm.repo I changed it to 'centos8'

2. Then I ran amdgpu-install and got this error:


Code: Select all

AMDGPU 22.10.2 repository                                                                                                3.0 MB/s | 3.0 kB     00:00    
Importing GPG key 0x1A693C5C:
 Userid     : "AMD MLSE DevOps <dl.MLSE.DevOps@amd.com>"
 Fingerprint: CA8B B472 7A47 B4D0 9B4E E896 9386 B48A 1A69 3C5C
 From       : /etc/amdgpu-install/rocm.gpg.key
Is this ok [y/N]: y
Key imported successfully
Import of key(s) didn't help, wrong key(s)?
Problem opening package amdgpu-core-22.10.2.50102-1411481.el9.noarch.rpm. Failing package is: amdgpu-core-22.10.2.50102-1411481.el9.noarch
 GPG Keys are configured as: file:///etc/amdgpu-install/rocm.gpg.key

This is the 2nd time I have reproduced this condition on a clean install. I have tried rebuilding the RPM database with rpm and with dnf. This has to do with me bringing in something incompatible with the gpg key but I can't understand it.

Thanks!

MHolinde
Posts: 2
Joined: 2022/05/25 00:38:39

Correct way to add amdgpu-install?

Post by MHolinde » 2022/05/25 00:54:09

I download the amdgpu-install for CentOs 9 but I am using Centos 9 Stream. Is there a way to use amdgpu with stream?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Broke RPM Database

Post by TrevorH » 2022/05/25 08:32:13

I am suspecting that the key is not a supported format. RHEL 9 has deprecated use of SHA1 for example - and removed support for it I believe.

A minor correction, there is no such thing as CentOS 9 and never will be. There is only CentOS Stream 9.

What is the output from rpm -qa gpg-pubkey-\* ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

sepp
Posts: 2
Joined: 2022/05/28 11:44:25

Re: Broke RPM Database

Post by sepp » 2022/05/28 13:46:32

i had the same issue on redhat 9.

Code: Select all

update-crypto-policies --set DEFAULT:SHA1
solved the installation problem for me, but the module couldn't be compiled.
"Local GCC version 110202 does not match kernel compiler GCC version 110201"

Code: Select all

cat /proc/version
Linux version 5.14.0-70.13.1.el9_0.x86_64 (mockbuild@x86-vm-08.build.eng.bos.redhat.com) (gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9), GNU ld version 2.35.2-17.el9) #1 SMP PREEMPT Thu Apr 14 12:42:38 EDT 2022

gcc --version
gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
any idea what to do now?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Broke RPM Database

Post by TrevorH » 2022/05/28 13:53:48

You either need to update the kernel to one compiled with the newer version of gcc or you need to downgrade gcc (and probably a lot of other related stuff) so that it matches the version that was used to build that kernel.

I'm not entirely sure where you got gcc 11.2.2 from anyway? The current version in RHEL 9 is 11.2.1-9.4.el9 and your kernel _looks_ like one from RHEL 9.0 based on the build machine. Or maybe it's Stream 9 which I've never tried and probably never will and they''ve screwed up. Again.

Alma Linux 9 is out as a free to use clone of RHEL 9.0 and I would use that in preference to Stream.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

sepp
Posts: 2
Joined: 2022/05/28 11:44:25

Re: Broke RPM Database

Post by sepp » 2022/05/28 14:04:29

it's a fresh installed redhat enterprise 9 with a stock redhat kernel. no stream.
and i don't have gcc 11.2.2. gcc --version shows 11.2.1 and the kernel is compiled with 11.2.1
something strange is going on here :(
i'll try to get some help on the AMD forum and keep you updated when i get it solved.
have a nice WE...

Post Reply