Package filename.rpm is not signed

wzq609發表於2014-11-20
安裝軟體包的時候報錯如下:Package lgtoclnt-8.0.2-1.x86_64.rpm is not signed
[root@localhost linux_x86_64]# yum localinstall lgtoclnt-8.0.2-1.x86_64.rpm
Loaded plugins: fastestmirror
Setting up Local Package Process
Examining lgtoclnt-8.0.2-1.x86_64.rpm: lgtoclnt-8.0.2-1.x86_64
Marking lgtoclnt-8.0.2-1.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
Resolving Dependencies
--&gt Running transaction check
---&gt Package lgtoclnt.x86_64 0:8.0.2-1 set to be updated
--&gt Processing Dependency: libstdc++.so.5(CXXABI_1.2)(64bit) for package: lgtoclnt
--&gt Processing Dependency: libstdc++.so.5(GLIBCPP_3.2)(64bit) for package: lgtoclnt
--&gt Processing Dependency: libstdc++.so.5(GLIBCPP_3.2.2)(64bit) for package: lgtoclnt
--&gt Processing Dependency: libXp.so.6()(64bit) for package: lgtoclnt
--&gt Processing Dependency: libstdc++.so.5()(64bit) for package: lgtoclnt
--&gt Running transaction check
---&gt Package compat-libstdc++-33.x86_64 0:3.2.3-61 set to be updated
---&gt Package libXp.x86_64 0:1.0.0-8.1.el5 set to be updated
--&gt Finished Dependency Resolution
 
Dependencies Resolved
 
===============================================================================================================================================================================================
Package                                          Arch                                Version                                      Repository                                             Size
===============================================================================================================================================================================================
Installing:
lgtoclnt                                         x86_64                              8.0.2-1                                      /lgtoclnt-8.0.2-1.x86_64                              185 M
Installing for dependencies:
compat-libstdc++-33                              x86_64                              3.2.3-61                                     base                                                  227 k
libXp                                            x86_64                              1.0.0-8.1.el5                                base                                                   23 k
 
Transaction Summary
===============================================================================================================================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)
 
Total size: 185 M
Is this ok [y/N]: y
Downloading Packages:
 
 
Package lgtoclnt-8.0.2-1.x86_64.rpm is not signed

解決方法:將/etc/yum.conf中"gpgcheck=1"這一行改為"gpgcheck=0"即可
[root@localhost linux_x86_64]# vi /etc/yum.conf
[root@localhost linux_x86_64]# yum localinstall lgtoclnt-8.0.2-1.x86_64.rpm
Loaded plugins: fastestmirror
Setting up Local Package Process
Examining lgtoclnt-8.0.2-1.x86_64.rpm: lgtoclnt-8.0.2-1.x86_64
Marking lgtoclnt-8.0.2-1.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* extras: mirrors.skyshe.cn
* updates: mirrors.skyshe.cn
base                                                                                                                                                                    | 1.1 kB     00:00   
extras                                                                                                                                                                  | 2.1 kB     00:00   
updates                                                                                                                                                                 | 1.9 kB     00:00   
Resolving Dependencies
--&gt Running transaction check
---&gt Package lgtoclnt.x86_64 0:8.0.2-1 set to be updated
--&gt Processing Dependency: libstdc++.so.5(CXXABI_1.2)(64bit) for package: lgtoclnt
--&gt Processing Dependency: libstdc++.so.5(GLIBCPP_3.2)(64bit) for package: lgtoclnt
--&gt Processing Dependency: libstdc++.so.5(GLIBCPP_3.2.2)(64bit) for package: lgtoclnt
--&gt Processing Dependency: libXp.so.6()(64bit) for package: lgtoclnt
--&gt Processing Dependency: libstdc++.so.5()(64bit) for package: lgtoclnt
--&gt Running transaction check
---&gt Package compat-libstdc++-33.x86_64 0:3.2.3-61 set to be updated
---&gt Package libXp.x86_64 0:1.0.0-8.1.el5 set to be updated
--&gt Finished Dependency Resolution
 
Dependencies Resolved
 
===============================================================================================================================================================================================
Package                                          Arch                                Version                                      Repository                                             Size
===============================================================================================================================================================================================
Installing:
lgtoclnt                                         x86_64                              8.0.2-1                                      /lgtoclnt-8.0.2-1.x86_64                              185 M
Installing for dependencies:
compat-libstdc++-33                              x86_64                              3.2.3-61                                     base                                                  227 k
libXp                                            x86_64                              1.0.0-8.1.el5                                base                                                   23 k
 
Transaction Summary
===============================================================================================================================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)
 
Total size: 185 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : compat-libstdc++-33                                                                                                                                                     1/3
  Installing     : libXp                                                                                                                                                                   2/3
  Installing     : lgtoclnt                                                                                                                                                                3/3
 
Installed:
  lgtoclnt.x86_64 0:8.0.2-1                                                                                                                                                                  
 
Dependency Installed:
  compat-libstdc++-33.x86_64 0:3.2.3-61                                                              libXp.x86_64 0:1.0.0-8.1.el5                                                           
 
Complete!

gpgchkeck= 有1和0兩個選擇,分別代表是否是否進行gpg校驗,確保下載包的完整性,是開啟,0是不開啟,一般情況可以關掉。
總結:作為一名dba有時候需要了解些作業系統的知識,否則寸步難行啊;

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12679300/viewspace-1340275/,如需轉載,請註明出處,否則將追究法律責任。

相關文章