zoukankan      html  css  js  c++  java
  • yum安装报错“rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159”

    Do not forget to set gpgkey when installing the oracle-validated rpm

     
    In my previous post I had five lines added to /etc/yum.conf.

    [local]
    name="media"
    baseurl=file:///media/Enterprise%20Linux%20dvd%2020090127/Server
    enabled=1
    gpgkey=file:///media/Enterprise%20Linux%20dvd%2020090127/RPM-GPG-KEY-oracle

    The ones except gpgkey are self-explanatory. The parameter gpgkey is used to point to a file that contains the public key for the packages you install so that yum can verify the package's authenticity if needed. The file I use is the key file that contains the public key to verify the oracle-validated rpm.

    oracle-validated rpm is used to install the necessary packages for Oracle installations, it also updates the kernel parameters and creates a default oracle user. Using it is an easy way to prepare your server for Oracle installations, the other option is to check the installation prerequisites from the documentation and install the packages, update the kernel parameters and create the user yourself.

    MOS Note 579101.1 explains how to install the oracle-validated rpm.

    I tried to install this rpm without checking the note and I did not use the gpgkey parameter in /etc/yum.conf initially. This is what you get if you do not set it.


    [root@oeltest tmp]# yum install oracle-validated-1.0.0-18.el5.i386.rpm
    Install     19 Package(s)
    Update       0 Package(s)
    Remove       0 Package(s)


    Total download size: 37 M
    Is this ok [y/N]: y
    Downloading Packages:
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                            2.6 GB/s |  37 MB     00:00
    warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159

    Public key for oracle-validated-1.0.0-18.el5.i386.rpm is not installed


    The error indicates that yum cannot verify this rpm so it does not install it. When you update /etc/yum.conf with the gpgkey parameter the error goes away.
    -----------------------------------------------------------------------------------------------------
     
    http://docs.oracle.com/cd/E37670_01/E39381/html/ol_import_gpg.html

    2.4 Downloading and Importing a GPG Key

    Under some circumstances, such as when installing additional software in a virtual machine domain, you might need to download and import the GPG key to use with yum. To obtain a GPG key from the public yum repository and then import it, you can use the wget and rpm commands as shown in the following example:

    # wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    # rpm --import ./RPM-GPG-KEY-oracle-el5
    我在IBM工作,可以为大家内部推荐IBM各种职位 IBM全球职位尽在以下链接(请在浏览器中打开,QQ/微信 会阻止): http://ibmreferrals.com/ 很乐意为感兴趣的小伙伴分享:我的面试经验^_^ 如需咨询,请邮件发送以下邮箱,有问必回 1026096425@qq.com
  • 相关阅读:
    激活函数
    第五章 Odoo 12开发之导入、导出以及模块数据
    第四章 Odoo 12 开发之模块继承
    第三章 Odoo 12 开发之创建第一个 Odoo 应用
    第二章 Odoo 12开发之开发环境准备
    第一章 使用开发者模式快速入门 Odoo 12
    【linux之路】常用的命令
    【python之路46】内置函数2,是【python之路18】的补充
    【python之路45】tornado的用法 (三)
    【python之路44】tornado的用法 (二)
  • 原文地址:https://www.cnblogs.com/jackydalong/p/3522409.html
Copyright © 2011-2022 走看看