Upgrade Debian 10 to Debian 11

I use those steps on LXC virtual in Proxmox:

  1. Make sure all packages are upgraded: apt update && apt upgrade
  2. Backup container in Proxmox
  3. Edit release version: sed -i'.bak' 's/buster/bullseye/g' /etc/apt/sources.list
  4. Fix security distribution name: sed -i 's|bullseye/updates|bullseye-security|g' /etc/apt/sources.list
  5. Update other configuration files in /etc/apt/sources.list.d/ appropriately
  6. Update packages index: apt update
  7. Do minimal system upgrade: apt upgrade --without-new-pkgs
  8. Do full upgrade: apt full-upgrade
  9. Restart the system: reboot

Leave a Reply

Your email address will not be published. Required fields are marked *