New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

Your preferred Interactive shell?









( 1371 votes ~ 15 comments )

 

Weblog entry #22 for e5z8652

Upgrade Lenny to Squeeze
Posted by e5z8652 on Mon 23 Aug 2010 at 19:36
Tags: none.

Dear Googlebot:

I'm going through the process of upgrading Lenny machines to Squeeze after the freeze. After I'm done at work, only my pair of Squid servers will be Lenny. (They wait until Squeeze is stable.) While online I see a lot of evidence that people are having trouble with this upgrade, and thought I would share.

The key is getting the new kernel in place before you attempt the full upgrade.

This process works very smoothly, although it does require an extra reboot:

    sed -i s/lenny/squeeze/ /etc/apt/sources.list
    aptitude update
    aptitude install linux-image-2.6-686

Of course your kernel architecture might be different (amd64, etc.). Follow the prompts to install the kernel.

Aptitude will pull in perl, so you might want to include that on the command line to save a "y" or two.

(Note that I keep recommends turned off in apt.conf, so perl is the only major package pulled in on my systems. If you have recommends on you might get more.)

***reboot***

    aptitude full-upgrade

Note that doing the full-upgrade right away will leave you with a heck of a mess to untangle when apt tries to upgrade udev, but udev won't install on the running kernel. Then a whole set of key packages will fail to install, and aptitude will start finding crazy solutions to resolve the mess -- removing 3/4 of KDE while upgrading the rest, etc.

Much easier to just install the kernel and perl first and then let aptitude do it's thing.

 

Comments on this Entry

Posted by Anonymous (108.8.xx.xx) on Tue 24 Aug 2010 at 02:25
Thank You.
That was very concise information.
Much more distilled than the Etch to Lenny upgrade from Debian's information.
Makes it seem painless and simple, I might just try it...

[ Parent | Reply to this comment ]

Posted by ajt (195.145.xx.xx) on Mon 6 Sep 2010 at 13:05
[ Send Message | View Weblogs ]

I always try to build a stable desktop system in a VM (Qemu or VirtualBox) and then do a dry run at the upgrade first. It isn't a perfect solution but I find it does help head off those issues that aptitude can't fix it's self. I usually end up doing one or two manual package deletes before it upgrades automatically then I manually put back the bits I want.

So far I've never had a box I couldn't upgrade, I've just had a few that took a few minutes of fiddling to get round a road block.

--
"It's Not Magic, It's Work"
Adam

[ Parent | Reply to this comment ]

Posted by Anonymous (206.174.xx.xx) on Mon 6 Sep 2010 at 21:24
I don't do the virtual machine thing, but "always possible" upgrades have been my experience as well. As long as you don't do something crazy you should always be able to upgrade, even if you have to fiddle. Unfortunately many people on the d-u list seem to be unaware of the relationship between the kernel and udev. I think that is the major issue with Lenny to Squeeze.

But generally things have gone very well during transitions. I have one box left that has been continuously upgraded from Woody, and is waiting for Squeeze to release.

I had two, but during a hardware move I messed up and ended up having to re-install with Lenny. Sad, sad day. :(

[ Parent | Reply to this comment ]

Posted by PeterW (62.200.xx.xx) on Tue 7 Sep 2010 at 18:14
[ Send Message ]
I upgraded Lenny to Squeeze, and right enough, it uninstalled most of KDE! So this is very useful information. Thank you!

[ Parent | Reply to this comment ]

 

 

Flattr