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