CentOS 使用yum时出現 public.gpg.key error

CentOS 使用yum时出現 public.gpg.key error

Filed under: Linux/Unix |  

執行

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 更新了


Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

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.

(required)

(required)