Debian9 upgrade to Debian10

Foreword

At present, cloud service providers offer only a mirror image of the latest 9, the paper explains the method to upgrade 10

text

View the current version

lsb_release -a

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.0 (stretch)
Release:        9.0
Codename:       stretch

The current version is 9.0

Update to the latest version of the current version

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

If the process of selecting a reminder to make way

 install the package maintainer's version
 keep the local version currently installed
 show the differences between the versions

We choose the first

Apt to modify the source 10

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

debian9 strech of code, which code is replaced buster is debian10

Update apt indexes

apt-get update

Upgrade to debian10

apt-get upgrade
apt-get dist-upgrade

Select yes option appears

Select option appeared more options

Restart

Reboot the system

reboot

Verify the version

lsb_release -a

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

Clean up the old version of the software

apt-get autoremove

Guess you like

Origin www.cnblogs.com/chnmig/p/12661605.html