LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-16-2009, 01:58 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
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
 
Old 02-16-2009, 07:56 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Don't upgrade.

Never upgrade.

If you want a new version then make a clean installation on a spare partition.
 
Old 02-17-2009, 02:58 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by stress_junkie View Post

Don't upgrade.

Never upgrade.
could you explain pls why?
 
Old 02-17-2009, 07:51 AM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.
 
Old 02-17-2009, 10:33 AM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 02-17-2009, 10:43 AM   #6
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by AwesomeMachine View Post
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
 
Old 02-17-2009, 11:30 AM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Debian Lenny update: so far, much better, and we also have 'Etch and a half' LXer Syndicated Linux News 0 08-07-2008 07:10 AM
-best way to upgrade from Etch to Lenny ? el amigo* Debian 10 09-24-2007 11:40 PM
update existing java on debian etch stable cccc Debian 1 09-04-2007 09:05 AM
Lenny vs Etch kz_chopper Debian 3 07-14-2007 06:51 PM
from Etch testing to Etch stable, or to Lenny Perquisitor Debian 7 04-13-2007 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration