gpt4 book ai didi

mongodb - 无法在我的 ubuntu18.04.02 LTS 上安装 Mongodb

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

yca@yca-laptop:~/Downloads$ sudo apt-get install mongodb
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mongodb : Depends: mongodb-server (>= 1:2.4.1-2) but it is not going to be installed
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
Depends: mongodb-org-tools but it is not going to be installed
Conflicts: mongodb but 1:3.6.3-0ubuntu1.1 is to be installed
mongodb-org-shell : Conflicts: mongodb but 1:3.6.3-0ubuntu1.1 is to be installed
N: Ignoring file 'mongodb-org-3.6.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我尝试通过命令行安装mongo db。但是由于以下错误,mogodb无法安装。

最佳答案

这更像是一个 askubuntu 案例,但您可以尝试以下一些操作:

sudo apt-get update
sudo apt-get upgrade

apt --fix-broken install

sudo apt-get install mongodb-server mongodb-org-server mongodb-org-mongos mongodb-org-tools

关于mongodb - 无法在我的 ubuntu18.04.02 LTS 上安装 Mongodb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56607903/

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