Pre-Upgrade Preparation
1
Update Debian 11
Ensure your current system is fully updated:
2
Disable third-party repositories
Comment out or remove third-party repository entries in
/etc/apt/sources.list and /etc/apt/sources.list.d/.Upgrade Process
1
Update sources list
Replace
bullseye with bookworm:2
Update package lists
3
Upgrade packages
4
Perform distribution upgrade
5
Reboot
6
Verify upgrade
After rebooting, check the new version:
Post-Upgrade Steps
1
Re-enable third-party repositories
Update third-party repositories to their Debian 12 versions if available.
2
Clean up
Remove obsolete packages:
3
Verify services
Check that all essential services are running correctly.

