我刚刚安装了一个具有这些未满足依赖关系的软件包:依赖:sun-java5-jre 但无法安装或 sun-java6-jre 但无法安装或 openjdk-6-jre 但未安装
上述软件包无法安装,因为我已安装了较新版本 openjdk-7-jre,程序运行正常。看起来它尚未更新其依赖项列表。
我如何才能克服这个问题并避免 apt-get 抱怨?它不允许我执行 apt-get 升级。
谢谢
答案1
您可以尝试将 -m 标志传递给 apt-get 以使其尝试“忽略丢失的包”,这可能会起作用。
查看apt-get的man文档:
-m, --ignore-missing, --fix-missing
Ignore missing packages; If packages cannot be retrieved or fail
the integrity check after retrieval (corrupted package files), hold
back those packages and handle the result. Use of this option
together with -f may produce an error in some situations. If a
package is selected for installation (particularly if it is
mentioned on the command line) and it could not be downloaded then
it will be silently held back. Configuration Item:
APT::Get::Fix-Missing.