3

Currently I am having JRE 1.6.0_20. How do I downgrade it to JRE 1.6.0_17?

How can I downgrade?

I'm using Ubuntu 10.04 LTS.

1
  • 1
    You do know there is a security issue relating to remote code execution with Java < 1.6.0_20 don't you? Is there any reason you need that specific version such as missing features?
    – Mokubai
    May 13, 2010 at 12:36

1 Answer 1

3

When you downgrade, you'll probably want to keep it that way (having the update manager ignore the newer version), this list thread and the APT-HowTo seem to go through what's needed to do that.

Specifically check out How to keep a mixed system:

# apt-get install package=version

And How to keep specific versions of packages installed (complex), adding this to /etc/apt/preferences:

Package: <package>
Pin: <pin definition>
Pin-Priority: <pin's priority>

Update: To clarify some things: 1. Ubuntu 10.04 does not use Sun's JRE by default. Infact you need to enable repositories to install it.

As stated in my comments, just follow the above pattern:

apt-get install default-jre=1.6.0_17 

Or for Sun's

apt-get install sun-java6-jre=1.6.0_17 

But I doubt that will work, considering that the latest version of Sun's JRE is listed as 6.20.

10
  • Thanks Tim Lyte for your time , i am trying it by downloading rpm packages externally . will let u know if it fails.
    – jmj
    May 13, 2010 at 12:53
  • RPMs are meant for ReadHat (Fedora/CentOS/Etc), not Ubuntu/Debian. Look for a .deb file if you're trying to downgrade with a downloaded package.
    – Tim Lytle
    May 13, 2010 at 13:57
  • no it takes older version (newer version previously installed), in my case it is java can you specify how can i install java jre&jdk 1.6.0_17 by apt-get ?
    – jmj
    May 13, 2010 at 14:08
  • It really depends on what package you're installing. For Ubuntu's default (in 10.04) it would be apt-get install default-jre=1.6.0_17 Just follow the pattern given in my answer.
    – Tim Lytle
    May 13, 2010 at 14:31
  • in ubuntu 10.4 default version of sun-java6-jre is 1.6.0_20 i want 1.6.0_17
    – jmj
    May 13, 2010 at 14:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .