我的系统是centos 6.8 x86的;
安装pam_mysql时报错如下:
[root@Ams ~]# yum install pam_mysql -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.sjtu.edu.cn
* extras: ftp.sjtu.edu.cn
* updates: ftp.sjtu.edu.cn
Resolving Dependencies
–> Running transaction check
—> Package pam_mysql.x86_64 1:0.7-0.12.rc1.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================
Installing:
pam_mysql x86_64 1:0.7-0.12.rc1.el6 epel 38 k
Transaction Summary
====================================================================================================================================================
Install 1 Package(s)
Total size: 38 k
Installed size: 88 k
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Public key for pam_mysql-0.7-0.12.rc1.el6.x86_64.rpm is not installed
解决方案如下:导入RPM签名,再安装,epel源才可以。
[root@Ams ~]# rpm –import http://mirrors.aliyun.com/epel/RPM-GPG-KEY-EPEL-6
[root@Ams ~]# yum install pam_mysql -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.sjtu.edu.cn
* extras: ftp.sjtu.edu.cn
* updates: ftp.sjtu.edu.cn
Resolving Dependencies
–> Running transaction check
—> Package pam_mysql.x86_64 1:0.7-0.12.rc1.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================
Installing:
pam_mysql x86_64 1:0.7-0.12.rc1.el6 epel 38 k
Transaction Summary
====================================================================================================================================================
Install 1 Package(s)
Total size: 38 k
Installed size: 88 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:pam_mysql-0.7-0.12.rc1.el6.x86_64 1/1
Verifying : 1:pam_mysql-0.7-0.12.rc1.el6.x86_64 1/1
Installed:
pam_mysql.x86_64 1:0.7-0.12.rc1.el6
Complete!
[root@Ams ~]#
2016-08-01
原创文章,作者:mississippi,如若转载,请注明出处:http://www.178linux.com/27075