# sudo apt-get install -y mongodb-org
Reading package lists--- Done
Building dependency tree
Reading state information--Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-shell but it is not going to be installed
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
E: Unable to correct problems, you have held broken packages.
在尝试使用`sudo apt-get install -y mongodb-org`命令安装MongoDB时,遇到了包依赖问题。系统无法安装mongodb-org、mongodb-org-shell、mongodb-org-server、mongodb-org-mongos和mongodb-org-tools,提示存在未满足的依赖关系,并且有一些包被锁定无法更新。这可能是由于请求的操作在当前的系统配置下不可能完成,或者是使用的软件源不稳定导致某些必需的包还未创建或移出。
1279





