Page 1 of 1

Error unpacking rpm package python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch

Posted: 2018/05/25 14:37:08
by alexus
My environment:

Code: Select all

[alexus@wcmisdlin02 ~]$ cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 
[alexus@wcmisdlin02 ~]$ uname -a
Linux wcmisdlin02.uftwf.local 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[alexus@wcmisdlin02 ~]$ 
I'm trying to apply update and getting following error

Code: Select all

[alexus@wcmisdlin02 ~]$ sudo yum update --assumeyes --skip-broken
[sudo] password for alexus: 
Loaded plugins: fastestmirror, langpacks, nvidia, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
 * base: mirrors.greenmountainaccess.net
 * elrepo: ftp.cc.uoc.gr
 * epel: mirrors.syringanetworks.net
 * extras: mirror.siena.edu
 * nux-dextop: mirror.li.nux.ro
 * updates: mirrors.lga7.us.voxel.net
Resolving Dependencies
--> Running transaction check
---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 will be updated
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================
 Package                                      Arch            Version                Repository     Size
=========================================================================================================
Updating:
 python-backports-ssl_match_hostname          noarch          3.5.0.1-1.el7          base           13 k

Transaction Summary
=========================================================================================================
Upgrade  1 Package

Total download size: 13 k
Downloading packages:
No Presto metadata available for base
python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm                      |  13 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch                              1/2 
Error unpacking rpm package python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1-py2.7.egg-info: cpio: rename
  Verifying  : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch                              1/2 
python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch was supposed to be removed but is not!
  Verifying  : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch                              2/2 

Failed:
  python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7                                             
  python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7                                             

Complete!
[alexus@wcmisdlin02 ~]$ 
Please advise

Re: Error unpacking rpm package python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch

Posted: 2018/05/26 07:06:43
by TrevorH
error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1-py2.7.egg-info: cpio: rename
That should be a file not a directory, If it is a directory then rename or remove it. If it is a file then check that someone has not made it immutable using chattr - use lsattr to check. If it is immutable then remove that bit.

Re: Error unpacking rpm package python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch

Posted: 2018/05/26 11:32:56
by mghe
I had same problem, and this isn't Linux file attribute.

It is wired, in past during bundle of some packages updates wasn't problem with update this packages, but now it back.

It is start after update CentOS 7.5 from CR repo.

Re: Error unpacking rpm package python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch

Posted: 2018/05/26 11:38:46
by TrevorH
No, this is a problem and it's not down to the package. I updated from the same version to this one without error.

Re: Error unpacking rpm package python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch

Posted: 2018/05/26 14:51:51
by toracat
A problem seemingly related to the issue was reported by a Scientific Linux user here. The reporter solved it by removing ssl_match_hostname*. How it happened is unknown.

Re: Error unpacking rpm package python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch

Posted: 2018/05/26 15:13:03
by toracat
This is a known issue. See this RH users' discussion thread:

https://access.redhat.com/discussions/3 ... nt-1300851

and a solution article:

https://access.redhat.com/solutions/3440171
(basically saying the same thing as in the discussion post: issues with python backports files)