mongodb-org-server : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed

本文详细介绍了在Ubuntu系统上安装MongoDB时遇到的依赖问题解决办法,主要聚焦于libcurl3依赖缺失的情况,提供了替换libcurl4为libcurl3的具体步骤,并指导如何正确安装其他依赖,最终成功安装MongoDB。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  错误信息

sudo apt-get  install mongodb-org-server
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-server : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

主要是安装 

sudo apt-get install -y libcurl3

sudo apt-get install -y mongodb-org

Workaround is to replace libcurl4 with libcurl3, so

sudo apt-get install -y libcurl3

that should get functional version then 

sudo apt-get install -y xxxx

where xxxx is all other depends that arise, that should install them correctly

then once no more unmet dependencies go back and run your mongodb-org

sudo apt-get install -y mongodb-org

or whichever one you used before that gave the initial error

 

全网唯一正确的解决方案了。

继续安装即可!!

04-26 115
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值