Ubuntu安装MongoDB失败,如何排查解决?
- 内容介绍
- 文章标签
- 相关推荐
本文共计668个文字,预计阅读时间需要3分钟。
1234567891011121314root@jdu4e00u53f7:/web21
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的源
我的
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.本文共计668个文字,预计阅读时间需要3分钟。
1234567891011121314root@jdu4e00u53f7:/web21
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的源
我的
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.
