GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
今天更新为163的源后,yum的时候报错:GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5.
解决方式:vi /etc/yum.repos.d/CentOS-Base.repo
把文件中全部的RPM-GPG-KEY-CentOS-5更改为RPM-GPG-KEY-CentOS-6就能够了
vim 替换 :%s/RPM-GPG-KEY-CentOS-5/RPM-GPG-KEY-CentOS-6
posted on 2019-03-28 09:35 xfgnongmin 阅读(694) 评论(0) 编辑 收藏 举报