apt-get安装mongodb时,对18.04有不满足的依赖项
【摘要】 出现如下异常: dpkg: error processing archive /var/cache/apt/archives/mongodb-org-tools_4.2.5_amd64.deb (--unpack): trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools...
出现如下异常:
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-tools_4.2.5_amd64.deb (--unpack): trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools 3.6.3-0ubuntu1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/mongodb-org-tools_4.2.5_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
解决方法:单独删除两个有问题的软件包
sudo dpkg --remove --force-remove-reinstreq mongo-tools
sudo dpkg --remove --force-remove-reinstreq mongodb-server-core
- 1
- 2
最后执行以下命令即可解决:
sudo apt-get --fix-broken install
- 1
文章来源: blog.csdn.net,作者:WongKyunban,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/weixin_40763897/article/details/105230464
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)