mongodb - 子进程/usr/bin/dpkg 返回错误代码 (1)

标签 mongodb installation

正在读取包列表...完成

构建依赖树

正在读取状态信息...完成

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/

相关文章:

javascript - 使用 .push() 时,mongodb 数组类型的字段不会更新长度

MongoDB : Time comparison

laravel 安装获取 key 在 ubuntu 操作系统中生成错误

installation - Wix - 构建安装包时出错 - ERROR CNDL0200(未处理的扩展元素)

java - 在测试套件中设置和拆除 openCL 单元测试的正确方法?

arrays - 如何获取mongodb对象数组中指定字段的值

javascript - MongoDB 查询添加和删除数组中的多个对象

mongodb - 使用内置终端 (Ubuntu 14.04.3) 在 Codio 中安装 mongodb 3.2

linux - 无法完成 Eucalyptus Fast-Start 3.4.2 Cloud-In-A-Box 安装

ubuntu - 如何在 Ubuntu 机器上安装 TortoiseSVN 存储库?