問題:
apt-get install 不能自動安裝依賴,安裝新的包時,提示Unmet dependencies問題。
$ sudo apt-get install subversion Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: subversion : Depends: libsvn1 (= 1.9.3-2ubuntu1.1) but it is not going to be installed Depends: libapr1 (>= 1.5.0) but it is not going to be installed Depends: libaprutil1 (>= 1.3.2+dfsg) but it is not going to be installed ... E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
原因:
某一個.deb包安裝是沒有完全安裝,或者 apt-get upgrde 時中斷
解決:
執行修復命令,並重新執行更新和升級,確保完整修復問題。
$ sudo apt --fix-broken install $ sudo apt-get update $ sudo apt-get upgrade