Lock Version in Synaptic so ubuntu doesn't try to upgrade it again.ĭpkg man page will also help explain things - downgrade has a big warning label on it in the man pages, so take note you don't wreck your dependencies. Just follow the below commands: sudo apt update. Annotations not shown on overview ruler: RESOLVED: 389113: Unable to Launch Eclipse after download and setup: 'The Eclipse executable launcher. Eclipse java package crash in Ubuntu 11.0.4: RESOLVED: 356126: fix Mylyn repository URLs in EPP packages for Indigo. OpenJDK is the default Java development in Ubuntu 18.04. The essential tools for any Java developer, including a Java IDE, a CVS client.
UBUNTU DOWNLOAD JAVA INSTALL
deb for your previous sun-java6-jdk version, you may already have this file in /var/cache/apt/archives - use: $ ls /var/cache/apt/archives/sun* -lash in your terminal to find out whether you have an older version locally.Īpt-get install -d sun-java-jdk / openjdk-6-jdk - the -d will only download the file into your /var/cache/apt/arhives folder.ĭpkg -i -force-downgrade /var/cache/apt/archives/sun-java-jdk(the version # that you have). Before we install Tomcat on Ubuntu, we need to install Java to execute the Java web application code. It's the correct way to downgrade a package, but you seem to have got the version number wrong.Īpt-get install sun-java6-jdk=6.22-0ubuntu1~10.10 - won't work since there is no such package in the Package.gz list, that's why you got the error: Version ‘6.22-0ubuntu1~10.10’ for ‘sun-java6-jdk’ was not found.ĭpkg -r sun-java6-jdk - Removes the sun-java6-jdkĭownload the.