Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 5676  / 3 Years ago, sun, october 31, 2021, 8:42:17

I was installing mongo DB on my Ubuntu-12.04 system, but while i give the following command in my terminal



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


It gives me the following error



gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error


Is there any other way of installing mongo db or what can be done to avoid the above situation?


More From » 12.04

 Answers
6

The command that is failing is the one that installs the key that is used to sign the MongoDB packages, so that apt-get can determine whether the packages are genuine.



You could try skipping installation of the key and adding --allow-unauthenticated when you run apt-get to install the packages. See How do I bypass/ignore the gpg signature checks of apt? for more detail.



But ideally, you need to figure out why you cannot connect to the key server to install the key.



Firstly, you can check your Internet connection and DNS by visiting http://keyserver.ubuntu.com/ in a browser. If your Internet connection is working you will see a simple page entitled SKS OpenPGP Public Key Server. This shows that your computer can look up and connect to the key server.



If this is the case, then it is likely that the problem is a firewall or proxy server restricting your access to the specific port that apt-key wants to connect to. See No gpg key from behind a firewall for details for how to allow apt-key to connect via a proxy server.


[#33087] Sunday, October 31, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ranquctive

Total Points: 391
Total Questions: 103
Total Answers: 104

Location: South Sudan
Member since Thu, Feb 4, 2021
3 Years ago
;