0

当我尝试使用命令更新时sudo yum update,出现错误:

Error: Package: python2-urllib3-1.22-2.el7.noarch (ol7_developer)
           Requires: python-pysocks

所以当我尝试安装时,python2-urllib3-1.22-2.el7.noarch.rpm我得到了错误:

Error: Package: python2-urllib3-1.22-2.el7.noarch (/python2-urllib3-1.22-2.el7.noarch)
           Requires: python-pysocks

然后我尝试下载包https://download-ib01.fedoraproject.org/pub/epel/7/SRPMS/Packages/p/python-pysocks-1.6.8-7.el7.src.rpm但是当我尝试安装:sudo yum install /home/<USER>/python-pysocks-1.6.8-7.el7.src.rpm我收到错误:

Cannot add package /home/bigdata/python-pysocks-1.6.8-7.el7.src.rpm to transaction. Not a compatible architecture: src

我该如何纠正?我应该在哪里下载这个包?

4

1 回答 1

1

python2-pysocks 位于 yum.oracle.com 上的 EPEL 存储库中。

尝试:

sudo yum install oracle-epel-release-el7
sudo yum update
于 2020-09-04T16:10:23.433 回答