Upgrade Debian from 12 (bookworm) to 13 (trixie), for iRedMail Enterprise Edition.

Warning

This is still a DRAFT document, do NOT apply it now.

SOGo Groupware

SOGo team doesn't offer binary packages for Debian 13 (and CentOS Stream 10 too) yet, so if you're running SOGo on Debian 12, please wait for some more time and leave a reply in SOGo bug tracker to let them know you need it.

BEFORE OS upgrade

perl -pi -e 's/^(log_timezone.*)/#${1}/g' /etc/postgresql/15/main/postgresql.conf
perl -pi -e 's/^(timezone.*)/#${1}/g' /etc/postgresql/15/main/postgresql.conf
export LANG=C
export LC_ALL=C
export LC_CTYPE=C

Upgrade OS

Follow the Debian official upgrade tutorial to upgrade Debian from version 12 to 13.

During OS upgrade, please pay close attention to few steps:

Here's a third-party tutorial, short, simple, and it works. Below are the commands you need to run:

apt update
apt full-upgrade -y
perl -pi -e 's#bookworm#trixie#g' /etc/apt/sources.list
perl -pi -e 's#bookworm#trixie#g' /etc/apt/sources.list.d/sogo.list
apt update
apt upgrade --without-new-pkgs -y
apt full-upgrade --autoremove -y
apt --purge autoremove -y
apt autoclean
systemctl disable apache2
systemctl enable nginx
apt remove --purge -y 'php8.2*'
reboot

After OS upgrade

That's all.