Linux Study之yum install错误

本文发布时间: 2019-Mar-22
Linux Study之--yum install错误系统环境:Oracle Linux5.4 在通过yum安装软件时出现以下错误:1、yum配置文件[[email protected]]#catyum.repo[base]name=Oraclelinuxbaseurl=file:///media/Serverenable=1gpcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora2、安装故障[[email protected] yum.repos.d]# yum install -y unix*Loadedplugins:securitybase|1.1kB00:00base/primary|795kB00:00base2278/2278SettingupInstallProcessPackageunix2dos-2.2-26.2.3.el5.i386alreadyinstalledandlatestversionResolvingDependencies-->Runningtransactioncheck--->PackageunixODBC.i3860:2.2.11-7.1settobeupdated--->PackageunixODBC-devel.i3860:2.2.11-7.1settobeupdated--->PackageunixODBC-kde.i3860:2.2.11-7.1settobeupdated-->FinishedDependencyResolutionDependenciesResolved======================================================================================================================================PackageArchVersionRepositorySize======================================================================================================================================Installing:unixODBCi3862.2.11-7.1base830kunixODBC-develi3862.2.11-7.1base743kunixODBC-kdei3862.2.11-7.1base560kTransactionSummary======================================================================================================================================Install3Package(s)Update0Package(s)Remove0Package(s)Totaldownloadsize:2.1MDownloadingPackages:--------------------------------------------------------------------------------------------------------------------------------------Total1.0GB/s|2.1MB00:00错误提示:warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159base/gpgkey | 1.5 kB 00:00 Public key for unixODBC-kde-2.2.11-7.1.i386.rpm is not installed--安装失败!3、解决方法从 RPM 版本 4.1 开始,在安装或升级软件包时会检查软件包的签名。如果签名校验失败,你就会看到如下所示的错误消息:error: V3 DSA signature: BAD, key ID 0352860f如果它是新的、只针对文件头的签名,你会看到如下所示的错误消息:error: Header V3 DSA signature: BAD, key ID 0352860f如果你没有安装合适的钥匙来校验签名,消息中就会包含 NOKEY ,如:warning: V3 DSA signature: NOKEY, key ID 0352860f在CentOS下有的时候用yum安装软件的时候最后会提示:warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID*****这是由于yum安装了旧版本的GPG keys造成的,解决办法就是#rpm --import /etc/pki/rpm-gpg/RPM*[[email protected] yum.repos.d]# rpm --import /etc/pki/rpm-gpg/RPM*4、重新安装[[email protected] yum.repos.d]# yum install -y unix*Loadedplugins:securitySettingupInstallProcessPackageunix2dos-2.2-26.2.3.el5.i386alreadyinstalledandlatestversionResolvingDependencies-->Runningtransactioncheck--->PackageunixODBC.i3860:2.2.11-7.1settobeupdated--->PackageunixODBC-devel.i3860:2.2.11-7.1settobeupdated--->PackageunixODBC-kde.i3860:2.2.11-7.1settobeupdated-->FinishedDependencyResolutionDependenciesResolved======================================================================================================================================PackageArchVersionRepositorySize======================================================================================================================================Installing:unixODBCi3862.2.11-7.1base830kunixODBC-develi3862.2.11-7.1base743kunixODBC-kdei3862.2.11-7.1base560kTransactionSummary======================================================================================================================================Install3Package(s)Update0Package(s)Remove0Package(s)Totaldownloadsize:2.1MDownloadingPackages:--------------------------------------------------------------------------------------------------------------------------------------Total1.2GB/s|2.1MB00:00Runningrpm_check_debugRunningTransactionTestFinishedTransactionTestTransactionTestSucceededRunningTransactionInstalling:unixODBC1/3Installing:unixODBC-kde2/3Installing:unixODBC-devel3/3Installed:unixODBC.i3860:2.2.11-7.1unixODBC-devel.i3860:2.2.11-7.1unixODBC-kde.i3860:2.2.11-7.1Complete!--至此,软件包安装成功!


(以上内容不代表本站观点。)
---------------------------------
本网站以及域名有仲裁协议。
本網站以及域名有仲裁協議。

2019-May-25 12:56pm
栏目列表