Debian Upgrade (9 > 10)

Prerequisites

  • Internet connectivity.

  • Access the Debian repositories configured in:

    /etc/apt/sources.list y /etc/apt/sources.list.d
    
  • Have sufficient free space:

    • WOCU: 4gb en /opt.

    • To / implement:

    apt -o APT::Get::Trivial-Only=true full-upgrade
    

To upgrade the operating system from Debian 9 to Debian 10 with a WOCU-Monitoring installed, the following steps must be performed in a system terminal.

Important

All commands must be run on a console as root or with administrator privileges.

Stop WOCU-Monitoring

Stop WOCU services:

wocu-ctl stop

Confirm that services are stopped:

wocu-ctl status

Upgrade packages and current OS

Update the system with the latest available packages. It is importantnot to skip this step, as you need a fully upgraded from Debian 9 to make the leap to Debian 10 with safely.

apt update -y
apt upgrade -y

Upgrading OS to Debian 10

Change repositories to buster (Debian 10):

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

Update the apt repository:

apt update -y
apt upgrade -y
apt full-upgrade -y

Note

The system will prompt to maintain or update the settings of the applications to the new package, by default, select to all no update.

It will be necessary to reboot, as there is a change of kernel and other important packages:

reboot

After the reboot, confirm the updated OS with any of the commands below:

lsb_release -r
Release:    10
cat /etc/debian_version
10.11

Once confirmed, remove unrequired packages:

apt autoremove -y --purge