Notice
Recent Posts
Recent Comments
Link
«   2025/11   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Tags
more
Archives
Today
Total
관리 메뉴

Dev

Mongodb error: The following packages have umet dependencies 본문

Web/Back-end

Mongodb error: The following packages have umet dependencies

flutterbylily 2023. 2. 24. 21:47

우분투에서 mongodb 설치하기 위해 다음과 같이 입력했을 때

$ sudo apt-get install -y mongodb-org

해당 오류가 발생하는 경우가 있다.

The following packages have unmet dependencies:
 mongodb-org-mongos : Depends: libssl1.1 (>= 1.1.0) but it is not installable
 mongodb-org-server : Depends: libssl1.1 (>= 1.1.0) but it is not installable
 mongodb-org-shell : Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

 

Solution:

 

1. 설치 가능한 패키지 리스트 update

$ sudo apt update

 

2. libssl1.1 패키지 설치

$ sudo apt-get install libssl1.1

* 만약 이 과정에서 E: Package 'libssl1.1' has no installation candidate 발생할경우 다음을 입력.

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

성공적으로 libssl1.1을 설치했다면

 

3. mongodb 설치

$ sudo apt-get install -y mongodb-org