简体   繁体   English

mongodb 问题安装在 ubuntu 20.04

[英]issue with mongodb install on ubuntu 20.04

I am unable to install mongodb on ubuntu 20.02.我无法在 ubuntu 20.02 上安装 mongodb。 Several suggestions endup in response to run几个建议最终响应运行

sudo apt --fix-broken install sudo apt --fix-broken install

however, when I run this, I get another set of errors但是,当我运行它时,我得到了另一组错误

    The following NEW packages will be installed:
      mongodb-org-database-tools-extra
    0 upgraded, 1 newly installed, 0 to remove and 256 not upgraded.
    3 not fully installed or removed.
    Need to get 0 B/7,744 B of archives.
    After this operation, 27.6 kB of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    (Reading database ... 371357 files and directories currently installed.)
    Preparing to unpack .../mongodb-org-database-tools-extra_6.0.1_amd64.deb ...
    Unpacking mongodb-org-database-tools-extra (6.0.1) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-database-tools-extra_6.0.1_amd64.deb (--unpack):
     trying to overwrite '/usr/bin/install_compass', which is also in package mongodb-org-tools 4.2.14
    Errors were encountered while processing:
     /var/cache/apt/archives/mongodb-org-database-tools-extra_6.0.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

did a做了一个

sudo apt purge mongodb-org * sudo apt purge mongodb-org *

that cleared up the issues related to the package manager清除了与 package 管理器相关的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM