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.
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 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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With