Linux Study--yum Install error

Source: Internet
Author: User
Tags gpg

Linux Study--yum Install error

System environment: Oracle Linux5.4

The following error occurred while installing the software through Yum:

1. Yum configuration file

[email protected] yum.repos.d]# cat Yum.repo [base]name=oracle linux baseurl=file:///media/serverenable=1gpcheck= 0gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-fedora

2. Installation failure

[email protected] yum.repos.d]# Yum install-y unix*

loaded plugins: securitybase                                                                                                    | 1.1 kB      00:00     base/primary                                                                                            | 795 kB     00:00     base                                                                                                                               2278/2278setting up install processpackage  unix2dos-2.2-26.2.3.el5.i386 already installed and latest versionresolving  Dependencies--> running transaction check---> Package unixODBC.i386  0:2.2.11-7.1 set to be updated---> Package unixODBC-devel.i386  0:2.2.11-7.1 set to be updated---> Package unixODBC-kde.i386  0:2.2.11-7.1 set to be updated--> finished dependency  resolutiondependencies resolved========================================================================== ============================================================ package                                arch      &Nbsp;                version                               Repository                   size============================ ==========================================================================================================installing : unixodbc                              i386                         2.2.11-7.1                           base                        830 k unixodbc-devel                         i386                        2.2.11-7.1                            base                        743 k unixODBC-kde                           i386                        2.2.11-7.1                           base                         560 ktransaction summary====================================================================== ================================================================install      3  package (s)          Update        0 package (s)          Remove        0 package (s)          Total  Download size: 2.1 mdOwnloading packages:------------------------------------------------------------------------------------- -------------------------------------------------total                                                                                                      1.0 gb/s  | 2.1 mb     00:00

error message:  

Warning:rpmts_HdrFromFdno:Header V3 DSA Signature:nokey, key ID 1e5e0159

Base/gpgkey | 1.5 KB 00:00

Public key for unixodbc-kde-2.2.11-7.1.i386.rpm are not installed


--Installation Failed!


3. Solution

starting with RPM version 4.1, the software package signature is checked when the package is installed or upgraded. If the signature check fails, you will see the following
the error message:
error:v3 DSA Signature:bad, key ID 0352860f
if it is a new, file-only signature for the header, you will see an error message that looks like this:
error:header V3 DSA Signature:bad, key ID 0352860f
If you do not have the appropriate keys installed to verify your signature, the message will contain nokey, such as:
warning:v3 DSA Signature:nokey, key ID 0352860f
There are times when installing the software with Yum under CentOS, you'll end up with a hint:
warning:rpmts_HdrFromFdno:Header V3 DSA signature:nokey, key id*****
this is due to yum installing the old version of the GPG keys, the solution is
#rpm--import/etc/pki/rpm-gpg/rpm*

[Email protected] yum.repos.d]# rpm--import/etc/pki/rpm-gpg/rpm*


4. Re-install

[email protected] yum.repos.d]# Yum install-y unix*

loaded plugins: securitysetting up install processpackage  unix2dos-2.2-26.2.3.el5.i386 already installed and latest versionresolving  Dependencies--> running transaction check---> Package unixODBC.i386  0:2.2.11-7.1 set to be updated---> Package unixODBC-devel.i386  0:2.2.11-7.1 set to be updated---> Package unixODBC-kde.i386  0:2.2.11-7.1 set to be updated--> finished dependency  resolutiondependencies resolved========================================================================== ============================================================ package                                arch                       version                               Repository                   size================================== ====================================================================================================installing:  unixODBC                              i386                         2.2.11-7.1                           base                        830 k unixODBC-devel                         i386                        2.2.11-7.1                            base                        743 k unixODBC-kde                           i386                        2.2.11-7.1                           base                         560 ktransaction summary============================================================================ ==========================================================install      3  Package (s)          Update        0 package (s)          Remove        0 package (s)          total download  size: 2.1 mdownloadIng packages:-------------------------------------------------------------------------------------------- ------------------------------------------total                                                                                                      1.2 gb/s |  2.1 mb     00:00     running rpm_check_ debugrunning transaction testfinished transaction testtransaction test  Succeededrunning transaction  installing     : unixodbc                                                                                                             1/3   Installing     :  unixodbc-kde                                                                                                        2/3   Installing     :  unixodbc-devel                                                                                                      3/3 installed:  unixodbc.i386 0:2.2.11-7.1                unixODBC-devel.i386 0:2.2.11-7.1                unixODBC-kde.i386  0:2.2.11-7.1              complete!

--At this point, the package was successfully installed!



This article is from the "Tianya blog," Please make sure to keep this source http://tiany.blog.51cto.com/513694/1617105

Linux Study--yum Install error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.