gpt4 book ai didi

reactjs - 在 Ubuntu 20.04 中安装 mongoDB 失败

转载 作者:行者123 更新时间:2023-12-04 18:59:24 24 4
gpt4 key购买 nike

我尝试在 ubuntu 20.04 上安装 MongoDB,使用的命令如下所示,

To create a mongodb-org-4.4.list file in the sources.list.d folder

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

Updated the system,

sudo apt-get update

Install the MongoDB on my system,

sudo apt install mongodb-org
运行上述命令后,我遇到了一个错误,它没有安装在 ubuntu 系统中,错误如下,请关注谁想帮助我,
Reading package lists... Done
Building dependency tree
Reading state information... Done
mongodb-org is already the newest version (4.4.5).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
mongodb-org-tools : Depends: mongodb-database-tools but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
注:该错误也添加在附件中。
enter image description here

最佳答案

像这样试试

wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org

关于reactjs - 在 Ubuntu 20.04 中安装 mongoDB 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67083249/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com