1

我从我的 ubuntu 中卸载了 mongo 并尝试再次安装它,但现在出现以下错误

    Errors were encountered while processing:
     /var/cache/apt/archives/mongodb-org-server_4.2.7_amd64.deb
     /var/cache/apt/archives/mongodb-org-mongos_4.2.7_amd64.deb
     /var/cache/apt/archives/mongodb-org-tools_4.2.7_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

我按照下面提到的链接再次安装 mongo - https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

有人可以帮我解决这个问题吗?

4

1 回答 1

2

您可以强制安装包并再次恢复它。

sudo dpkg -i --force-all /var/cache/apt/archives/mongodb-org-tools_4.2.7_amd64.deb

sudo apt-get install -f
于 2020-06-14T03:54:53.200 回答