安装软件包的时候报错如下:
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
--> Running transaction check
---> Package lgtoclnt.x86_64 0:8.0.2-1 set to be updated
--> Processing Dependency: libstdc++.so.5(CXXABI_1.2)(64bit) for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5(GLIBCPP_3.2)(64bit) for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5(GLIBCPP_3.2.2)(64bit) for package: lgtoclnt
--> Processing Dependency: libXp.so.6()(64bit) for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5()(64bit) for package: lgtoclnt
--> Running transaction check
---> Package compat-libstdc++-33.x86_64 0:3.2.3-61 set to be updated
---> Package libXp.x86_64 0:1.0.0-8.1.el5 set to be updated
--> 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
--> Running transaction check
---> Package lgtoclnt.x86_64 0:8.0.2-1 set to be updated
--> Processing Dependency: libstdc++.so.5(CXXABI_1.2)(64bit) for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5(GLIBCPP_3.2)(64bit) for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5(GLIBCPP_3.2.2)(64bit) for package: lgtoclnt
--> Processing Dependency: libXp.so.6()(64bit) for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5()(64bit) for package: lgtoclnt
--> Running transaction check
---> Package compat-libstdc++-33.x86_64 0:3.2.3-61 set to be updated
---> Package libXp.x86_64 0:1.0.0-8.1.el5 set to be updated
--> 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有时候需要了解些操作系统的知识,否则寸步难行啊;