0
点赞
收藏
分享

微信扫一扫

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


  错误信息

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

 

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

继续安装即可!!

举报
0 条评论