环境:CentOS 6.5 x64
今天yum安装的时候,报出如下错误:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEYRetrieving key from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6GPG key retrieval failed: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.centos.org'"
于是google了一下,有两种方法可以避免
编辑/etc/yum.repos.d/相应的.repo文件,更改
gpgcheck=0
或者手动在某个更新源上下载一个RPM-GPG-KEY-CentOS,然后
rpm --import
这里做个简短的笔记。