黄孝国 發表於 2020-4-27 18:28:00

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]

<p>在安装Python3-pip 的时候遇到</p>
<p># yum install python3-pip<br>Fedora 31 - x86_64 - Updates - aliyun                                                   382 kB/s | 8.1 kB   00:00<br>Fedora 31 - x86_64 - aliyun                                                               472 kB/s | 6.1 kB   00:00<br>Dependencies resolved.<br>==========================================================================================================================<br> Package                           Architecture            Version                         Repository                Size<br>==========================================================================================================================<br>Installing:<br> python3-pip                     noarch                  19.1.1-7.fc31                   updates                  1.6 M<br>Installing weak dependencies:<br> libxcrypt-compat                  x86_64                  4.4.10-1.fc31                   fedora                   100 k</p>
<p>Transaction Summary<br>==========================================================================================================================<br>Install2 Packages</p>
<p>Total download size: 1.7 M<br>Installed size: 7.8 M<br>Is this ok : y<br>Downloading Packages:<br>(1/2): libxcrypt-compat-4.4.10-1.fc31.x86_64.rpm                                          340 kB/s | 100 kB   00:00<br>(2/2): python3-pip-19.1.1-7.fc31.noarch.rpm                                             2.1 MB/s | 1.6 MB   00:00<br>--------------------------------------------------------------------------------------------------------------------------<br>Total                                                                                     2.2 MB/s | 1.7 MB   00:00<br>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<br>Fedora 31 - x86_64 - Updates - aliyun                                                   0.0B/s |   0B   00:00<br><span style="background-color: rgba(255, 0, 0, 1)"><strong>Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64 </strong></span><br>The downloaded packages were saved in cache until the next successful transaction.<br>You can remove cached packages by executing 'dnf clean packages'.<br><br><span style="background-color: rgba(153, 204, 0, 1)">--&gt;# rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-31-x86_64</span></p>
<p><span style="background-color: rgba(153, 204, 0, 1)">问题解决啦</span></p>
<p># yum install python3-pip<br>Fedora 31 - x86_64 - Updates - aliyun                                                   347 kB/s | 8.1 kB   00:00<br>Fedora 31 - x86_64 - aliyun                                                               366 kB/s | 6.1 kB   00:00<br>Dependencies resolved.<br>==========================================================================================================================<br> Package                           Architecture            Version                         Repository                Size<br>==========================================================================================================================<br>Installing:<br> python3-pip                     noarch                  19.1.1-7.fc31                   updates                  1.6 M<br>Installing weak dependencies:<br> libxcrypt-compat                  x86_64                  4.4.10-1.fc31                   fedora                   100 k</p>
<p>Transaction Summary<br>==========================================================================================================================<br>Install2 Packages</p>
<p>Total size: 1.7 M<br>Installed size: 7.8 M<br>Is this ok : y<br>Downloading Packages:<br> python3-pip-19.1.1-7.fc31.noarch.rpm: Already downloaded<br> libxcrypt-compat-4.4.10-1.fc31.x86_64.rpm: Already downloaded<br>Running transaction check<br>Transaction check succeeded.<br>Running transaction test<br>Transaction test succeeded.<br>Running transaction<br>Preparing      :                                                                                                1/1<br>Installing       : libxcrypt-compat-4.4.10-1.fc31.x86_64                                                            1/2<br>Installing       : python3-pip-19.1.1-7.fc31.noarch                                                               2/2<br>Running scriptlet: python3-pip-19.1.1-7.fc31.noarch                                                               2/2<br>Verifying      : python3-pip-19.1.1-7.fc31.noarch                                                               1/2<br>Verifying      : libxcrypt-compat-4.4.10-1.fc31.x86_64                                                            2/2</p>
<p>Installed:<br>python3-pip-19.1.1-7.fc31.noarch                        libxcrypt-compat-4.4.10-1.fc31.x86_64</p>
<p>Complete!</p>
<p>&nbsp;</p>

</div>
<div id="MySignature" role="contentinfo">
    每天进步一点点~~<br><br>
来源:https://www.cnblogs.com/clairedandan/p/12788718.html
頁: [1]
查看完整版本: 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]