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

This is the error I get every time I try installing calculator lens

yash@yash-desktop:~$ sudo add-apt-repository ppa:scopes-packagers/ppa
[sudo] password for yash: 
Sorry, try again.
[sudo] password for yash: 
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 128, in <module>
    ppa_info = get_ppa_info_from_lp(user, ppa_name)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/", line 84, in get_ppa_info_from_lp
pycurl.error: (35, 'gnutls_handshake() failed: A TLS packet with unexpected length was received.')

How to resolve this?

share|improve this question
Where did you find that ppa? This "A TLS packet with unexpected length was received." on google seems to show up when older PPA's are used in newer Ubuntu versions. Same:… – Rinzwind Dec 16 '13 at 19:52
Are you referring to this? It is from 2011, so could be for versions old as Ubuntu 10... – Wilf Dec 16 '13 at 21:42
It appears to to have been solved for 13.04 here - It may add other scopes as well - But if it works for you I'll add a copy as an answer... :-) – Wilf Dec 16 '13 at 21:43

You can try installing smart scopes (from 13.10). Here's how:

First, you want to add the repository. Open a terminal window (Ctrl+Alt+T). Copy/Paste, or type:

sudo add-apt-repository ppa:ubuntu-unity/experimental-certified

Then update...

sudo apt-get update

Last, upgrade the scopes already installed, and install a bunch of new ones.

sudo apt-get dist-upgrade

NOTE::"for the last command above, make sure no packages are removed except for the unity-lens-shopping. If the command tries to remove more packages, it means something is broken on your system and you need to fix it so do not proceed with the installation!"

So the system doesn't overwrite the newly installed scopes if 13.04 gets new scopes, type:

sudo apt-get install ubuntu-unity-experimental-certified


sudo apt-get upgrade

... and you're done.

When you search in Dash, you'll have a bunch of new scopes, calculator being one of them. You may have to click Filter results on the right and activate calculator.

'Borrowed' from here

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.