今天在CentOS上用RPM安装nfs时出现如下错误:
# yum install nfs-*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
cent6 | 4.0 kB 00:00 ...
Setting up Install Process
Examining nfs-utils-1.2.2-7.el6.x86_64.rpm: 1:nfs-utils-1.2.2-7.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64.rpm: does not update installed package.
Examining nfs-utils-lib-1.1.5-1.el6.i686.rpm: nfs-utils-lib-1.1.5-1.el6.i686
Marking nfs-utils-lib-1.1.5-1.el6.i686.rpm to be installed
Examining nfs-utils-lib-1.1.5-1.el6.x86_64.rpm: nfs-utils-lib-1.1.5-1.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64.rpm: does not update installed package.
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils-lib.i686 0:1.1.5-1.el6 set to be updated
--> Processing Dependency: libc.so.6 for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.2) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.2.3) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.2.4) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3.4) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libdl.so.2 for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libgssglue.so.1 for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2) for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Processing Dependency: libldap-2.4.so.2 for package: nfs-utils-lib-1.1.5-1.el6.i686
--> Running transaction check
---> Package glibc.i686 0:2.12-1.7.el6 set to be updated
--> Processing Dependency: libfreebl3.so(N×××AWHASH_3.12.3) for package: glibc-2.12-1.7.el6.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.7.el6.i686
---> Package libgssglue.i686 0:0.1-8.1.el6 set to be updated
---> Package openldap.i686 0:2.4.19-15.el6 set to be updated
--> Processing Dependency: libsasl2.so.2 for package: openldap-2.4.19-15.el6.i686
--> Processing Dependency: libcrypto.so.10 for package: openldap-2.4.19-15.el6.i686
--> Processing Dependency: libssl.so.10 for package: openldap-2.4.19-15.el6.i686
--> Running transaction check
---> Package cyrus-sasl-lib.i686 0:2.1.23-8.el6 set to be updated
--> Processing Dependency: libdb-4.7.so for package: cyrus-sasl-lib-2.1.23-8.el6.i686
---> Package nss-softokn-freebl.i686 0:3.12.7-1.1.el6 set to be updated
---> Package openssl.i686 0:1.0.0-4.el6 set to be updated
--> Processing Dependency: libk5crypto.so.3 for package: openssl-1.0.0-4.el6.i686
--> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT) for package: openssl-1.0.0-4.el6.i686
--> Processing Dependency: libcom_err.so.2 for package: openssl-1.0.0-4.el6.i686
--> Processing Dependency: libkrb5.so.3 for package: openssl-1.0.0-4.el6.i686
--> Processing Dependency: libgssapi_krb5.so.2 for package: openssl-1.0.0-4.el6.i686
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT) for package: openssl-1.0.0-4.el6.i686
--> Processing Dependency: libz.so.1 for package: openssl-1.0.0-4.el6.i686
--> Running transaction check
---> Package db4.i686 0:4.7.25-16.el6 set to be updated
---> Package krb5-libs.i686 0:1.8.2-3.el6 set to be updated
--> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3) for package: krb5-libs-1.8.2-3.el6.i686
--> Processing Dependency: libkeyutils.so.1 for package: krb5-libs-1.8.2-3.el6.i686
--> Processing Dependency: libselinux.so.1 for package: krb5-libs-1.8.2-3.el6.i686
---> Package libcom_err.i686 0:1.41.12-3.el6 set to be updated
---> Package zlib.i686 0:1.2.3-25.el6 set to be updated
--> Running transaction check
---> Package keyutils-libs.i686 0:1.4-1.el6 set to be updated
---> Package libselinux.i686 0:2.0.94-2.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
nfs-utils-lib i686 1.1.5-1.el6 /nfs-utils-lib-1.1.5-1.el6.i686 139 k
Installing for dependencies:
cyrus-sasl-lib i686 2.1.23-8.el6 cent6 135 k
db4 i686 4.7.25-16.el6 cent6 580 k
glibc i686 2.12-1.7.el6 cent6 4.3 M
keyutils-libs i686 1.4-1.el6 cent6 20 k
krb5-libs i686 1.8.2-3.el6 cent6 688 k
libcom_err i686 1.41.12-3.el6 cent6 34 k
libgssglue i686 0.1-8.1.el6 cent6 22 k
libselinux i686 2.0.94-2.el6 cent6 106 k
nss-softokn-freebl i686 3.12.7-1.1.el6 cent6 109 k
openldap i686 2.4.19-15.el6 cent6 233 k
openssl i686 1.0.0-4.el6 cent6 1.4 M
zlib i686 1.2.3-25.el6 cent6 72 k
Transaction Summary
================================================================================
Install 13 Package(s)
Upgrade 0 Package(s)
Total size: 7.7 M
Total download size: 7.6 M
Installed size: 21 M
Is this ok [y/N]: y
Downloading Packages:
--------------------------------------------------------------------------------
Total 64 MB/s | 7.6 MB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Public key for nfs-utils-lib-1.1.5-1.el6.i686.rpm is not installed
运行如下命令后重新安装:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6