yum install: GPG check failed for CentOS 7 repos

Issues related to applications and software problems and general support
Post Reply
ptz
Posts: 2
Joined: 2019/11/28 14:16:56

yum install: GPG check failed for CentOS 7 repos

Post by ptz » 2019/11/28 14:26:28

[Complete CentOS noob, but experienced Ubuntu user]

I am bringing together a build environment on a fresh centos 8 image, and encountered this:

Code: Select all

$ yum install gcc-aarch64-linux-gnu
Last metadata expiration check: 0:27:43 ago on Thu 28 Nov 2019 [...]
No match for argument: gcc-aarch64-linux-gnu
Error: Unable to find a match
My guess was that it had to do with the repositories yum looks in. Investigating packages listed at https://dl.fedoraproject.org/pub/epel/7 ... ackages/g/ I can see the package(s) I need. But I don't see them at https://dl.fedoraproject.org/pub/epel/8 ... ackages/g/. So I added the centos7 repos to my list of repos via `yum-config-manager`. Now the packages are downloaded, but I get:

Code: Select all

warning: /var/cache/dnf/dl.fedoraproject.org_pub_epel_7_aarch64_-182ea4dc2fbb92d0/packages/cross-binutils-common-2.27-9.el7.1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for cross-binutils-common-2.27-9.el7.1.noarch.rpm is not installed
Public key for cross-gcc-common-4.8.5-16.el7.1.noarch.rpm is not installed
Public key for binutils-aarch64-linux-gnu-2.27-9.el7.1.x86_64.rpm is not installed
Public key for gcc-aarch64-linux-gnu-4.8.5-16.el7.1.x86_64.rpm is not installed
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
Downloading and importing the CentOS7 GPG key from https://www.centos.org/keys/RPM-GPG-KEY-CentOS-7 didn't help.

This works:

Code: Select all

yum install --nogpgcheck gcc-aarch64-linux-gnu
But why did importing the key didn't work?
Last edited by ptz on 2019/11/28 15:43:33, edited 1 time in total.

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

Re: yum install: GPG check failed for CentOS 7 repos

Post by TrevorH » 2019/11/28 15:40:58

Do not attempt to use CentOS 7 repos on CentOS 8. They are different and not compatible. If the package you are looking for in EPEL is not there then look at bugzilla.redhat.com in the Fedora EPEL section and see if it has been requested and if not, raise a request to get it added. Make sure you look in the epel-testing and epel-playground repos too (not enabled by default).
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

ptz
Posts: 2
Joined: 2019/11/28 14:16:56

Re: yum install: GPG check failed for CentOS 7 repos

Post by ptz » 2019/11/28 15:45:10

TrevorH wrote:
2019/11/28 15:40:58
Do not attempt to use CentOS 7 repos on CentOS 8. They are different and not compatible. If the package you are looking for in EPEL is not there then look at bugzilla.redhat.com in the Fedora EPEL section and see if it has been requested and if not, raise a request to get it added. Make sure you look in the epel-testing and epel-playground repos too (not enabled by default).
Thanks! I guess I'll just bring up a CentOS 7 vm then.

Post Reply