最近在Centos8系统安装gcc时提示“Curl error (37): Couldn’t read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial [Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial]”,经过摸索找到了方法,接下来记录一下修复方法。
先贴一张提示内容:
然后使用:wget https://archive.fedoraproject.org/pub/epel/RPM-GPG-KEY-centosofficial,提示如下内容:
没有解决问题。然后继续搜索了几个方法还是不行…
最后进入官方找到:https://www.centos.org/keys/,内容如下:
根据我的系统(Centos8)点击“CentOS Project Keys (starting from CentOS 8)
C