Upgrade Debian to latest release
To upgrade Debian to the next release, follow these steps:
Backup Your System: Ensure you have a complete backup of your system and important files.
Update Current Packages:
sudo apt update && sudo apt upgrade -y sudo apt full-upgrade -y
Change the APT Sources: Update your
/etc/apt/sources.list
file to replacebullseye
withbookworm
. You can use the following command:sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
Update Package Lists:
sudo apt update
Upgrade to Bookworm: Run the upgrade commands:
sudo apt upgrade -y sudo apt full-upgrade -y
Reboot Your System:
sudo reboot now
Verify the Upgrade: After rebooting, check the Debian version:
lsb_release -a
Make sure to read the release notes for Debian Bookworm to address any specific changes or issues.