Upgrading Debian 9 Stretch to Debian 10 Buster

Major and minor upgrade steps from Debian 9 to Debian 10

* This page contains promotional content

Debian Upgrade

A major upgrade from Debian 9.x to 10.x

Upgrade procedure

Checking the version

$ cat /etc/debian_version
9.1

Updating

# apt-get update
# apt-get upgrade
# apt-get dist-upgrade

Rewriting sources.list

# sed -i 's/stretch/buster/g' /etc/apt/sources.list

Running the upgrade

# apt-get update
# apt-get upgrade

If any NFS-related daemons are running, stop them

# systemctl stop rpcbind

The final upgrade

# apt-get dist-upgrade

Rebooting

# /sbin/shutdown -r now

Checking the version

$ cat /etc/debian_version
10.0

Reference articles

Notes

This time I tested an upgrade from an almost bare Debian 9 to 10, but if you have all sorts of applications and customizations on a Debian 9.x box that is in service, it will not necessarily go well. When you carry out the update work, always take a backup and do it at your own risk

Minor version upgrade

Here I describe how to do a minor version upgrade from 10.2 to 10.3

Checking the current version

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 10 (buster)
Release:	10
Codename:	buster

$ cat /etc/debian_version
10.2

$ uname -mrs
Linux 4.19.0-6-amd64 x86_64

Upgrading

# apt update
# apt dist-upgrade
# shutdown -r now

Added the minor version upgrade from 10.8 to 10.9