当前位置 : 主页 > 网络编程 > 其它编程 >

ubuntu安装mongodb失败

来源:互联网 收集:自由互联 发布时间:2023-07-02
1234567891011121314root@jdu4e00u53f7:~/web21# sudo apt-get install mongodbReading package lists... D 1234567891011121314root@jdu4e00u53f7:~/web21# sudo apt-get install mongodbReading package lists... DoneBuilding dependency treeReading state
1234567891011121314root@jdu4e00u53f7:~/web21# sudo apt-get install mongodbReading package lists... D

1234567891011121314root@jdu4e00u53f7:~/web21# sudo apt-get install mongodbReading package lists... DoneBuilding dependency treeReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: mongodb : Depends: mongodb-dev but it is not going to be installed           Depends: mongodb-server (>= 1:2.4.1-2) but it is not going to be installedE: Unable to correct problems, you have held broken packages.

我想使用

1sudo apt-get install mongodb

命令来在

1ubuntu

安装

1mongodb

但是不成功

我的源是163的源

123456789101112131415161718192021root@jdu4e00u53f7:/etc# cat hosts127.0.0.1       localhost jdu4e00u53f7127.0.1.1       ubuntu# The following lines are desirable for IPv6 capable hosts::1     localhost ip6-localhost ip6-loopbackff02::1 ip6-allnodesff02::2 ip6-allroutersroot@jdu4e00u53f7:/etc# cd aptroot@jdu4e00u53f7:/etc/apt# cat sources.listdeb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverseroot@jdu4e00u53f7:/etc/apt#

我的

1apt

版本是

123456789101112131415161718root@jdu4e00u53f7:~/web21# apt-get -versionapt 1.2.24 (amd64)Supported modules: Ver: Standard .deb Pkg:  Debian dpkg interface (Priority 30) Pkg:  Debian APT solver interface (Priority -1000) S.L: 'deb' Debian binary tree S.L: 'deb-src' Debian source tree Idx: Debian Source Index Idx: Debian Package Index Idx: Debian Translation Index Idx: Debian dpkg status file Idx: Debian deb file Idx: Debian dsc file Idx: Debian control file Idx: EDSP scenario fileE: Command line option 'e' [from -version] is not understood in combination with the other options.root@jdu4e00u53f7:~/web21#

这是 执行

1sudo apt-get install mongodb mongodb-dev mongodb-server

的结果

1234567891011121314151617181920212223root@jdu4e00u53f7:~/web21# sudo apt-get install mongodb mongodb-dev mongodb-serverReading package lists... DoneBuilding dependency treeReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: mongodb-dev : Depends: libboost-dev but it is not going to be installed mongodb-server : Depends: mongodb-clients but it is not going to be installed                  Depends: libboost-filesystem1.54.0 but it is not going to be installed                  Depends: libboost-program-options1.54.0 but it is not going to be installed                  Depends: libboost-system1.54.0 but it is not going to be installed                  Depends: libboost-thread1.54.0 but it is not going to be installed                  Depends: libgoogle-perftools4 but it is not going to be installed                  Depends: libpcrecpp0 (>= 7.7) but it is not going to be installed                  Depends: libsnappy1 but it is not going to be installed                  Depends: libstdc++6 (>= 4.6) but it is not going to be installed                  Depends: libv8-3.14.5 but it is not going to be installedE: Unable to correct problems, you have held broken packages.

上一篇:cconst
下一篇:没有了
网友评论