에디의 우당탕탕 코딩공장

[Back-End] 우분투에 mongodb 안깔리는 오류 해결

by 인턴 에디

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

위와 같이 뭐가 안깔려 있다면서 MongoDB가 설치가 안되는 경우가 있다. 

 

원인은 현재 내가 사용하는 우분투 22.04버전에 mongoDB가 공식적으로 빌드되어있지 않기 때문!!

그래서 강제적으로 우분투 22.04의 소스를 가져와서 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

 

 

 

참고한 글

 

MongoDB Install Fails on Ubuntu 22.04 - Depends on libssl1.1 but it is not installable

Here are the standard installation instructions from the website: wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.

askubuntu.com

블로그의 정보

에디의 우당탕탕 코딩 공장

인턴 에디

활동하기