On Thu, Feb 16, 2012 at 5:07 PM, Dechesne, Nicolas <n-deche...@ti.com> wrote:
>
>
> On Thu, Feb 16, 2012 at 10:32 AM, Amit <amit....@tieto.com> wrote:
>>
>> gpg: directory `/home/bagggami/.gnupg' created
>> gpg: new configuration file `/home/bagggami/.gnupg/gpg.conf' created
>> gpg: WARNING: options in `/home/bagggami/.gnupg/gpg.conf' are not yet
>> active during this run
>> gpg: keyring `/home/bagggami/.gnupg/secring.gpg' created
>> gpg: keyring `/home/bagggami/.gnupg/pubring.gpg' created
>> gpg: requesting key 7BE1F97B from hkp server keyserver.ubuntu.com
>> gpgkeys: HTTP fetch error 7: couldn't connect to host
>> gpg: no valid OpenPGP data found.
>> gpg: Total number processed: 0
>>
>> Can you tell me whats going wrong here.
>
>
> looks like you might be behind a corporate firewall, and 'sudo' is not
> passing the env variables properly.
>
> the reliable way I usually do it is:
>
> $ sudo su -
> $ export http_proxy='XXX'
> $ export https_proxy='XXX'
> $ add-apt-repository ppa:xxx

You should set the proxy for apt via /etc/apt.conf or /etc/apt/apt.conf.d/

The line you need is:

Acquire::HTTP::Proxy "http://.../";;

>
> that should work with sudo -E as well, but I didn't try that.
>
> _______________________________________________
> linaro-dev mailing list
> linaro-dev@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-dev
>

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to