Skip to content

Instantly share code, notes, and snippets.

@martijnvermaat
Last active January 5, 2016 10:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martijnvermaat/744dde0fa70df0ebf44a to your computer and use it in GitHub Desktop.
Save martijnvermaat/744dde0fa70df0ebf44a to your computer and use it in GitHub Desktop.
Fix curl/gnutls SSLv3 on Ubuntu 14.04
#!/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
@ShonM
Copy link

ShonM commented Oct 7, 2014

Thank you for this

@martijnvermaat
Copy link
Author

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