yum fails for python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
Besides the identified Dell issue 3409271 I also cannot update python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
I get as error that the older version cannot be removed.
What can I do please?
Thanks for help
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Examining python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
Marking python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm as an update to python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
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 /python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 18 k
Transaction Summary
========================================================================================================================================================================================================
Upgrade 1 Package
Total size: 18 k
Is this ok [y/d/N]: y
Downloading packages:
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!
Responses
Hi Stephane,
As far as I can see, there are conflicts between the packages from the Red Hat repositories and those from DELL and from EPEL, that you've added manually. Please check whether it works after you have set both to enabled=0
in the relevant .repo
file being located in the /etc/yum.repos.d directory, as a workaround.
Clean up everything with sudo yum clean all
and sudo rm -r /var/cache/yum
.
Afterwards run sudo yum update
- does it work properly now ? Please report back. :)
Regards,
Christian
Exactly this is the problem here, Stephane : TeamViewer 13 (the current edition is still in PREVIEW !) needs these qt5 packages as dependencies. To test if we can get around it, try if you can remove the qt5 packages and reinstall them with EPEL repo being disabled. If this causes further problems, stop the operation by declining with "N" and run yum update with the --skip-broken option. Please tell me which of those two methods worked and which not. By the way :
You're very welcome ... and I'm glad that you appreciate my efforts to help you getting your problems solved ! :)
Regards,
Christian
Here's how I was able to fix it:
# rm -rf /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.*
# yum reinstall python-backports-ssl_match_hostname
# yum update
The problem is there were file conflicts left over in the python environment. Unless you installed this with pip manually, I suspect it's a problem with the Red Hat rpm itself not cleaning up after itself.
I just ran into the same thing with some RHEL7.4->7.5 upgrades. Clearing out the site-packages and reinstalling worked for me as well. I did notice my systems were showing the 3.4.0.2 version coming from @anaconda/7.1, so it looks like that's a landmine that's been laying around for a while.
I had a similar error (details below). But the resolution in my case was 1) sudo pip uninstall urllib3 2) yum install python2-urllib3
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1187057
Error Details below: Dependencies Resolved
=============================================================================================================================================================================================
Package Arch Version Repository SizeInstalling: python2-urllib3 noarch 1.21.1-1.el7 rhel-7-server-ose-3.9-rpms 173 k
Transaction SummaryInstall 1 Package
Total download size: 173 k Installed size: 674 k Is this ok [y/d/N]: y Downloading packages: python2-urllib3-1.21.1-1.el7.noarch.rpm | 173 kB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python2-urllib3-1.21.1-1.el7.noarch 1/1 Error unpacking rpm package python2-urllib3-1.21.1-1.el7.noarch error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname: cpio: rename Verifying : python2-urllib3-1.21.1-1.el7.noarch 1/1
Failed: python2-urllib3.noarch 0:1.21.1-1.el7
Complete!