Install problem on CentOS7

When I try installing as stated in https://certbot.eff.org/lets-encrypt/centosrhel7-nginx
I run
sudo yum install certbot python2-certbot-nginx

While installing it throws an error: Error unpacking rpm package python-urllib3-1.10.2-5.el7.noarch
error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname: cpio: rename

I even tried installing this separately…
sudo yum install python-urllib3

Running transaction
Installing : python-urllib3-1.10.2-5.el7.noarch 1/1
Error unpacking rpm package python-urllib3-1.10.2-5.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-5.el7.noarch 1/1

Failed:
python-urllib3.noarch 0:1.10.2-5.el7

Has anyone faced this problem.

Thanks
Arnab

https://bugzilla.redhat.com/show_bug.cgi?id=1187057 and
https://access.redhat.com/discussions/3411171

Google helps a lot sometimes …

The problem is Certbot requires a higher version than the one available for CentOS.
The ‘urllib3<1.23,>=1.21.1’ distribution was not found and is required by requests

According to https://pkgs.org/download/python-urllib3, the highest version CentOS supports is 1.10.2
This is the version I get when I do a yum install python-urllib3,

If I do a yum install python2-urllib3, it gives No package python2-urllib3 available.

If I do a pip install urllib3, it installs version 1.25.1

Is it possible to link this to the dependency when I try to install certbot

I believe you can either specify suitable version of the package with pip install or download the source from the releases page of https://github.com/urllib3/urllib3 and build it.

Hi @c-arnab

Perhaps use anonother client.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.