Upgrading a Samba domain controller from Debian11 Bullseye to Debian12 Bookworm
Warning
If you use eth type network interfaces, you should set yourself in grub to keep your interface in eth format.
You need to reconfigure tissamba.list :
wget -qO- https://samba.tranquil.it/tissamba-pubkey.gpg | tee /usr/share/keyrings/tissamba.gpg > /dev/null sha256sum /usr/share/keyrings/tissamba.gpg bd0f7140edd098031fcb36106b24a6837b067f1c847f72cf262fa012f14ce2dd /usr/share/keyrings/tissamba.gpg echo "deb [signed-by=/usr/share/keyrings/tissamba.gpg] https://samba.tranquil.it/debian/samba-4.20/ $(lsb_release -c -s) main" > /etc/apt/sources.list.d/tissamba.list
Update repositories configuration for NonFreeFirmware, update all PGP keys and all repositories :
echo 'APT::Get::Update::SourceListWarnings::NonFreeFirmware "false";' > /etc/apt/apt.conf.d/no-bookworm-firmware.conf sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list /etc/apt/sources.list.d/*
Update the host:
apt-get update apt-get dist-upgrade
Hint
If you have an error during the dist-upgrade, you can use the command “apt –fix-broken install” to fix it.
Change the ntp configuration with chronyd: configure the NTP service (chrony). This is a very important step !
Restart the host:
reboot
Check the version of the Samba server:
samba-tool --version