Couldn't open file/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 problem solving,

Source: Internet
Author: User

Couldn't open file/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 problem solving,

When using yum install, occasionally encounter this error: Couldn't open file/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

This is because the following GPG key is listed in the configuration file of yum repository in your/etc/yum. repos. d directory:

Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

This configuration tells YUM that the GPG key of the repository exists on the disk. When YUM cannot find this gpg key in the path/etc/pki/rpm-GPG, the above error will be reported.

Solution:

Https://archive.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 for cd/etc/pki/rpm-gpgwget

Then run the yum command again. Of course, some packages can only be installed after epel is installed. How to install epel is: yum install-y epel-release

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.