apt-get -f install 錯誤的處理

root@ksat77:/etc/apt# apt-get -f install 
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
  frozen-bubble: Depends: frozen-bubble-data (= 1.0.0-6) but 1.0.0-4 is installed
  testdisk: Depends: libntfs5 (>= 1.9.2) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

apt-get -f install一般是在安裝錯誤時使用的,在包的依賴錯誤時有時候會出現以上錯誤。
這個錯誤導致apt-get 不能執行其它安裝和卸載任務。

這個時候可以用dpkg -P <PackageName>的方式卸載包。將錯誤的包都卸載後重新使用apt-get -f install
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章