yum install: GPG check failed for CentOS 7 repos
Posted: 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:
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:
Downloading and importing the CentOS7 GPG key from https://www.centos.org/keys/RPM-GPG-KEY-CentOS-7 didn't help.
This works:
But why did importing the key didn't work?
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
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
This works:
Code: Select all
yum install --nogpgcheck gcc-aarch64-linux-gnu