LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 02:58 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 50
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, 08: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: 334Reputation: 334Reputation: 334Reputation: 334
Don't upgrade.

Never upgrade.

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

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

Don't upgrade.

Never upgrade.
could you explain pls why?
 
Old 02-17-2009, 08: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: 334Reputation: 334Reputation: 334Reputation: 334
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, 11:33 AM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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, 11:43 AM   #6
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 50
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, 12:30 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:10 AM
-best way to upgrade from Etch to Lenny ? el amigo* Debian 10 09-25-2007 12:40 AM
update existing java on debian etch stable cccc Debian 1 09-04-2007 10:05 AM
Lenny vs Etch kz_chopper Debian 3 07-14-2007 07:51 PM
from Etch testing to Etch stable, or to Lenny Perquisitor Debian 7 04-13-2007 04:27 PM

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

All times are GMT -5. The time now is 03:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration