MongoDB GPG - Invalid Signatures

后端 未结 11 1337
半阙折子戏
半阙折子戏 2020-12-04 06:46

I\'m installing MongoDB on an Ubuntu 14.04 machine, using the instructions at: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

So I run:

11条回答
  •  心在旅途
    2020-12-04 07:26

    I also faced this issue when installing MongoDB 4.0 on Ubuntu 16.04. So I did.

    1. sudo rm /etc/apt/sources.list.d/mongodb*.list - remove any existing file for MongoDB

    2. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E52529D4 - add the key

    3. sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" > /etc/apt/sources.list.d/mongodb-org-4.0.list' - create a new MongoDB repository list file

    Now, Complete the installation with an update of repositories then install MongoDB, enable the mongod service and start it up, and last, check your MongoDB version:

    sudo apt update
    sudo apt install mongodb-org
    
    systemctl enable mongod.service
    systemctl start mongod.service
    
    mongo --version
    

提交回复
热议问题