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.

I ran apt-get purge. Since then, when I want to add a repository, I get an error. Sometimes Ubuntu shows an error and says that add-apt-repository has closed unexpectedly.

This error appears when in the Terminal:

$ sudo add-apt-repository ppa:bumblebee/stable

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 125, in <module>
    ppa_info = get_ppa_info_from_lp(user, ppa_name)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 80, in get_ppa_info_from_lp
pycurl.error: (7, "couldn't connect to host")

I'm using Ubuntu 12.04 LTS.

share|improve this question
Are you connected to the Internet when this happens? Are you using a proxy server? –  Eliah Kagan Jul 28 '12 at 17:59
Yes ,I'm connect. I'm not using any proxy. –  user79906 Jul 29 '12 at 5:27

1 Answer 1

Just now corrected this error on my pc. Open a terminal (Ctrl+Alt+T) and run:

sudo update-ca-certificates

This will fix it.

share|improve this answer
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. –  Ask Feb 6 at 7:27

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.