Hi Christian, I tried the alternative command, but I am getting error in that for connecting to the host. The error logs are as follows
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.
Regards, Amit Bag
On 16/02/12 12:57, Christian Robottom Reis wrote:
On Thu, Feb 16, 2012 at 12:49:21PM +0530, Amit wrote:
I am not able to install any packages related to linaro for example when I tried that below command
sudo add-apt-repository ppa:linaro-maintainers/toolchain I am getting error like Error reading https://launchpad.net/api/1.0/~linaro-maintainers/+archive/toolchain: <urlopen error [Errno 111] Connection refused>
But when I use a direct INTERNET connection without proxy its working fine.
The problem you're running into is that add-apt-repository is fetching a GPG key from the Ubuntu keyserver, which is running on port 11371. You can indeed punch a hold in the firewall, but you can also just issue
sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7BE1F97B
since this is a one-time operation -- once the key is set up transferring packages is done over regular http.