LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   update etch to lenny and save old java (https://www.linuxquestions.org/questions/debian-26/update-etch-to-lenny-and-save-old-java-705133/)

cccc 02-16-2009 01:58 PM

update etch to lenny and save old java
 
hi

I'd like to upgrade my etch to lenny and save old java 1.5 installed:
Code:

# java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)

I have software installed and it's working only under java 1.5

stress_junkie 02-16-2009 07:56 PM

Don't upgrade.

Never upgrade.

If you want a new version then make a clean installation on a spare partition.

cccc 02-17-2009 02:58 AM

Quote:

Originally Posted by stress_junkie (Post 3446199)

Don't upgrade.

Never upgrade.

could you explain pls why?

stress_junkie 02-17-2009 07:51 AM

Upgrades always lead to problems that you don't experience with fresh installations. Abandoned features in the old system are often not removed during an upgrade. That can leave untidy bits of software laying around which could still be invoked during system startup and which could prevent new features from working properly. The time that you will spend fixing these weird problems would be better spent copying the old system's configuration to the new system.

If you create a new installation on an unused partition then you preserve the old working installation to fall back on. This can be *very* helpful.

If you use the LQ search feature to find problems related to upgrades you will see what I mean. These problems would be avoided if a new installation had been made.

AwesomeMachine 02-17-2009 10:33 AM

You can add lenny apt sources, to /etc/apt/sources.list. You can copy line for line, and just change the duplicate lines to say lenny instead of etch. Everything else is the same on each line.

Then, in a terminal, launch 'dselect' as sudo. Do an update, and then move to select. hit enter, space bar, and enter. This will upgrade all possible packages to lenny, without messing up everything else. Once you get it working the way you want with all the upgrades, then you can run the dist upgrade. One shot upgrades are pretty rough. but this method seems to work.

cccc 02-17-2009 10:43 AM

Quote:

Originally Posted by AwesomeMachine (Post 3447068)
You can add lenny apt sources, to /etc/apt/sources.list. You can copy line for line, and just change the duplicate lines to say lenny instead of etch. Everything else is the same on each line.

Then, in a terminal, launch 'dselect' as sudo. Do an update, and then move to select. hit enter, space bar, and enter. This will upgrade all possible packages to lenny, without messing up everything else. Once you get it working the way you want with all the upgrades, then you can run the dist upgrade. One shot upgrades are pretty rough. but this method seems to work.

thx, but normally after backup and changes in /etc/apt/sources.list, I start directly with apt-get dist-upgrade

farslayer 02-17-2009 11:30 AM

If java was installed using Suns installer then Debian shouldn't touch it..

how was java originally installed ? do you have to install files so you can re-install it if needed ?


other options are also available, as this blog post shows..
Multiple versions of Java on Debian
Goal: To install both Java6 and Java7 from Sun and configure a simple way to change which one is used as system default.
http://anshee.blogspot.com/2008/05/m...on-debian.html


As with anything else you should attempt the upgrade on a test machine first if the live system is critical..
build a duplicate working environment, upgrade it to lenny, and ensure everything is working and unchanged. If it works then do the upgrade on the live system.


All times are GMT -5. The time now is 12:14 PM.