![MongoDB:无法安装某些软件包](https://linux22.com/image/1026722/MongoDB%EF%BC%9A%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E6%9F%90%E4%BA%9B%E8%BD%AF%E4%BB%B6%E5%8C%85.png)
我在尝试着 安装 mongodb在Ubuntu 22.04
。
我所遵循的步骤已经在此给出关联:
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
但是第 4 步出现错误:
linux@tux:~/Downloads$ sudo apt-get 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.