我正在Ubuntu18.04上安装Unifi软件。我下面的指南来自Unifi的开发人员,链接如下:
我遇到的问题是,当我试图安装这个软件时,我会遇到很多依赖问题。在指南中,当遇到错误时,我会运行下面的命令:
$ 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有关的内容,但最终仍然会遇到同样的问题。需要一些关于如何解决这个问题的建议。
发布于 2021-01-19 00:35:23
最近在20.04 LTS服务器上安装了unifi控制器,这是很方便的参考:
https://gist.github.com/davecoutts/5ccb403c3d90fcf9c8c4b1ea7616948d
在遵循unifi指南的过程中,我在启动服务时遇到了一个错误,在我看来,这个错误来自JDK。不管怎样,脚本中的任务解决了我的问题。
发布于 2019-03-12 02:09:14
我也有同样的问题,那就是mongodb服务器必须小于3.6.0,而Ubuntu18.04只有3.6.3版本可供安装。
我认为这些说明应该适用于您,它添加了安装mongodb服务器和unifi控制器“旧版本”的源代码:
至少对我有用。
https://askubuntu.com/questions/1112902
复制相似问题