linux-Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64 [Couldn't open file /e tc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64]

在安装Python3-pip 的时候遇到

[root@localhost rpm-gpg]# yum install python3-pip
Fedora 31 - x86_64 - Updates - aliyun 382 kB/s | 8.1 kB 00:00
Fedora 31 - x86_64 - aliyun 472 kB/s | 6.1 kB 00:00
Dependencies resolved.
==========================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================
Installing:
python3-pip noarch 19.1.1-7.fc31 updates 1.6 M
Installing weak dependencies:
libxcrypt-compat x86_64 4.4.10-1.fc31 fedora 100 k

Transaction Summary
==========================================================================================================================
Install 2 Packages

Total download size: 1.7 M
Installed size: 7.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): libxcrypt-compat-4.4.10-1.fc31.x86_64.rpm 340 kB/s | 100 kB 00:00
(2/2): python3-pip-19.1.1-7.fc31.noarch.rpm 2.1 MB/s | 1.6 MB 00:00
--------------------------------------------------------------------------------------------------------------------------
Total 2.2 MB/s | 1.7 MB 00:00
warning: /var/cache/dnf/updates-d1e8ff90ae0cb6fb/packages/python3-pip-19.1.1-7.fc31.noarch.rpm: Header V3 RSA/SHA256 Signa ture, key ID 3c3359c4: NOKEY
Fedora 31 - x86_64 - Updates - aliyun 0.0 B/s | 0 B 00:00
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64 [Couldn't open file /e tc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

-->[root@localhost rpm-gpg]# rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-31-x86_64

问题解决啦

[root@localhost rpm-gpg]# yum install python3-pip
Fedora 31 - x86_64 - Updates - aliyun 347 kB/s | 8.1 kB 00:00
Fedora 31 - x86_64 - aliyun 366 kB/s | 6.1 kB 00:00
Dependencies resolved.
==========================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================
Installing:
python3-pip noarch 19.1.1-7.fc31 updates 1.6 M
Installing weak dependencies:
libxcrypt-compat x86_64 4.4.10-1.fc31 fedora 100 k

Transaction Summary
==========================================================================================================================
Install 2 Packages

Total size: 1.7 M
Installed size: 7.8 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] python3-pip-19.1.1-7.fc31.noarch.rpm: Already downloaded
[SKIPPED] libxcrypt-compat-4.4.10-1.fc31.x86_64.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libxcrypt-compat-4.4.10-1.fc31.x86_64 1/2
Installing : python3-pip-19.1.1-7.fc31.noarch 2/2
Running scriptlet: python3-pip-19.1.1-7.fc31.noarch 2/2
Verifying : python3-pip-19.1.1-7.fc31.noarch 1/2
Verifying : libxcrypt-compat-4.4.10-1.fc31.x86_64 2/2

Installed:
python3-pip-19.1.1-7.fc31.noarch libxcrypt-compat-4.4.10-1.fc31.x86_64

Complete!

扫描二维码关注公众号,回复: 11139863 查看本文章

猜你喜欢

转载自www.cnblogs.com/clairedandan/p/12788718.html