I've just stumbled upon this bug report searching for the evil pycurl.error: (35, 'gnutls_handshake() failed: GnuTLS internal error.')
I found a solution by telling cURL what version of SSL to use: connection.setopt(pycurl.SSLVERSION, pycurl.SSLVERSION_SSLv3) This is where I found this gem: http://diybetfairbots.lefora.com/2010/03/08/tls-handshake-problem-with- pycurl/#post4 Hope that helps, Guy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926548 Title: add-apt-repository fails with gnutls_handshake error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pycurl/+bug/926548/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs