Debian - Upgrade version (8, 9, 10, 11, 12 et 13)

Auteur : Vince Nadus
Date de publication : 9 septembre 2022
upgrade debian

apt-get update apt -y install lsb-release apt-transport-https ca-certificates wget apt-get upgrade apt-get full-upgrade

Debian 8 to 9 sed -i 's/jessie/stretch/g' /etc/apt/sources.list sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/*

Debian 9 to 10 sed -i 's/stretch/buster/g' /etc/apt/sources.list sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/*

Debian 10 to 11 sed -i 's/buster/bullseye/g' /etc/apt/sources.list sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/*

Debian 11 to 12 sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*

apt-get update apt-get upgrade apt-get full-upgrade

Upgrade PHP7.4 to 8.1 apt -y install lsb-release apt-transport-https ca-certificates wget wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list

apt install php8.1 php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-dev php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-intl -y For Apache using mpm_event, Nginx, Litespeed, etc., php8.1-fpm package provides integration with PHP 8.1 via FPM apt install php8.1-fpm -y For Apache using mod_php, install libapache2-mod-php8.1 apt install libapache2-mod-php8.1 -y

Désactivé l'ancienne version a2dismod php7.3 Activer la nouvelle a2enmod php8.1

a2disconf php7.3-fpm a2enconf php8.1-fpm Redémarrer Apache pour prise en charge du nouveau module

service apache2 restart

Si erreur de certificat root@ct-matomo:~# wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg --2022-09-14 22:26:11-- https://packages.sury.org/php/apt.gpg Resolving packages.sury.org (packages.sury.org)... 138.199.37.226 Connecting to packages.sury.org (packages.sury.org)|138.199.37.226|:443... connected. ERROR: The certificate of 'packages.sury.org' is not trusted. ERROR: The certificate of 'packages.sury.org' has expired.

I have finally fixed it! The issue was the DST Root CA X3 cross-sign has expired To fix it on debian:

run sudo dpkg-reconfigure ca-certificates
uncheck mozilla/DST_Root_CA_X3.crt
OK

Upgrade Matomo :

./path/to/matomo/console core:update

LXC Problème avec apache sed -i -e 's,PrivateTmp=true,PrivateTmp=false\nNoNewPrivileges=yes,g' /lib/systemd/system/apache2.service systemctl daemon-reload systemctl start apache2.service systemctl status apache2.service

LXC Problème avec MySQL Mettre le LXC en neting dans les options proxmox Arreter et Démarrer pour prendre la modification en compte

Unifi https://help.ui.com/hc/en-us/articles/220066768-UniFi-How-to-Install-and-Update-via-APT-on-Debian-or-Ubuntu https://community.ui.com/releases/UniFi-Network-Application-7-2-94/2ab774d1-0f24-422e-accc-53b8200c10a7