cURL and wget Issues on Ubuntu 16.04 – SSL: TLSV1_ALERT_PROTOCOL_VERSION
Monday, December 5th, 2022cURL 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