Steps to be performed to upgrade from etch (i386) to lenny. I don't explain why a certain step is done - read the manual found at step one. You should know what you're doing!
preperations
-
back up the contents of /etc, /var/lib/dpkg, /var/lib/aptitude/pkgstates and the output of dpkg –get-selections “*”
disable APT pinning
check packages status (dpkg –audit)
save status (dpkg –get-selections “*” > ~/curr-pkgs.txt)
remove any holds before upgrading (aptitude search ”~ahold” | grep “^.h”) or (dpkg –get-selections | grep hold)
adding APT Internet sources
upgrade
record the session (script -t 2>~/upgrade-lenny.time -a ~/upgrade-lenny.script) - type exit to end the script
view the script at the end of the session: less -R ~root/upgrade-lenny.script
aptitude update
apt-get install debian-keyring debian-archive-keyring
apt-key update
aptitude update
see what would be done: (aptitude -y -s -f –with-recommends dist-upgrade)
apt-get install apt
aptitude install aptitude
aptitude search ”?false”
aptitude upgrade
aptitude dist-upgrade
upgrade the kernel
dpkg -l “linux-image*” | grep ^ii
If you do not see any output, then you will need to install a new linux-image package by hand
before reboot
rerun lilo if you're not already using grub (/sbin/lilo)
after reboot
If the new kernel image metapackage was pulled in as a dependency of the old one, it will be marked as automatically installed, which should be corrected: aptitude unmarkauto $(dpkg-query -W 'linux-image-2.6-*' | cut -f1)
remove or update depreciated or obsolete packages