Last active
January 5, 2016 10:07
-
-
Save martijnvermaat/744dde0fa70df0ebf44a to your computer and use it in GitHub Desktop.
Fix curl/gnutls SSLv3 on Ubuntu 14.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fix curl/gnutls SSLv3 on Ubuntu 14.04 | |
# | |
# The curl version on Ubuntu 14.04 Trusty Tahr has a bug (through gnutls) in | |
# its SSLv3 support. This also affects git. | |
# | |
# http://sourceforge.net/p/curl/bugs/1319/ | |
# | |
# This downgrades curl to 7.32 (from Ubuntu 13.12), which does not have the | |
# bug. It also uninstalls the landscape-client and python-pycurl packages | |
# which depend on the original version of curl. | |
set -o nounset | |
set -o errexit | |
set -o pipefail | |
cd "$(mktemp -d)" | |
wget "http://nl.archive.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.32.0-1ubuntu1.4_amd64.deb" | |
wget "http://nl.archive.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3_7.32.0-1ubuntu1.4_amd64.deb" | |
wget "http://nl.archive.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3-gnutls_7.32.0-1ubuntu1.4_amd64.deb" | |
sudo apt-get remove -y landscape-client python-pycurl | |
sudo dpkg -i *.deb |
Keep in mind that this is just a quick fix and you are missing out on any security updates for curl that might have been uploaded since curl 7.32.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this