Debian Upgrade (10 > 11)

Prerequisites

  • Internet connectivity.

  • Access the Debian repositories configured in:

    /etc/apt/sources.list y /etc/apt/sources.list.d
    
  • Access the Debian repositories configured in:

    • WOCU: 4gb en /opt.

    • To / implement:

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

To upgrade the operating system from Debian 10 to Debian 11 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 10 to safely make the jump to Debian 11.

apt update -y
apt upgrade -y

Upgrading OS to Debian 11

Change repositories to bullseye (debian 11):

sed  -i 's/buster/bullseye/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.

If the following error appears after an apt update -y

E: The repository 'http://security.debian.org/debian-security
bullseye/updates Release' does not have a Release file.

Execute the following:

sed  -i 's|bullseye/updates|bullseye-security|g' /etc/apt/sources.list

Execute the following:

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

It will be necessary to reboot as there are kernel and other package changes important:

reboot

After rebooting, confirm that we are on the updated OS with any of the following commands:

lsb_release -r
Release:    11
cat /etc/debian_version
11.7

Once confirmed, remove non-required packages:

apt autoremove -y --purge