How to upgrade your Debian 9 (stretch) VPS to Debian 10 (buster) Print

  • vps, debian, 10, debian10, virtuozzo, openvz, upgrade
  • 3148

Upgrades to Debian 10 from the previous release, Debian 9 (code name stretch) are automatically handled by the apt package management tool for most configurations. As always, Debian systems may be upgraded painlessly, in place, without any forced downtime

All our Debian Linux VPS plans support Debian 10 without any modifications.

If you have Debian 9 VPS with HillHost you can easily upgrade to Debian 10 by following the instructions below:

  1. Make sure you are using Debian 9 (cat /etc/debian_version)
  2. Use the following commands to upgrade Debian from 9 to 10:

apt-get update

apt-get upgrade

apt-get dist-upgrade

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

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

apt-get update

apt-get --with-new-pkgs upgrade

After next command you will be asked to replace or keep old configuration files (recommended to replace if you do not have any changes)

apt-get dist-upgrade

sed -i 's/passwd:.*/passwd: compat files systemd/' /etc/nsswitch.conf

sed -i 's/group:.*/group: compat files systemd/' /etc/nsswitch.conf

Once all steps are complete you can easily reboot your VPS.

Was this answer helpful?

« Back