正在读取包列表...完成
构建依赖树
正在读取状态信息...完成
The following package was automatically installed and is no longer required:
cordova-ubuntu-2.8-examples
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
mongodb-10gen
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/87.1 MB of archives.
After this operation, 221 MB of additional disk space will be used.
(Reading database ... 250020 files and directories currently installed.)
Unpacking mongodb-10gen (from .../mongodb-10gen_2.4.8_i386.deb) ...
Obsolete conffile /etc/init.d/mongodb has been modified by you, renaming to .dpkg-bak
dpkg: error processing /var/cache/apt/archives/mongodb-10gen_2.4.8_i386.deb (--unpack):
trying to overwrite '/usr/bin/mongos', which is also in package mongodb-10gen-unstable-mongos 2.5.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mongodb-10gen_2.4.8_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
最佳答案
请看这里!为我工作: install mongodb-10gen failed with apt-get
这里有一个错误 https://jira.mongodb.org/browse/SERVER-6910
apt-get 删除 mongodb-clients
然后安装 mongodb-10gen 应该就可以了。
关于mongodb - 子进程/usr/bin/dpkg 返回错误代码 (1),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20190413/