按照MongoDB官方网站上的安装说明进行安装。
- 安装mongodb-org包时出现以下错误
sudo apt install -y mongodb-org
Reading package lists... Done
Building dependency tree... Done
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-org-mongos : Depends: libssl1.1 (>= 1.1.1) but it is not installable
mongodb-org-server : Depends: libssl1.1 (>= 1.1.1) but it is not installable
mongodb-org-shell : Depends: libssl1.1 (>= 1.1.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
- 我尝试使用apt安装libssl1.1软件包,但我无法这样做,它抛出以下错误。
E: Package 'libssl1.1' has no installation candidate
请来人帮忙。
2条答案
按热度按时间eblbsuwk1#
mongodb似乎需要特定版本的libssl1.1
rjee0c152#
经过几个小时寻找一个我满意的解决方案,我终于偶然发现了一个!希望这能帮助其他任何希望安装MongoDB社区版而不牺牲安全性的人使用libssl 1. 1(这里的解决方案使用〉3. 0。
MongoDB隐藏了Ubuntu 22.04.1 LTS(Jammy Jellyfish)的存储库。在我发布这篇文章的时候,它肯定还没有出现在文档安装页面上。自己去看看吧:https://repo.mongodb.org/apt/ubuntu/dists/jammy/mongodb-org/
下面的代码将添加存储库并在您的系统上安装最新的mongodb-org: