如何在 Ubuntu 20.0 focus 上安装特定的 MongoDB 版本(3.4.2)?

如何在 Ubuntu 20.0 focus 上安装特定的 MongoDB 版本(3.4.2)?

我遵循了此处的官方文档:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

执行了以下步骤:

wget -qO - https://www.mongodb.org/static/pgp/server-3.4.asc | sudo apt-key add -

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list

sudo apt-get update

sudo apt-get install -y mongodb-org=3.4.2 mongodb-org-server=3.4.2 mongodb-org-shell=3.4.2 mongodb-org-mongos=3.4.2 mongodb-org-tools=3.4.2

我收到以下错误:

E: Version '3.4.2' for 'mongodb-org' was not found
E: Version '3.4.2' for 'mongodb-org-server' was not found
E: Version '3.4.2' for 'mongodb-org-shell' was not found
E: Version '3.4.2' for 'mongodb-org-mongos' was not found
E: Version '3.4' for 'mongodb-org-tools' was not found

请帮忙!

相关内容