Sign up to Submit Content

Sign Up / Login
debiantutorials.org accepts no advertising. Quit asking me.
Guests 11
If you can walk and chew gum at the same time, you can run Linux

debian tutorials | debian support forum
I invite anyone familiar with Linux or Debian to register here at debiantutorials.org and write tutorials or related articles in order that everyone in the community can benefit. I'm talking to you. You say it better than I do. Your ideas just flow like water. There's so much more that needs to be written in ways that your cousin or an office manager can benefit from. Consider it.
debiantutorials.org is built on and runs on Debian.
Creative Commons License
Upgrade Sarge to Etch Print E-mail
Written by machiner   
Thursday, 03 August 2006 16:13
Since Etch is only a few months away and it's been really stable for some time now I figured a quick trip down the upgrade path was in order. Now, your hardware is different than mine, we probably run different kernels and have different programs installed, so if you're the least bit weary - cover your butt and backup, research, etc. before you do this. The machine I upgraded is a desktop. Otherwise upgrading to Etch ([[Debian GNU/Linux]] - Testing) is a snap. But don't feel like you have to.

[Print this out and read it twice. I can't write a coherent tutorial to save my life]

I'm using my kid's box as the example here since I installed Debian on it according to my tutorial. It's a homemade box with an AMD processor, an abit board and a host of other goodies my spoiled-ass kids are lucky to have. Ahem! I also installed both KDE and Gnome on it. Upgrading this box to Etch took barely longer than the time to download 600 some-odd megabytes of updated files.

It's a good idea to stop the Gnome Display Manager gdm all together,

# /etc/init.d/gdm stop

Since udev is being upgraded and it needs a newer kernel I installed one. Like this:

First, change your /etc/apt/sources.list file to use the testing (etch) repositories:

# nano /etc/apt/sources.list

I changed my kid's to read:

deb http://distro.ibiblio.org/pub/linux/distributions/debian/ etch main contrib non-free 
deb-src http://distro.ibiblio.org/pub/linux/distributions/debian/ etch main contrib non-free 

deb http://security.debian.org/ etch/updates main 
deb-src http://security.debian.org/ etch/updates main 
deb http://www.debian-multimedia.org/ etch main

You'll notice that the Marillat repositories are also changed now to etch as well.

After changing the sources.list file, and running

# apt-get update

I then searched out a newer kernel for their box. You should run

# uname -r (you were already root)

to find out which kernel you are currently using, then, you can search easily with apt like this

# apt-cache search linux-image

to see what your newer kernel should be. When you find the one that's right for your machine go ahead and install it and the linux-headers corresponding to it as well.

Next up I un-installed all my kernel module drivers like spca5xx and the nVIDIA driver binary. If you installed the same nvidia binary, for example by using my own nvidia driver install tutorial as a guide, then you'll have to uninstall it now as well. It's quick and easy:

# nvidia-installer --uninstall

For prep work that's really all that I did. If you've skimmed to here you'll have to update your kernel, remove any kernel drivers that you installed for your current one and then you'll be OK to upgrade.

For those worried about going from XFree86 to Xorg you can relax a little. You probably won't run into errors but if you do their fixes and the bugs reported thus far will be displayed for you in your terminal as you upgrade. Pay attention to any fixes and or errors that you may encounter. There were none on my kid's box. Again, abit NF7-S board, nvidia 6600gt card with an AMD Athlon 2700+ processor. When you goto reinstall your nVIDIA driver for Etch the procedure is a little different.

If you've finished your prep and installed a newer kernel now is the time you should reboot your machine into it. You won't have X when you log back in unless you've changed the reference to the nVIDIA driver in your /etc/X11/XF86Config-4 file. But you don't need X right now anyway.

Well, we're ready, so--

# apt-get update

# apt-get dist-upgrade

Ya -- that's it.

Lilo was installed on my kid's box during this upgrade because a file that was upgrading was conflicting with grub so grub was removed. I didn't note the "offending" file but it was important. I'm pretty sure it was udev. On my kid's machine the removal of grub and installation of lilo as the boot loader really didn't change anything. After I configured lilo and rebooted it was grub that presented me with boot options. Since grub was "removed" the new kernel that I installed was not listed in the /boot/grub/menu.lst file. So, I had to add it manually before I could boot into it, which was another simple procedure. [EDIT: First week August, 2006 - Lilo is since removed].

The reboot following this and the upgrade to Etch booted into new Gnome 2.14 desktop. There were no errors, no show-stoppers, no files for me to config. I simply had to reinstall any kernel drivers that I had on my kid's Sarge box. Being that the nvidia binary was the only driver installed on their machine that was the only one I had to reinstall.

This whole upgrade procedure really was painless and stoopid-easy, but don't get lazy or silly. A lot can go wrong. Have a plan, implement that plan and stick to that plan. Else, don't bother to upgrade yet, Sarge still does all that you need.

--machiner 3 Aug 06

Check out these cool [[Wikipedia]] tags. [[Clipper]] Ships & [[Organic Food]]s.

Comments
Add New
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly:
:dry::lol::kiss::D:pinch::(:shock:
:X:side::):P:unsure::woohoo::huh:
:whistle:;):s:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.
'chiner   |71.126.62.xxx |2006-08-22 03:42:20
$ lsmod
shows you a list of loaded modules
'Guest'  - kernel drivers   |64.53.138.xxx |2006-08-21 09:48:04
"remove any kernel drivers that you installed"

