[CentOS-devel] Issue with python-urllib3 update in CentOS 7 CR.

Wed Sep 4 15:00:16 UTC 2019
Trevor Hemsley <trevor.hemsley at ntlworld.com>

On 04/09/2019 15:59, Anssi Johansson wrote:
> Lamar Owen kirjoitti 4.9.2019 klo 17.44:
>> So, updated to CR yesterday evening, and for the most part things are
>> ok.  However:
>>
>> [lowen at dhcp-pool101 ~]$ sudo yum --enablerepo=cr update
>> .....
>> 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 cr         103 k
>>
>> Transaction Summary
>> ================================================================================
>>
>> Upgrade  1 Package
>>
>> Total download size: 103 k
>> Is this ok [y/d/N]: y
>> Downloading packages:
>> No Presto metadata available for cr
>> 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
>
> I think this may be a local problem. What does "rpm -V python-urllib3"
> say?


I agree. You should currently see this

$ ls -la
/usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname
lrwxrwxrwx. 1 root root 34 Aug 23 22:49
/usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname ->
../../backports/ssl_match_hostname

and if you don't then the existing setup is wrong.

Trevor