cURL and wget Issues on Ubuntu 16.04 – SSL: TLSV1_ALERT_PROTOCOL_VERSION
cURL and wget Issues on Ubuntu 16.04
When using wget or curl to make HTTP requests from a no longer supported installation of Ubuntu 16.04 Xenial, if you get any of the following errors:
curl gnutls_handshake() failed: Error in protocol version curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version /home/mohan/mesg [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:727)
The solution is to add SavOS Rob Savoury PPAs to get updated curl and wget packages:
sudo add-apt-repository ppa:savoury1/build-tools sudo add-apt-repository ppa:savoury1/backports sudo add-apt-repository ppa:savoury1/python sudo add-apt-repository ppa:savoury1/encryption sudo add-apt-repository ppa:savoury1/curl34 sudo apt-get update && sudo apt-get upgrade sudo apt-get install wget curl python2.7
Rent dedicated game servers from Chicago, Kansas City, Dallas Texas, Wilkes-Barre Pennsylvania, Arizona, Denver Colorado, California, Florida, and Sofia Bulgaria starting as low as $7.45 a month. We Be HostiN (https://webehostin.com)
Tags: 16.04, curl, get, hello, server, ssl, ssl23, ubuntu, wget, xenial