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 的方式卸载包。将错误的包都卸载后重新使用apt-get -f install
 

你可能感兴趣的:(debian)