码迷,mamicode.com
首页 > Web开发 > 详细

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]

时间:2020-04-27 19:46:53      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:loading   lin   fedora   安装python   his   etc   rip   tle   span   

在安装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!

 

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]

标签:loading   lin   fedora   安装python   his   etc   rip   tle   span   

原文地址:https://www.cnblogs.com/clairedandan/p/12788718.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!