Upgrading from Etch to Lenny

It’s the first day of the new year, and amidst the hassle of being one of the admins conducting the online semester registration for the students, I decided to upgrade my ageing Debian Etch to it’s testing release, Debian Lenny. Upgrading from one version to another has never been so easy! Just go through the following steps.

$: sudo vim /etc/apt/sources.list

Now replace every occurrence of ‘etch’ with ‘lenny’. To be on the safer side, comment out all 3rd party repositories as Lenny is still in testing.

Next,

$: sudo apt-get update

$: sudo apt-get dist-upgrade

You might have to do the dist-upgrade step a couple of times till it upgrades no further. I know some people have had problems while trying to do an Etch->Lenny upgrade, but things have been quite OK for me. If you’re not using one of the Debian packaged kernels (you built your own kernel from source), make sure apt-get doesn’t override your kernel headers. In case it does, and you notice that some of your device drivers are acting up, just go through the following steps:

$: cd /usr/src/linux

(if you don’t have the symlink, cd into wherever your kernel is!)

$: sudo make headers_install

Although I didn’t have to do the last step, I believe it should solve your device driver issues after your upgrade, if any. Do correct me otherwise.

And yes, almost forgot…

Happy New Year everyone!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s