安裝MongoDB出現libssl1.1版本告警

Ubuntu 22.04在安裝MongoDB時出現「Depends: libssl1.1 (>= 1.1.1) but 1.1.0g-2ubuntu4 is to be installed」告警該如何處理呢?

[狀況環境]
作業系統:Ubuntu 22.04.3 LTS

[告警訊息]

The following packages have unmet dependencies:
mongodb-org-mongos : Depends: libssl1.1 (>= 1.1.1) but 1.1.0g-2ubuntu4 is to be installed
mongodb-org-server : Depends: libssl1.1 (>= 1.1.1) but 1.1.0g-2ubuntu4 is to be installed
mongodb-org-shell : Depends: libssl1.1 (>= 1.1.1) but 1.1.0g-2ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.

[障礙排除方式]

線上安裝libssl1.1:

echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
sudo apt-get update
sudo apt-get install libssl1.1

離線安裝libssl1.1

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb