apt-get 安裝沒有自動依賴


問題:

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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM