Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 88, in <module>
    ppa_info = get_ppa_info_from_lp(user, ppa_name)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/", line 83, in get_ppa_info_from_lp
pycurl.error: (35, 'gnutls_handshake() failed: A TLS packet with unexpected length was received.')

Can anyone tell me what is to be done?

share|improve this question

Your command opens an encrypted connection to the host. The protocol used is TLS (also known as SSL). The program GnuTLS expected a packet with special properties. Those expectations were not met and so it spelled out this error message.

Usually this is caused by some network error. When you start the program again, the error message disappears. If not, you should check your network. Maybe some device interrupts TLS packets.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.