Curl error (37): Couldn’t read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8]

  • A+
所属分类:VPS相关

没有就创建

 

When I tried to run "yum install certbot" on my Oracle linux 8 VM. I got the following error

Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8]

How to fix this?

vi /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8

Open the file https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8 in a browser and copy paste the content on the path /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8

Now your yum will work. :)

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: