yum 安装时出现 Couldn t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

Downloading packages:
warning: /var/cache/yum/x86_64/7/ol7_latest/packages/python-libs-2.7.5-88.0.1.el7.x86_64.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"

解决方法

wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

ps

csdn 上的方法好多都是相互抄的,还是google好用

你可能感兴趣的:(yum 安装时出现 Couldn t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle)