when i tried to use "sudo add-apt-repository ppa:XXX/XXX", it gives an error something like"...SSL connection timeout..."

Asked by Max Chu

max@max-GA-MA770T-UD3P:~$ sudo add-apt-repository ppa:chromium-daily/stable
[sudo] password for max:
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: (28, 'SSL connection timeout at 299145')
max@max-GA-MA770T-UD3P:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

If you are in a network with proxy please try:

http://www.webupd8.org/2010/10/how-to-set-proxy-for-terminal-quick.html

Then try:

sudo -E add-apt-repository ppa:chromium-daily/stable

Revision history for this message
Max Chu (chu-shekwai) said :
#2

U mean i have to unset a proxy?
unset http_proxy
unset https_proxy

Revision history for this message
Max Chu (chu-shekwai) said :
#3

I have tried different proxy like below
export http_proxy='http://XXX:XXX'
export https_proxy='http://XXX:XXX'

It still doesn't work...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

What is the output of:

lsb_release -a; uname -a

Thanks

Revision history for this message
Max Chu (chu-shekwai) said :
#5

max@max-GA-MA770T-UD3P:~$ lsb_release -a; uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
Linux max-GA-MA770T-UD3P 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
max@max-GA-MA770T-UD3P:~$

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#6

Try:

sudo apt-get --reinstall install software-properties-common

Revision history for this message
Max Chu (chu-shekwai) said :
#7

Thanks actionparsnip, that solved my question.

Revision history for this message
Max Chu (chu-shekwai) said :
#8

wow! actionparsnip! It works! Thanks~

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Sweet, looks like the add-apt-repository binary just needed reinstalling :)