为什么在终端中运行“sudo apt install -y mongodb”时会出现此错误

时间:2021-05-03 08:15:54

标签: linux mongodb terminal terminal-services

我正在尝试在我的 pop os linux 上安装 mongodb。

我运行了这个:

sudo apt install -y mongodb

然后它说:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package mongodb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mongodb' has no installation candidate

我该如何解决?有办法吗?

1 个答案:

答案 0 :(得分:1)

假设您使用的是 Ubuntu,则必须启用 Universe 存储库。