Fear of the Sarge
Jono and I are men who walk alone
And when we start to upgrade angel
I feel the fear get very large
When the package list begins to change
We sometimes feel a little strange
A little anxious when it’s sarge
Fear of the sarge, fear of the sarge
I have a constant fear that crashing’s always near
Fear of the sarge, fear of the sarge
I have a phobia that hell is nearly here
Today we upgraded angel, the machine that runs kryogenix.org and jonobacon.org and wolveslug.org.uk and phpwm.org and aurochs.org and dellah.com and lugradio.org and other stuff too from Debian woody to Debian sarge, the latest stable release. Pretty terrifying, especially since apt-get dist-upgrade doesn’t work properly between woody and sarge. What’s the point of running Debian, eh? The whole reason it’s better than everything else is that upgrading is done with one command! Anyway, that aside, the upgrade happened by:
- Typing
apt-get dist-upgradeand noting all the packages that it was going to remove or leave behind, and then cancelling it - Typing
apt-get upgradeand letting it upgrade all the stuff it was prepared to, which wasn’t much - Typing
apt-get install x y zwhere x and y and z (and more besides) are all the packages from the “remove or leave behind” list above that we actually need, like apache and mysql-server apt-get upgradeagainapt-get dist-upgradeapt-get dist-upgradeagain, to confirm that nothing was left to do- Adding the line
Include /etc/apache/conf.dto/etc/apache/httpd.conf - Fixing a bug in Debian’s mailman package by doing
ln -s /usr/share/mailman /var/lib/mailman/templatesand then creating the (newly required) “mailman” mailing list withnewlist mailman - Crossing fingers and rebooting to confirm that the box would come back up
It all worked.
That is a big weight off our minds, that.
And now angel should go down less (i.e., not at all!) Fingers crossed, again…
I did it about a month after Sarge came out. I’m still terrified of it. :-)
The upgrade failed about halfway the process, and I had to restart it while many services where still down. In the end, it seem to have worked, but I’m still afraid the machine won’t reboot next time I need it. :-)
-32821 seconds later
If you read the release notes, the supported way to upgrade is
aptitude dist-upgrade.-20641 seconds later