LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-26-2010, 06:31 AM   #1
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Rep: Reputation: 31
Debian Dist-upgrade questions


I'm about to do an upgrade, migrating from Lenny to Squeezy in my desktop boxes, both at work and home.
I did some search in LQ and I like to be sure if this would be the right procedure:


1) Put "squeezy" repos instead of "lenny" in /etc/apt/sources.list

2) Be sure Aptitude is up to date:

# apt-get update
# apt-get install apt dpkg aptitude

3) # aptitude keep-all

4) # aptitude safe-upgrade

5) # uptitude full-upgrade


Questions:

Is that procedure correct?

As long as the kernel will be updated I think I'll need to recompile NVidia graphics modules. Right?
 
Old 02-26-2010, 06:49 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,500

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
I always did:
backup /etc/apt/sources.list
change lenny to squeeze
Code:
aptitude update
aptitude install apt dpkg aptitude
aptitude full-upgrade
Quote:
As long as the kernel will be updated I think I'll need to recompile NVidia graphics modules. Right?
yes

You can however do a fresh install from squeeze:
http://www.debian.org/devel/debian-installer/
 
Old 02-26-2010, 07:23 AM   #3
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,227

Rep: Reputation: 1124Reputation: 1124Reputation: 1124Reputation: 1124Reputation: 1124Reputation: 1124Reputation: 1124Reputation: 1124Reputation: 1124
I usually do a safe-upgrade before a full-upgrade... it can reduce the number of packages in a potentially broken state if something goes wrong.

Evo2.

PS. I still think "upgrade" and "dist-upgrade" are better names than "safe-upgrade" and "full-upgrade"
 
Old 02-26-2010, 07:37 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,438
Blog Entries: 11

Rep: Reputation: 182Reputation: 182
Heres the link from the debian website. Also it's about upgrading etch to lenny it's quite informative
http://www.debian.org/releases/stabl...rading.en.html

Just to make sure I would always do a

apt-get update

before I'll change the source.list
 
Old 02-26-2010, 08:32 AM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
From the dpkg bot in #debian lenny->squeeze
Quote:
Remove any APT source specific to stable (such as volatile), then s/lenny/squeeze/ on your sources.list and then aptitude update && aptitude install aptitude && aptitude safe-upgrade && aptitude full-upgrade. Also ask me about <d-d-a>, <apt-listchanges>, <testing>. Important: see
<squeeze udev>. Upgrading your kernel, rebooting then doing the safe-upgrade step might be a good plan at present.

As of <udev> 150 in squeeze, Linux kernel 2.6.27 or newer is required (i.e. upgrade kernel and udev at the same time). If udev installation fails and you already have a squeeze kernel installed, then reboot into the new kernel and "aptitude -f install ; aptitude safe-upgrade" to
continue.
If you use the nvidia driver you will need to install from sid.
 
Old 02-26-2010, 09:59 AM   #6
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
thanks folks for the tips!
 
Old 03-01-2010, 06:01 AM   #7
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
During weekend I did the upgrade from Lenny to squeezy, with Aptitude, following your advices. First I did it in a test box.
Udev issue appeared, as pointed by Craigevil.
Everything went OK, now I'm running Squeezy at home. Debian (and linux) is allways amazing and Debian developpers does a great job.
 
  


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
Using dist-upgrade to upgrade from Debian to Ubuntu jcbparry Debian 8 09-13-2007 07:25 AM
apt-get dist-upgrade questions revenge80200 Debian 8 09-30-2005 03:23 AM
Debian dist-upgrade problem m0llbuz_ Debian 3 11-10-2004 12:33 PM
Debian apt-get dist-upgrade vs RH? Preed Linux - Distributions 1 07-20-2003 06:11 AM
Debian dist-upgrade Guybrush Linux - Software 0 03-17-2003 11:23 AM


All times are GMT -5. The time now is 09:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration