Migration Debian oldstable vers Debian stable

Mise à jour : Debian 11.1

Référence

Sommaire

1 - Informations et documentations

2 - Mise à jour du système existant

$ cat /etc/debian_version
10.11
$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ sudo aptitude update
$ sudo aptitude safe-upgrade

3 - Préparation de la migration

3.1 - Nettoyage du système existant

$ aptitude search ~b
$ dpkg --audit
$ aptitude search '~ahold'
$ sudo aptitude unhold '~ahold'
$ aptitude search ~c
$ sudo aptitude purge ~c
$ aptitude search ~g
$ sudo aptitude purge ~g

3.2 - Mise à jour sources.list

cat /etc/apt/sources.list
# bullseye
deb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main non-free contrib

# bullseye-updates, previously known as 'volatile
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free

# bullseye-backports, previously on backports, debian.org
deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-backports main contrib non-free

# bullseye-proposed-updates
deb http://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free

# debian security
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http:deb.debian.org/debian-security/ bullseye-security main contrib non-free
$ aptitude search '~i(!~ODebian)'

3.3 - Mise à jour "preference.d"

4 - Migration

$ sudo apt update
$ sudo apt upgrade --without-new-pkgs
$ sudo apt full-upgrade
$ sudo apt --purge autoremove
$ sudo apt autoremove
$ cat /etc/debian_version
11.1
$ sudo reboot

5 - Finalisation

5.1 - Divers

$ sudo aptitude update
$ sudo aptitude safe-upgrade
$ sudo aptitude full-upgrade
$ sudo aptitude purge ~c
$ sudo aptitude search ~b
$ sudo aptitude update
$ sudo aptitude upgrade

5.2 - Supprimer les paquets obsolètes

$ sudo aptitude search '~o'
i gcc-8-base - GCC, the GNU Compiler Collection (base pac
i libapt-inst2.0 - deb package format runtime library
i libapt-pkg5.0 - package management runtime library
i libdns-export1104 - Exported DNS Shared Library
i libffi6 - Foreign Function Interface library runtime
i libgcc1 - GCC support library
i libhogweed4 - low level cryptographic library (public-ke
i libip4tc0 - netfilter libip4tc library
i libip6tc0 - netfilter libip6tc library
i libisc-export1100 - Exported ISC Shared Library
i libjson-c3 - JSON manipulation library - shared library
i libnettle6 - low level cryptographic library (symmetric
i libprocps7 - library for accessing process information
i A libxfce4ui-1-0 - widget library for Xfce - Gtk+2 variant
i A libxfconf-0-2 - Client library for Xfce4 configure interfa
i perl-modules-5.28 - Core Perl modules
$ sudo aptitude purge '~o'

5.3 - Réinstaller les paquets non debian