
.deb 파일을 실행하여 .deb 파일에서 직접 설치하는 패키지가 있습니다 sudo dpkg -i
. 이를 실행한 후 패키지에 대해 충족되지 않은 종속성 목록이 표시됩니다. sudo apt-get install -f
종속성을 설치하기 위해 실행하면 apt-get
이유를 설명하지 않고 대신 패키지를 제거합니다.
apt-get
종속성을 설치하는 대신 패키지를 제거하는 이유를 확인할 수 있는 방법이 있습니까 ?
답변1
apt-get
디버그 옵션을 실행하여 무엇이 잘못되었는지 알아낼 수 있었습니다 .
sudo apt-get -o Debug::pkgProblemResolver=true install -f
이는 패키지가 제거되는 이유를 보여줍니다. 제 경우에는 apt-get
리포지토리에서 특정 종속성을 찾을 수 없습니다.
답변2
apt-get 매뉴얼에서:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place.
This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. If packages are
specified, these have to completely correct the problem.
분명히 감지된 유일한 자동 수정은 패키지를 제거하는 것입니다. 종속성을 수동으로 해결해야 합니다.