I have the same problem too. It seems that using apt-add-repository with -y option could avoid the error. Thus I guess it's related to keyboard input disturbing pycurl.
I have the same problem too. It seems that using apt-add-repository with -y option could avoid the error. Thus I guess it's related to keyboard input disturbing pycurl.