简体   繁体   English

Ubuntu 20.04 中的 Mongo 企业安装错误

[英]Mongo enterprise installation Error in Ubuntu 20.04

I have updated recently to Ubuntu 20.04 and facing problems while installing MongoDb enterprise.我最近更新到 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.

Also on running the command where i have specified every package of mongo it is showing this error:同样在运行我指定了mongo的每个package的命令时,它会显示此错误:

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.

How can I resolve this?我该如何解决这个问题?

MongoDB provides binary packages for some operating systems. MongoDB 为某些操作系统提供二进制包。 Ubuntu 20.04 is not an operating system that the packages are available for. Ubuntu 20.04 不是软件包可用的操作系统。

You may be able to get MongoDB running on 20.04 by downloading and installing the packages it wants manually (for example, libsnmp30 and libsensors4 ).可以通过手动下载和安装所需的软件包(例如libsnmp30libsensors4 )来让 MongoDB 在 20.04 上运行。

If there has been, for example, a C library upgrade between 18.04 and 20.04, the 18.04 packages may not be usable on a 20.04 system, and this won't work.例如,如果在 18.04 和 20.04 之间进行了 C 库升级,则 18.04 软件包可能无法在 20.04 系统上使用,这将不起作用。

If the question is for a production environment and you are using the enterprise edition of MongoDB you should probably stick with the supported operating systems like Ubuntu 18.04.如果问题是针对生产环境并且您使用的是 MongoDB 企业版,您可能应该坚持使用受支持的操作系统,例如 Ubuntu 18.04。 If this is for a development environment, you could run MongoDB in Ubuntu 18.04 in Docker.如果这是用于开发环境,您可以在 Docker 中的 Ubuntu 18.04 中运行 MongoDB。

I have added the issue in MongoDb Zira issues and got the solution over there.我在 MongoDb Zira 问题中添加了该问题,并在那里得到了解决方案。 Here is the link to that:这是链接:

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

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

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