1. 程式人生 > >centOS yum更新問題解決

centOS yum更新問題解決

centOS 6.3

之前在網上找到的更新源,貼到自己的系統裡,執行yum...之後,總是提示addons目錄的這個URL404。去各個映象裡找了一下,的確沒有這個目錄,乾脆就在更新源裡把它注掉了,再按照網上的說法,yum makecache裡一下。連結上就沒有問題了。

但是軟體更新仍然不成功,提示

warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Retrieving key from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


The GPG keys listed for the "CentOS-6 - Base" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
執行
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
後,可以順利使用yum進行軟體管理更新。