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

General support questions
Post Reply
alexus
Posts: 19
Joined: 2014/10/31 16:17:07

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

Post by alexus » 2018/05/25 14:37:08

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

User avatar
TrevorH
Forum Moderator
Posts: 23021
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2018/05/26 07:06:43

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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

mghe
Posts: 696
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

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

Post by mghe » 2018/05/26 11:32:56

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.

User avatar
TrevorH
Forum Moderator
Posts: 23021
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2018/05/26 11:38:46

No, this is a problem and it's not down to the package. I updated from the same version to this one without error.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
toracat
Forum Moderator
Posts: 7284
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

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

Post by toracat » 2018/05/26 14:51:51

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.
CentOS Forum FAQ

User avatar
toracat
Forum Moderator
Posts: 7284
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

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

Post by toracat » 2018/05/26 15:13:03

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)
CentOS Forum FAQ

Post Reply