由于软件包损坏,无法安装 eclipse

由于软件包损坏,无法安装 eclipse

尝试安装 eclipse 时出现以下错误:

XXX:~$ sudo apt-get install eclipse
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:
 eclipse : Depends: eclipse-jdt (>= 3.8.0~rc4-1ubuntu1) but it is not going to be installed
           Depends: eclipse-pde (>= 3.8.0~rc4-1ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我不知道该如何解决。我对 Ubuntu 还很陌生,但我不认为我使用的是不稳定的发行版。但我已经添加了安装 Tomcat7 所需的存储库。这会导致问题吗?

答案1

我遇到了类似的问题,你所要做的就是将其粘贴到你的 bash 终端中:

sudo apt-get install eclipse eclipse-jdt eclipse-pde eclipse-platform* libtomcat7-java

相关内容