首页 > 代码库 > rpm | yum 安装软件包时key过期

rpm | yum 安装软件包时key过期

1、问题:

yum -y install docker-io
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * epel: mirrors.tuna.tsinghua.edu.cn
 * local: 
Resolving Dependencies
--> Running transaction check
---> Package docker-io.x86_64 0:1.7.1-2.el6 will be installed
--> Processing Dependency: lxc for package: docker-io-1.7.1-2.el6.x86_64
--> Processing Dependency: libcgroup for package: docker-io-1.7.1-2.el6.x86_64
--> Running transaction check
---> Package libcgroup.x86_64 0:0.40.rc1-12.el6 will be installed
---> Package lxc.x86_64 0:1.0.9-1.el6 will be installed
--> Processing Dependency: lua-lxc(x86-64) = 1.0.9-1.el6 for package: lxc-1.0.9-1.el6.x86_64
--> Processing Dependency: lua-alt-getopt for package: lxc-1.0.9-1.el6.x86_64
--> Processing Dependency: liblxc.so.1()(64bit) for package: lxc-1.0.9-1.el6.x86_64
--> Running transaction check
---> Package lua-alt-getopt.noarch 0:0.7.0-1.el6 will be installed
---> Package lua-lxc.x86_64 0:1.0.9-1.el6 will be installed
--> Processing Dependency: lua-filesystem for package: lua-lxc-1.0.9-1.el6.x86_64
---> Package lxc-libs.x86_64 0:1.0.9-1.el6 will be installed
--> Running transaction check
---> Package lua-filesystem.x86_64 0:1.4.2-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================================
 Package                                        Arch                                   Version                                           Repository                             Size
=====================================================================================================================================================================================
Installing:
 docker-io                                      x86_64                                 1.7.1-2.el6                                       epel                                  4.6 M
Installing for dependencies:
 libcgroup                                      x86_64                                 0.40.rc1-12.el6                                   local                                 128 k
 lua-alt-getopt                                 noarch                                 0.7.0-1.el6                                       epel                                  6.9 k
 lua-filesystem                                 x86_64                                 1.4.2-1.el6                                       epel                                   24 k
 lua-lxc                                        x86_64                                 1.0.9-1.el6                                       epel                                   16 k
 lxc                                            x86_64                                 1.0.9-1.el6                                       epel                                  122 k
 lxc-libs                                       x86_64                                 1.0.9-1.el6                                       epel                                  257 k

Transaction Summary
=====================================================================================================================================================================================
Install       7 Package(s)

Total size: 5.1 M
Total download size: 128 k
Installed size: 20 M
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
 Userid : EPEL (6) <epel@fedoraproject.org>
 Package: epel-release-6-8.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY


Public key for libcgroup-0.40.rc1-12.el6.x86_64.rpm is not installed

 

2、解决方案

rpm --import /etc/pki/rpm-gpg/RPM*

导入新的key 就行了。

 

rpm | yum 安装软件包时key过期