CentOS 使用yum时出現 public.gpg.key error
Jul
18
CentOS 使用yum时出現 public.gpg.key error
執行
Version 5
rpm –import /usr/share/doc/centos-release-5/RPM-GPG-KEY*
Version 4
rpm –import /usr/share/doc/centos-release-4/RPM-GPG-KEY*
Version 3
rpm –import /usr/share/doc/centos-release-3/RPM-GPG-KEY-CentOS-3
如果没有找些文件的话,先可以手动去下载到相应的目录:
http://mirror.be10.com/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
http://mirror.be10.com/centos/4/os/i386/RPM-GPG-KEY
http://mirror.be10.com/centos/4/os/i386/RPM-GPG-KEY-centos4
http://mirror.be10.com/centos/3/os/i386/RPM-GPG-KEY-CentOS-3
然后再运行上述命令即可
就可以用 yum 更新了


















No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URI
Leave a comment
If you want to leave a feedback to this post or to some other user´s comment, simply fill out the form below.