zoukankan      html  css  js  c++  java
  • 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!

  • 相关阅读:
    爬取博客园有关爬虫的文章
    小只爬虫的相关思路
    fiddler显示出服务器IP方法
    在测试时用到的一些mysql的小技巧(持续更新)
    把python脚本打包成win可执行文件
    关于SQL中的ROWNUM问题
    关于C#的DataGridView设置了DataSource后Rows无值问题
    微信小程序wx.request的简单封装
    ASP.NET进行请求转发
    微信小程序设置滚动条
  • 原文地址:https://www.cnblogs.com/clairedandan/p/12788718.html
Copyright © 2011-2022 走看看