Cara mengatasi Failed: python-urllib3.noarch di centos 7
saat menjalankan perintah yum kadang akan mengalami error seperti berikut:
[root@xxx ~]# yum update Loaded plugins: amazon-id, rhnplugin, rhui-lb, search-disabled-repos This system is receiving updates from RHN Classic or Red Hat Satellite. runner_gitlab-runner/x86_64/signature | 836 B 00:00 runner_gitlab-runner/x86_64/signature | 1.0 kB 00:00 !!! runner_gitlab-runner-source/signature | 836 B 00:00 runner_gitlab-runner-source/signature | 951 B 00:00 !!! Resolving Dependencies --> Running transaction check ---> Package python-urllib3.noarch 0:1.10.2-5.el7 will be updated ---> Package python-urllib3.noarch 0:1.10.2-7.el7 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: python-urllib3 noarch 1.10.2-7.el7 rhui-REGION-rhel-server-releases 103 k Transaction Summary ================================================================================ Upgrade 1 Package Total download size: 103 k Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. python-urllib3-1.10.2-7.el7.noarch.rpm | 103 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : python-urllib3-1.10.2-7.el7.noarch 1/2 Error unpacking rpm package python-urllib3-1.10.2-7.el7.noarch error: 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-7.el7.noarch 1/2 python-urllib3-1.10.2-5.el7.noarch was supposed to be removed but is not! Verifying : python-urllib3-1.10.2-5.el7.noarch 2/2 Failed: python-urllib3.noarch 0:1.10.2-5.el7 python-urllib3.noarch 0:1.10.2-7.el7 Complete!
untuk mengatasinya, silahkan ikuti perintah berikut:
- Uninstall dahulu python-urllib3 dengan menjalankan perintah di bawah ini
sudo pip uninstall urllib3
- Silahkan coba Install Kembali python-urllib3 dengan menjalankan perintah di bawah ini
sudo yum install python-urllib3