使用yum 安裝新套件的時候, 出現類似以下的錯誤:
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 025e513b
Error: Could not find the GPG Key necessary to validate pkg /var/cache/yum/update/packages/php-mysql-4.3.2-54.ent.i386.rpm
Error: You may want to run yum clean or remove the file:
/var/cache/yum/update/packages/php-mysql-4.3.2-54.ent.i386.rpm
這是因為CentOS 3 似乎沒有將GPG Keys 安裝進伺服器.
解決的方法, 可以在這個網站 http://mirror.centos.org/centos/ 找到GPG Keys 並且安裝. 因為是使用CENTOS 3, 因此要抓 RPM-GPG-KEY-CentOS-3
[root@centos3 html]# cat /etc/*release
LSB_VERSION="1.3"
CentOS release 3.9 (Final)
解決的方法如下:
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3
留言
張貼留言