千家信息网

linux中error: unpacking of archive failed on file /usr/lib/python2.7如何处理

发表于:2025-01-26 作者:千家信息网编辑
千家信息网最后更新 2025年01月26日,这篇文章主要介绍linux中error: unpacking of archive failed on file /usr/lib/python2.7如何处理,文中介绍的非常详细,具有一定的参考价值,
千家信息网最后更新 2025年01月26日linux中error: unpacking of archive failed on file /usr/lib/python2.7如何处理

这篇文章主要介绍linux中error: unpacking of archive failed on file /usr/lib/python2.7如何处理,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

错误日志

python-urllib3-1.10.2-3.el7.noarch.rpm | 101 kB 00:00:0Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : python-urllib3-1.10.2-3.el7.noarch Error unpacking rpm package python-urllib3-1.10.2-3.el7.noarcherror: unpacking of archive failed on file /usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname: cpio: rename Verifying : python-urllib3-1.10.2-3.el7.noarchFailed: python-urllib3.noarch 0:1.10.2-3.el7Complete!

解决方法

PIP已经安装了对应的版本包,此时yum安装的rpm包与pip里的冲突,先把pip里的包卸载掉再用yum 重新安装

[root@compute01 home]# pip freeze|grep urllib3You are using pip version 9.0.1, however version 10.0.1 is available.You should consider upgrading via the 'pip install --upgrade pip' command.urllib3==1.22[root@compute01 home]# pip uninstall urllib3[root@compute01 home]# yum install python-urllib3

以上是"linux中error: unpacking of archive failed on file /usr/lib/python2.7如何处理"这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!

0