http://nickj.org/index.php?title=Upgrade_Debian_Woody_to_Debian_Sarge&feed=atom&action=historyUpgrade Debian Woody to Debian Sarge - Revision history2024-03-29T01:16:00ZRevision history for this page on the wikiMediaWiki 1.22.6http://nickj.org/index.php?title=Upgrade_Debian_Woody_to_Debian_Sarge&diff=3007&oldid=prevNickj: New page: A very helpful resource is the [http://www.debian.org/releases/sarge/i386/release-notes/ch-upgrading.en.html the official upgrade manual]. Make a backup of sources.list: cd /etc/apt cp ...2008-05-15T07:37:42Z<p>New page: A very helpful resource is the [http://www.debian.org/releases/sarge/i386/release-notes/ch-upgrading.en.html the official upgrade manual]. Make a backup of sources.list: cd /etc/apt cp ...</p>
<p><b>New page</b></p><div>A very helpful resource is the [http://www.debian.org/releases/sarge/i386/release-notes/ch-upgrading.en.html the official upgrade manual].<br />
<br />
Make a backup of sources.list:<br />
cd /etc/apt<br />
cp sources.list sources.list.woody<br />
<br />
Check aptitude is installed:<br />
dpkg -l aptitude<br />
<br />
Check nothing found:<br />
dpkg --audit<br />
<br />
Save installed packages:<br />
dpkg --get-selections > /etc/apt/woody-pkgs.txt<br />
<br />
Check nothing found:<br />
aptitude search "~ahold" | grep "^.h"<br />
dpkg --get-selections | grep hold<br />
<br />
Update from woody to sarge in the sources.list :<br />
nano /etc/apt/sources.list<br />
:%s/woody/sarge/g<br />
<br />
Keep a log of the upgrade process:<br />
script -a ~/upgrade-to-sarge.typescript<br />
<br />
Update list of known packages (should say sarge, not woody, in the downloads)<br />
apt-get update<br />
<br />
Upgrade aptitude:<br />
aptitude install aptitude<br />
<br />
Dist-upgrade with aptitude:<br />
aptitude -f --with-recommends dist-upgrade<br />
<br />
Debconf:<br />
Priority of questions: high (medium is the default)<br />
<br />
== Post configuration setup ==<br />
<br />
Remove some obsolete packages that I had installed by hand previously:<br />
<br />
Remove ucspi-tcp-src<br />
apt-get remove --purge ucspi-tcp-src<br />
<br />
Remove qmail-src<br />
apt-get remove --purge qmail-src<br />
<br />
== Recover from failed reboot == <br />
<br />
Rebooted - machine did not boot up. <br />
Gave following LILO error:<br />
Bootable CD not exist ...<br />
<br />
LI<br />
<br />
To resolve did this:<br />
# Download and burn Debian 4.0r0 netinst i386 disk<br />
# Boot from CD<br />
# press F1<br />
# press F4 <br />
# type "rescue" <br />
# go through initial 7 or 8 steps<br />
# choose "execute a shell in /dev/ide/host0/bus0/target0/kun0/part5"<br />
<br />
Then:<br />
cat /etc/fstab<br />
Mount the partitions listed there:<br />
mount /usr<br />
mount /var<br />
mount /home<br />
mount /proc<br />
Re-run lilo:<br />
cat /etc/lilo.conf<br />
lilo<br />
reboot<br />
<br />
... came back okay after the reboot.</div>Nickj