Translation(s): Brasileiro - English - Español - Français - Italiano- Русский - Svenska

(!) ?Discussion


This page gives directions on how to upgrade your Debian distribution.

How to release upgrade your distribution

Upgrading from one stable release to the next (e.g. stretch to buster) is done by following the release notes for your architecture. For most people with 32 bit systems that means the Release Notes for Intel x86. For most with 64 bit systems that means the Release Notes for AMD64.

Performing a release upgrade is not without risk. The upgrade may fail, leaving the system in a non-functioning state. USERS SHOULD BACKUP ALL DATA before attempting a release upgrade.

Upgrades are done with package management tools, root or sudo access, and generally involve the following steps.

# in a text editor, replace the codename of your release with the next release (eg. buster with bullseye) in APT sources
$ sudo nano /etc/apt/sources.list /etc/apt/sources.list.d/*

# clean and update package lists
$ sudo apt clean
$ sudo apt update

# perform regular/minor upgrades
$ sudo apt upgrade     
# perform major release upgrade, removing packages if necessary
$ sudo apt dist-upgrade

# remove packages that are not required anymore
$ sudo apt autoremove

# reboot to make changes effective (optional)
$ /sbin/shutdown -r now

Now check the output of  uname -a  and you should see info about the upgraded system.


CategoryPackageManagement