Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
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/ppa.py", line 83, in get_ppa_info_from_lp
    curl.perform()
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

1 Answer 1

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

 
discard

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.