#1 By: Paul Knight, January 29th, 2010 09:49
I didn't see a guide or FAQ about this, and I didn't want to follow a generic Debian one, in case it breaks something Bytemark specific.
I'm still using debian 4 (etch) and want to upgrade to 5 (lenny). I'm up-to-date with the latest etch packages. I haven't ever changed /etc/apt/sources.list, so it's still pointing to etch. Is it just a matter of changing it to point to lenny? (ie. %s/etch/lenny/g), and then running 'apt-get update && apt-get dist-upgrade'? Should I then reboot with 'reboot'?
#2 By: Phill Luckhurst, January 29th, 2010 10:29
You've got it, just update your sources list then run apt-get as you describe. Works a treat.
#3 By: Maurice Kelly, January 30th, 2010 06:16
I suggest that after you update your sources list you 'apt-get update && apt-get upgrade apt aptitude'
Once you're running the lenny version of aptitude, then perform this:
From what I've read this should perform a minimal upgrade. I performed this during last week on my own etch system and this got pretty much all my basic services upgraded. After that perform the normal:
This should update the rest of your system.
A word of warning if you're anything like me. My exim4 config was seriously out of date, and I was unable to run it without accepting the new config and porting my existing config across. Everything else was pretty smooth.
#4 By: Paul Knight, January 31st, 2010 12:30
Great, thanks. Do these 404 errors I get when apt-get update'ing matter?
Failed to fetch http://packages.bytemark.co.uk/apt/dists/lenny/main/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://packages.bytemark.co.uk/apt/dists/lenny/contrib/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://packages.bytemark.co.uk/apt/dists/lenny/non-free/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://packages.bytemark.co.uk/apt/dists/lenny/main/source/Sources.gz 404 Not Found
Failed to fetch http://packages.bytemark.co.uk/apt/dists/lenny/contrib/source/Sources.gz 404 Not Found
Failed to fetch http://packages.bytemark.co.uk/apt/dists/lenny/non-free/source/Sources.gz 404 Not Found
My sources.list is now:
deb ftp://mirror.bytemark.co.uk/debian/ lenny main contrib non-free
deb-src ftp://mirror.bytemark.co.uk/debian/ lenny main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://packages.bytemark.co.uk/apt lenny main contrib non-free
#5 By: Paul Knight, February 6th, 2010 09:44
I ignored those 404 errors and it upgraded fine - mostly. The default configuration for MySQL has log_bin disabled, but expire_logs_days is enabled. This crashes at start-up, as it requires log_bin to be enabled.
#6 By: Imran Chaudhry, February 19th, 2010 04:41
Glad to hear your upgrade went well. For future upgrades you might want to consult the page on the debian.org site for this purpose. I followed it for several etch > lenny upgrades. One useful thing is the dpkg --get-selections command to save a list of all installed packages.
Regarding the MySQL config issue, you should report this to Debian using their Bug Tracking system so that it can hopefully be noted for the next upgrade path:
#7 By: James Baster, March 19th, 2011 06:25
when I run apt-get dist-upgrade I get
The following packages will be REMOVED:
mysql-server mysql-server-5.0 (among others)
So I canceled, and found a bug report on this http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600919Anyone else come across this?
#8 By: James Baster, March 19th, 2011 19:30
Turned out not to have a problem with mysql. I went ahead after several backups. I just reinstalled the mysql-server afterwards and it's all fine, even picked up my old databases so backups not needed.
One thing is that I found several blog posts from people who had problems because config variables have been removed in mysql 5.1 (skip-bdb). I made sure to install the package maintainers version of my.cnf instead of keeping the old one when it asked me to avoid any such problems.