安装 Oracle Database 11g 第 2 版 (11.2.0.1.0) 时出现 RPM-GPG-KEY 错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37295795/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 03:14:26  来源:igfitidea点击:

RPM-GPG-KEY Error While Installing Oracle Database 11g Release 2 (11.2.0.1.0)

databaseoracleoracle11gcentos7oracle11gr2

提问by Shyam Bhimani

I am Trying to install Oracle Database 11gr2 in CENTOS 7.For installation process I am following this procedure https://oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-oracle-linux-7

我正在尝试在 CENTOS 7 中安装 Oracle 数据库 11gr2。对于安装过程,我遵循此过程https://oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-oracle-linux-7

After downloading and unzipping both the package from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.htmlI am running below command to start installing.

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html下载并解压两个包后,我正在运行以下命令开始安装。

yum install oracle-rdbms-server-11gR2-preinstall

after processing for few moment I am getting below error.

处理片刻后,我得到以下错误。

warning: /var/cache/yum/x86_64/7/ol7_UEKR3/packages/kernel-uek-firmware-3.8.13-118.6.1.el7uek.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle"

警告:/var/cache/yum/x86_64/7/ol7_UEKR3/packages/kernel-uek-firmware-3.8.13-118.6.1.el7uek.noarch.rpm:Header V3 RSA/SHA256 Signature,key ID ec551f03:NOKEY Retrieving来自文件的密钥:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

GPG 密钥检索失败:[Errno 14] curl#37 - “无法打开文件 /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle”

How can I resolve above error and proceed to next step of installation?

如何解决上述错误并继续下一步安装?

回答by Martin Schapendonk

Your system can not verify the GPG-signature of the package because you don't have the corresponding public key. If you trust the package source, you can use:

您的系统无法验证包的 GPG 签名,因为您没有相应的公钥。如果您信任包源,则可以使用:

yum install --nogpgcheck oracle-rdbms-server-11gR2-preinstall