Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"gpgkeys: key 7F0CEB10 not found on keyserver" Response while try to install mongodb on Ubuntu

I am trying to install mongodb on my Ubuntu 12.04 Desktop edition. Firstly I hope there isn't any issue w.r.t. installing mongodb on Ubuntu Desktop edition.

I am following the mongodb manual to install it on my Ubuntu machine. When I try to import the 10gen public GPG Key using the instructions (given in the manual), By

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

I get this response:

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.WsHkMVxFlM --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 7F0CEB10

gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com

gpgkeys: key 7F0CEB10 not found on keyserver

gpg: no valid OpenPGP data found.

gpg: Total number processed: 0

Any help or hint in this regard is appreciated.

Thanks in advance.

like image 935
kausal_malladi Avatar asked Oct 28 '12 19:10

kausal_malladi


3 Answers

A way to go around firewalls: query over typical port (80):
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
Another problem you may have would be a network proxy. If you need to connect to the internet through proxy, export proxy settings to you bash configuration - add line with your proxy address (and if needed: username/password - without it's just http://proxyserver:port):
export http_proxy=http://username:password@proxyserver:port/
at the end of file /etc/bash.bashrc

like image 182
mrówa Avatar answered Oct 16 '22 10:10

mrówa


like answer of @aniket-thakur , You can add MongoDB public GPG Key Manually By copy The content of this Page into file 10gen-gpg-key.asc Then add file using apt-key add <file> commend line :

sudo apt-key add 10gen-gpg-key.asc 
like image 35
ahmed hamdy Avatar answered Oct 16 '22 11:10

ahmed hamdy


The second approach mentioned in this link worked for me. Manually download the key and add it. The link provides step by step procedure to fix the error happening due to missing key.

PS: Above link goes to my personal blog that has detailed steps on how to do this and a couple of other things you can try out to fix this.

like image 4
Aniket Thakur Avatar answered Oct 16 '22 10:10

Aniket Thakur