2

Possible Duplicate:
I can't add PPA repositories!

When I typed this command in the terminal:

sudo add-apt-repository ppa:noobslab/icons

I got the following error. Please help.

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")
Tanmay
  • 21

3 Answers3

0

The output says "couldn't connect to host". Try making sure that you are connected to the internet and can reach the ppa server. You can also add the following line to /etc/apt/sources.list: deb http://ppa.launchpad.net/noobslab/icons/ubuntu YOUR_UBUNTU_VERSION_HERE main

  • For example: deb http://ppa.launchpad.net/eugenesan/java/ubuntu precise main –  Oct 17 '13 at 02:37
0

Enter the following:

sudo update-ca-certificates

This will fix the issue

Ramzi Njeim
  • 185
  • 1
  • 1
  • 11
0

You can still add PPA through Synaptic Package Manager.

  1. Open Synaptic Package Manager.

    Step-1

  2. Go to Settings > Repositories > Other Software > Add

    Step-2

  3. Now add the PPA

    Step 3

  4. Reload to apply changes.

ignite
  • 8,936