what's the best way to identify drivers you may have
forgotten about?
'Guest'   |72.74.114.xxx |2007-01-05 05:31:57
I have a custom 2.6.8 kernel, no udev. Do I have to upgrade or install udev if I move to etch?
machiner   |72.74.114.xxx |2007-01-05 05:44:15
I think yes, but it would be nice to hear from a developer on this. I remember not having udev on a
sarge system, but when I upgraded to Etch, udev wanted to be installed.


Please see the
following:



http://www.mail-archive.com/debia n-doc@lists.debian.org/msg09350.html



4.5.2 devfs deprecated

etch no longer provides support for devfs. It is recommended that
users
switch to udev for dynamic /dev management. Debian kernels
no longer include support for devfs, so devfs
users will need to
manually convert their systems before upgrading to an etch kernel.

If you see the
string 'devfs' in /proc/mounts, you are likely using devfs.
Any config files that reference devfs style names
will need to be adjusted
to use udev style names. Files that are most likely to refer to devfs style
device
names include /etc/fstab, /etc/lilo.conf, /boot/grub/menu.lst, etc.


More information about
potential issues is available in bug report #341152. ( http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3
41152 )


http://www200.pair.com/mecham/spam/kernel. html


###################

I'm pretty sure the answer is yes




'Guest'  - Alvah   |72.74.101.xxx |2007-02-20 05:10:06
Perfect work. Thanks for this site
Good bye!
Guest  - am a spammer   |71.162.77.xxx |2007-04-21 03:42:32
What a great site and excellent resource you have.
'Guest'  - No Longer Have to Change the sources.lis   |72.74.111.xxx |2007-04-22 03:44:06
You might want to change the above to reflect that since etch is now stable there is no need to change the
sources.list since it will be found in the standard repositories.

Thanks for the great resource.
Guest  - Spammer Bastard   |71.162.68.xxx |2007-06-21 12:07:50
Thank you for your work!
Luis   |173.52.14.xxx |2010-03-27 18:58:35
Hi machiner,

I see this forum is old. I had been trying the upgrade from Sarge 3.1 to Etch 4.0 and was stuck
until I saw you edit for sources.list file. I followed your model and that did the trick.

I now type: cat
/etc/debian_version
... and now get: 4.0 instead of that persistent 3.1

Thanks so much!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Thursday, 18 December 2008 01:19