User Tools

Site Tools


Upgrading Debian Etch to Lenny

Non-X Server

aptitude update; aptitude dist-upgrade

Back up the contents of /home, /etc, /var/lib/dpkg, /var/lib/aptitude/pkgstates and the output of dpkg –get-selections “*” (the quotes are important).

Edit /etc/apt/sources.list:

deb lenny main
deb-src lenny main
deb lenny/updates main contrib
deb-src lenny/updates main contrib

Avoiding Grub Unable to Find Root Filesystem

  • Label the filesystem (the name must be < 16 characters) by running the command: e2label /dev/hda6 rootfilesys
  • Edit /boot/grub/menu.lst and change the line:
  # kopt=root=/dev/hda6 ro


  # kopt=root=LABEL=rootfilesys ro
  • Update the kernel lines in menu.lst by running the command update-grub.
  • Edit /etc/fstab and change the line that mounts the / partition, e.g.:
  /dev/hda6     /     ext3  defaults,errors=remount-ro 0 1


  LABEL=rootfilesys     /     ext3  defaults,errors=remount-ro 0 1

The change that matters here is the first column, you don't need to modify the other columns of this line.

Everything that follows should be from a local terminal as root:

Record the session:

script -t 2>~/upgrade-lenny.time -a ~/upgrade-lenny.script

Issue the following in sequence:

aptitude update
aptitude install aptitude
aptitude search "?false"
aptitude upgrade
aptitude install libfam0
aptitude dist-upgrade
articles/etchtolenny.txt · Last modified: 2009/04/24 13:56 by timallen