Mongo 企业安装错误 Ubuntu 20.04

Mongo enterprise installation Error in Ubuntu 20.04

我最近更新到 Ubuntu 20.04,在安装 MongoDb 企业版时遇到问题。

digvj@digvj:~$ sudo apt-get install -y mongodb-enterprise
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mongodb-enterprise : Depends: mongodb-enterprise-server but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

同样在 运行 我指定每个包的命令 mongo 它显示此错误:

digvj@digvj:~$ sudo apt-get install -y mongodb-enterprise=4.2.6 mongodb-enterprise-server=4.2.6 mongodb-enterprise-shell=4.2.6 mongodb-enterprise-mongos=4.2.6 mongodb-enterprise-tools=4.2.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mongodb-enterprise-server : Depends: libsensors4 (>= 1:3.0.0) but it is not installable
                             Depends: libsnmp30 (>= 5.7.3+dfsg-1.8ubuntu3.3~dfsg) but it is not installable
E: Unable to correct problems, you have held broken packages.

我该如何解决这个问题?

MongoDB 为某些操作系统提供二进制包。 Ubuntu 20.04 不是该软件包可用的操作系统。

可能能够通过手动下载和安装所需的软件包在 20.04 上获得 MongoDB运行ning(例如,libsnmp30 and libsensors4).

例如,如果在 18.04 和 20.04 之间进行了 C 库升级,则 18.04 包可能无法在 20.04 系统上使用,这将不起作用。

如果问题是针对生产环境的,并且您使用的是 MongoDB 的企业版,您应该坚持使用支持的操作系统,例如 Ubuntu 18.04。如果这是一个开发环境,你可以 运行 MongoDB in Ubuntu 18.04 in Docker.

我已经在 MongoDb Zira issues 中添加了这个问题,并在那边找到了解决方案。 这是 link 到那个:

https://jira.mongodb.org/browse/SERVER-48316