Gpg-key retrieval failed: (errno 14) curl#37 couldnt open file /etc/pki/rpm-gpg/rpm-gpg-key-oracle

Description Ken Dreyer 2017-05-14 01:35:23 UTC

Description of problem: "fedpkg --dist epel7 mockbuild" on a package (python-jenkins) fails with the following error DEBUG util.py:450: Retrieving key from file:///etc/pki/mock/RPM-GPG-KEY-CentOS-7 DEBUG util.py:450: GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/mock/RPM-GPG-KEY-CentOS-7" DEBUG util.py:588: Child return code was: 1 DEBUG util.py:109: ensuring that dir exists: /var/lib/mock/epel-7-x86_64 DEBUG util.py:197: kill orphans DEBUG util.py:606: child environment: None Version-Release number of selected component (if applicable): mock-1.4.1-1.fc25 How reproducible: Every time for epel7. I've also tried cleaning up my computer with "mock -r epel-7-x86_64 --scrub=all", no difference. Steps to Reproduce: 1. update to mock-1.4.1-1.fc25 in updates-testing 2. fedpkg clone python-jenkins 3. cd python-jenkins 4. fedpkg --dist epel7 mockbuild Actual results: Mock fails with the above error Expected results: Mock successfully builds the package locally. Additional info: Downgrading to mock-1.3.4-1.fc25 allows the build to succeed as expected.

Comment 1 Miroslav Suchý 2017-06-05 15:10:40 UTC

gpg file from file:///etc/pki/mock/RPM-GPG-KEY-CentOS-7 is not used any more. Mock now use gpg keys from package `distribution-gpg-keys` and should be: gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7 I believe that you have unmerged `.rpmnew` files. Please run: `rpmconf -o mock` to merge the changes.

Comment 3 tyron woodley 2020-08-22 05:17:58 UTC Comment hidden (spam)

How to hack 8 ball pool,so you can visit here this site first and get the any simple possible solution here //8ball-pool-hack.mystrikingly.com thanks for the developed this new series online game.

Following error occurred While upgrading Fedora 19 to Fedora 20 through yum.

Error Message:

Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
Error: GPG key retrieval failed: [Errno 14] curl#37 – “Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386”

Solution:

Install the new Fedora 20 gpg key and upgrade fedora

To Fedora 19 to 20.
#rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-20-$(uname -i)
#yum update

To upgrade Fedora 20 -> Fedora 21 run
#rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-21-$(uname -i)

To upgrade Fedora 21 -> Fedora 22
#rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-22-$(uname -i)

Removed all the old rpms and headers from the yum cache in /var/cache/yum.
After cleaning the cache fedora upgradation started successfully

#yum clean all

#yum update -y

Use yum to install MySQL5.7 according to the official document , and add mysl-comunity.repo as follows:

[mysql57-community] name=MySQL 5.7 Community Server baseurl=//repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Perform installation

sudo yum install mysql-community-server

Report an error

Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql"

Causes and solutions

Set gpgcheck=1 in the yum warehouse, it will check the GPG key when downloading and installing, it will report this error if file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql is not found locally.

Solution:

  1. Disable gpgcheck, just set gpgcheck=0
  2. Add the GPG key file under the specified path

Centos 6.5를 사용하고 있으며 패키지를 설치하려고 할 때 yum다음 오류가 발생합니다.

GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puias

이 문제를 어떻게 해결할 수 있습니까?

답변

이 오류는 /etc/yum.repos.d/에 다음과 같은 GPG 키를 나열하는 YUM 저장소 구성이 있기 때문에 발생합니다.

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puias

이 구성은 YUM에 저장소의 GPG 키가 디스크에 있음을 알려줍니다. YUM에서 발생하는 오류는 YUM이며 경로에서 GPG 키를 찾을 수 없음을 알려줍니다./etc/pki/rpm-gpg/RPM-GPG-KEY-puias

따라서 YPG는 GPG 키를 수동으로 작성하여 /etc/pki/rpm-gpg/RPM-GPG-KEY-puias해당 경로에서 키를 찾을 수있었습니다.

또는 다음 gpgkey과 같이 키의 URL로 설정할 수 있습니다 .

gpgkey=//springdale.math.ias.edu/data/puias/6/x86_64/os/RPM-GPG-KEY-puias

저장소 구성에서.

GPG와 YUM / RPM은 매우 까다로울 수 있습니다. 더 많은 내부 기능이 궁금하다면이 블로그 게시물을 확인하십시오 .

답변

리포지토리를 신뢰하는 경우 파일을 편집 /etc/yum.repos.d/mysql-community.repo하고gpgcheck

[mysql57-community] name=MySQL 5.7 Community Server baseurl=//repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/ enabled=1 gpgcheck=0

답변

답변

이 문제는 공식 웹 사이트 에서 제공되는 표준 설치 안내서를 사용하여 CentOS에 Docker를 설치하려고 할 때 발생합니다

에서 3 단계 로 변경 base을 https에서 http로하고 gpgkey의 URL과는, 예를 들어 아래를 작동

$ sudo tee /etc/yum.repos.d/docker.repo <<-'EOF' [dockerrepo] name=Docker Repository baseurl=**http**://yum.dockerproject.org/repo/main/centos/$releasever/ enabled=1 gpgcheck=1 gpgkey=**http**://yum.dockerproject.org/gpg EOF

답변

답변

이 명령으로 repo 파일을 편집하지 않고 gpg check를 비활성화 할 수도 있습니다.
yum install --nogpgcheck your_package

답변

Toplist

Neuester Beitrag

Stichworte