Python-backports-ssl_match_hostname package / DPI Kernel support

NethServer Version: NethServer release 7.5.1804 (final)
Module: your_module

Hi NS community,
I have updated my NS distribution to 7.5 release and I found a problem with python-backports-ssl_match_hostname package. I tried several times to install the package but every time I update the software center page it reappears.

Furthermore, it tells me that the DPI package is not available and advises to reboot the system and select the kernel that supports DPI.

NethServer release 7.5.1804 (final)
3.10.0-693.21.1.el7.x86_64

Can someone give me some suggestions?

Thanks,
Pasquale

Tested the updates without problem. Current (up to date) packages on a test system:

kernel: 3.10.0-862.3.2.el7.x86_64
python-backports-1.0-8.el7.x86_64
python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch

Do you have logs of the errors?

Check if any of these links are related to the problem: Similar issue on redhat recently, and Error unpacking rpm package python-backports-ssl_match_hostname on CentOS Forum.

2 Likes

This is the output of yum:

# yum update
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
 * base: ct.mirror.garr.it
 * epel: mirror.inode.at
 * extras: ct.mirror.garr.it
 * nethforge: mirror2.nethserver.org
 * nethserver-base: mirror2.nethserver.org
 * nethserver-updates: mirror2.nethserver.org
 * updates: ct.mirror.garr.it
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
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.r |  13 kB   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.no                                 arch
error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/back                                 ports.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 remo                                 ved 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

I confirm that the problem is that indicated in the RedHat community,
the solution should be on this page but is only accessible to users who have a subscription. :disappointed_relieved:

Try this:

rm -rf /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.*
yum reinstall python-backports-ssl_match_hostname
yum update

From here: https://access.redhat.com/discussions/3411171

You also have a CentOS thread which explain the problem: https://www.centos.org/forums/viewtopic.php?t=67196

2 Likes

yum reinstall python-backports-ssl_match_hostname did not work:

Installed package python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch (from anaconda) not available.

yum update seems to have solved:

# yum update
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
 * base: ct.mirror.garr.it
 * epel: mirror.nextlayer.at
 * extras: ct.mirror.garr.it
 * nethforge: mirror2.nethserver.org
 * nethserver-base: mirror2.nethserver.org
 * nethserver-updates: mirror2.nethserver.org
 * updates: ct.mirror.garr.it
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 size: 13 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
  Cleanup    : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch     2/2
warning: file /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg-info/top_level.txt: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg-info/dependency_links.txt: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg-info/SOURCES.txt: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg-info/PKG-INFO: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg-info: remove failed: No such file or directory
  Verifying  : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch     1/2
  Verifying  : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch     2/2

Updated:
  python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7

Complete!
1 Like