M2Crypto.SSL.SSLError: tlsv1 alert protocol version

The error can be solved by removing existing yum repository files. Take a backup of the repos files to a backup directory

[root@192 ahf]# cp /etc/yum.repos.d/* /yumrepo/
[root@192 ahf]# rm -rf /etc/yum.repos.d/* 

Clean up using yum

[root@192 ahf]# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything

Try executing yum now, it works

[root@192 ahf]# yum install net-snmp-utils-5.7.2-43.el7.x86_64.rpm -y
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
You can use up2date --register to register.
ULN support will be disabled.
Setting up Install Process
No package net-snmp-utils-5.7.2-43.el7.x86_64.rpm available.
Nothing to do

Leave a Reply