MongoDB GPG - Invalid Signatures

后端 未结 11 1323
半阙折子戏
半阙折子戏 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:43

    Sounds like you need to redo the installation steps for MongoDB. First,remove any existing repository file for MongoDB. Do as below.

    $ sudo rm /etc/apt/sources.list.d/mongodb*.list
    

    Next, add the key: (without the key, the repository will not load).

    $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
    

    Now, create a new MongoDB repository list file:

    $ echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
    

    After adding the repository details, we need to update the packages list.

    $ sudo apt-get update
    

    Now install MongoDB.

    sudo apt install mongodb-org
    

    Hope this helps !

提交回复
热议问题