0

While i try to install Eclipse from ubuntu software center, it prompts me that failed to download packages and check your internet connection. If I click on OK button, it gives me requires installation of untrusted packages and in the details option:

ant ant-optional default-jdk default-jre default-jre-headless eclipse-jdt 
eclipse-pde eclipse-platform eclipse-platform-data eclipse-rcp fastjar 
gcj-4.6-base gcj-4.6-jre-lib jarwrapper junit junit4 libart-2.0-2 libasm3-java 
libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libcommons-
beanutils-java libcommons-codec-java libcommons-collections3-java libcommons-
compress-java libcommons-digester-java libcommons-el-java libcommons-
httpclient-java libcommons-logging-java libdb-java libdb-je-java libdb5.1-java 
libdb5.1-java-gcj libecj-java libequinox-osgi-java libgcj-bc libgcj-common 
libgcj12 libglade2-0 libgnome2-0 libgnomecanvas2-0 libgnomecanvas2-common 
libgnomeui-0 libgnomeui-common libhamcrest-java libicu4j-4.4-java libicu4j-java 
libjasper-java libjaxp1.3-java libjline-java libjsch-java libjtidy-java 
liblucene2-java libregexp-java libservlet2.4-java libslf4j-java libxerces2-java 
sat4j
Eliah Kagan
  • 119,640
blue
  • 93

2 Answers2

0

Try changing the download mirror. and if possible, manually download Eclipse from eclipse site and download jdk from Oracle. and then edit the eclipse.ini and add this line at the very beginning

-vm
/path_to_your_jdk/bin

that would give you a much better performance

0

Please check your software sources and disable those that aren't trusted. All required packages are in the Ubuntu archives (assuming you are on 12.04+), so you shouldn't need to install untrusted packages to install Eclipse.


Personally I prefer to not install Eclipse via the Software Centre (or apt-get). Eclipse has no system dependencies apart from the presence of a Java SE 5+ runtime, so I just download Eclipse off eclipse.org, unzip and run. To uninstall, rm -rf. All of this as user, not as root.

On Ubuntu, obviously I do install the default-jdk package to have Java.

zwets
  • 12,770
  • 2
  • 37
  • 46