Blog Post

Install Mongodb 4.0 on Debian Stretch

I’ve tried to install mongodb 4.0 on Debian Stretch, but i had some problem with documentation.

The following command :

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4

gave me this error :

Executing: /tmp/apt-key-gpghome.OQtk54kyKp/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
gpg: keyserver receive failed: Aucun fichier ou dossier de ce type

The way to be able to import the key was :

/usr/bin/curl -sLO https://www.mongodb.org/static/pgp/server-4.0.asc && sudo /usr/bin/apt-key add server-4.0.asc

Then,

echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo aptitude update
sudo aptitude install mongodb-org

About pascall

Related Posts