informatique:serveurs:yilgarn:interventions:2025-11-23

Ceci est une ancienne révision du document !


2025-11-23 - Mise Yilgarn vers Debian 12 puis 13

Mise à jour vers Debian 12

  • lsb_release -a :
    No LSB modules are available.
    Distributor ID:	Debian
    Description:	Debian GNU/Linux 11 (bullseye)
    Release:	11
    Codename:	bullseye
  • uname -mrs :
    Linux 5.10.0-10-amd64 x86_64
  • cat /etc/debian_version :
    11.11
  • cd /home/admin/dwl/
  • mkdir -p /home/admin/dwl/upgrade-debian-11-to-12
  • cd /home/admin/dwl/upgrade-debian-11-to-12
  • chown -R admin: /home/admin/dwl
  • dpkg --get-selections "*" > system-$(lsb_release --codename|cut -f2)-$(date +"%Y-%m-%d")_installed_packages.txt
    tar -cjf system-$(lsb_release --codename|cut -f2)-$(date +"%Y-%m-%d")-var-lib-dpkg.tar.bz2  /var/lib/dpkg
    tar -cjf system-$(lsb_release --codename|cut -f2)-$(date +"%Y-%m-%d")-var-lib-apt-extended_states.tar.bz2 /var/lib/apt/extended_states
    tar -cjf system-$(lsb_release --codename|cut -f2)-$(date +"%Y-%m-%d")-etc.tar.bz2 /etc
    chmod 600 system-*
    chown admin: system-*
  • En local :
    • mkdir -p /home/jpm/Data/system-upgrade/yilgarn/debian-11-to-12
    • cd /home/jpm/Data/system-upgrade/yilgarn/debian-11-to-12
    • scp admin@yilgarn:/home/admin/dwl/upgrade-debian-11-to-12/system-* .
  • apt update
    apt upgrade
    apt full-upgrade
    apt autoremove --purge
  • find /etc -name “*.dpkg-*” -o -name “*.ucf-*” -o -name “*.merge-error” affiche :
    /etc/ssh/sshd_config.ucf-dist
    /etc/ssh/sshd_config.ucf-old
    /etc/ssh/ssh_config.dpkg-old
    /etc/default/grub.ucf-dist
    /etc/issue.net.dpkg-new
    /etc/issue.dpkg-new
    /etc/ca-certificates.conf.dpkg-old
    /etc/security/access.conf.dpkg-old
    /etc/bind/named.conf.options.dpkg-old
    /etc/cron.daily/bsdmainutils.dpkg-remove
    /etc/crontab.dpkg-old
  • Fichier sources.list pour Debian 12 :
    # Main
    deb http://deb.debian.org/debian bookworm main
    deb-src http://deb.debian.org/debian bookworm main
    # Security
    deb http://security.debian.org/debian-security bookworm-security main
    deb-src http://security.debian.org/debian-security bookworm-security main
    # Update
    deb http://deb.debian.org/debian bookworm-updates main
    deb-src http://deb.debian.org/debian bookworm-updates main
    # Backports
    deb http://deb.debian.org/debian bookworm-backports main contrib non-free
    deb-src http://deb.debian.org/debian bookworm-backports main contrib non-free
  • informatique/serveurs/yilgarn/interventions/2025-11-23.1763894002.txt.gz
  • Dernière modification : 2025/11/23 10:33
  • de jpmilcent