새로운 우분투 22.04 설치에 다음 패키지를 설치하려고 합니다.
sudo apt install docker.io docker-compose -y
하지만 오류가 발생합니다.
The following packages have unmet dependencies:
containerd.io : Conflicts: containerd
Conflicts: runc
전체 오류는 다음과 같습니다
~/temporary_files$ sudo apt install docker.io docker-compose -y
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:
containerd.io : Conflicts: containerd
Conflicts: runc
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
이 문제를 해결하는 데 도움을 주실 수 있나요?
답변1
해결책을 찾은 것 같아요. 나는 다음을 수행했습니다.
sudo apt-get remove containerd.io
sudo apt install docker.io docker-compose -y
systemctl start docker
sudo gpasswd -a $USER docker
이제 모든 게 괜찮아