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]

西部世界
西部世界
管理员
352
文章
0
粉丝
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. 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]

文章末尾固定信息

 
西部世界
  • 本文由 西部世界 发表于2023年11月27日 19:32:11
  • 转载请务必保留本文链接:https://www.cnhawkit.com/1821.html
匿名

发表评论

匿名网友

拖动滑块以完成验证