安装 Java 时如何修复“无法安装某些软件包...未满足的依赖关系”?

安装 Java 时如何修复“无法安装某些软件包...未满足的依赖关系”?

我在使用该命令下载时遇到了一些问题sudo apt-get

我尝试获取 Java 运行时:

Reading package lists... Done

Building dependency tree   

Reading state information... Done

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies:  openjdk-6-jre : Depends: openjdk-6-jre-headless (>= 6b27-1.12.3-0ubuntu1~12.10.1) but it is not going to be installed
                 Depends: libgif4 (>= 4.1.4) but it is not installable
                 Depends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2) but it is not installable
                 Recommends: ttf-dejavu-extra but it is not installable
                 Recommends: icedtea-netx but it is not installable

有人能帮助我吗?我是 Linux/Ubuntu 新手?

答案1

当然可以。在命令行中输入software-centernow search for java。这应该可以解决您的所有问题。

另外,我建议安装 synaptic 作为您的包管理器,以帮助您处理单个包。

相关内容