LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Debian Dist-upgrade questions (http://www.linuxquestions.org/questions/debian-26/debian-dist-upgrade-questions-791716/)

matiasar 02-26-2010 07:31 AM

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?

repo 02-26-2010 07:49 AM

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/

evo2 02-26-2010 08:23 AM

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"

zhjim 02-26-2010 08:37 AM

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

craigevil 02-26-2010 09:32 AM

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.

matiasar 02-26-2010 10:59 AM

thanks folks for the tips!

matiasar 03-01-2010 07:01 AM

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.


All times are GMT -5. The time now is 12:48 AM.