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 
5/5 - (11 votes)
Tri Wahyudi

Recent Posts

Cara Secure Partisi /tmp di WHM/Cpanel

cPanel & WHM juga menawarkan skrip bawaan yang memaksimalkan keamanan partisi /tmp. Hal ini dilakukan…

1 month ago

mengatasi error ImunifyAV has not detected any compatible hosting panel as well as integration.conf file to run the installation without a panel di cyberpanel

berikut adalah cara mengatasi error ImunifyAV has not detected any compatible hosting panel as well…

3 months ago

Update URL Repository Centos 7 Setelah End Of Life (EOL) 2024-07-01

CentOS 7 tidak akan mendapatkan pembaruan apa pun setelah Juni 2024. Selain itu, mirrorlist.centos.org tidak…

3 months ago

Mengatasi error gmysql Connection failed: Unable to connect to database pada pdns Cyberpanel

DNS di server cyberpanel tidak mau bekerja, di cek pada error log keluar pesan seperti…

3 months ago

Mengatasi Access denied for user ‘cyberpanel’@’localhost’ (using password: YES) saat upgrade cyberpanel

saat upgrade cyberpanel, keluar pesan error seperti berikut: django.db.utils.OperationalError: (1045, "Access denied for user 'cyberpanel'@'localhost'…

3 months ago

Cara Restart CyberPanel Lewat SSH

Untuk melakukan restart cyberpanel lewat SSH silahkan jalankan perintah berikut: systemctl restart lscpd

3 months ago