首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装Unifi时Mongo的依赖问题

安装Unifi时Mongo的依赖问题
EN

Ask Ubuntu用户
提问于 2019-01-25 20:26:47
回答 3查看 8.6K关注 0票数 0

我正在Ubuntu18.04上安装Unifi软件。我下面的指南来自Unifi的开发人员,链接如下:

https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-and-Update-via-APT-on-Debian-or-Ubuntu

我遇到的问题是,当我试图安装这个软件时,我会遇到很多依赖问题。在指南中,当遇到错误时,我会运行下面的命令:

代码语言:javascript
复制
$ sudo apt install unifi
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.
 unifi : Depends: mongodb-server (< 1:3.6.0) but 1:3.6.3-0ubuntu1 is to be installed or
                  mongodb-10gen (< 3.6.0) but it is not installable or
                  mongodb-org-server (< 3.6.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
server@Server:~$ sudo apt remove unifi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'unifi' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

我已经尝试过清除和删除任何与mongodb有关的内容,但最终仍然会遇到同样的问题。需要一些关于如何解决这个问题的建议。

EN

回答 3

Ask Ubuntu用户

发布于 2021-01-19 00:35:23

最近在20.04 LTS服务器上安装了unifi控制器,这是很方便的参考:

https://gist.github.com/davecoutts/5ccb403c3d90fcf9c8c4b1ea7616948d

在遵循unifi指南的过程中,我在启动服务时遇到了一个错误,在我看来,这个错误来自JDK。不管怎样,脚本中的任务解决了我的问题。

票数 1
EN

Ask Ubuntu用户

发布于 2019-03-12 02:09:14

我也有同样的问题,那就是mongodb服务器必须小于3.6.0,而Ubuntu18.04只有3.6.3版本可供安装。

我认为这些说明应该适用于您,它添加了安装mongodb服务器和unifi控制器“旧版本”的源代码:

https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu

至少对我有用。

票数 0
EN

Ask Ubuntu用户

发布于 2019-12-04 13:29:42

最简单的方法是遵循乌比奎提站点上的步骤。

在安装之前,请下载并安装mongodb社区版本3.4.23。我选择了Ubuntu16.04,还在18.04上工作;您可以在这个链接上下载。

下载后,运行以下命令,您应该可以安装Unifi了

代码语言:javascript
复制
sudo dpkg -i mongodb-org-server_3.4.23_amd64.deb
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1112902

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档