2

When I'm trying to add any ppa using "apt" I get the following error:

$ sudo add-apt-repository ppa:gnome-shell-extensions

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
    curl.perform()
pycurl.error: (7, "couldn't connect to host")

Nevertheless, apt is working fine and I can install/remove/upgrade applications, moreover curl is also OK I've already checked it... My internet connection is also fine, I can use any application using internet. I am not behind any proxies or firewalls.

Everything was working fine before I updated from Ubuntu 11.10 to 12.04.

BTW: I know i can add an entry manually, but such situation is really annoying. I've been googling for a long time but with no result :(

Any ideas? Thanks :)

ish
  • 141,990

2 Answers2

1

OK! So now, there's a brilliant explanation to all of this mess! I don't know how and why, but after installing ubuntu 12.04, gnome sets proxy to some applications using say... ftp, eg. Now, run gconf-editor and go system->proxy and remove all of the proxy entries. It should do :) I know it's stupid to answer my own question anyway maybe it'll be useful for the others :) cheers!

0

When adding a PPA with sudo add-apt-repository you need to specify the whole adr. ess. So in your case it would be sudo add-apt-repository ppa:LP-NAME/PPA-NAME.

In your example you forgot the name of the user.

slashcrack
  • 1,083