Grimoire-
Command
.es

GNU+Linux command memo

Debian dist-upgrade : Jessie -> Stretch

Mise à jour majeure de GNU/Linux Debian. Exemple de Jessie à Stretch.

# apt update
# apt upgrade
# apt-get autoremove (1)
# vi /etc/apt/sources.list +:%s/jessie/stretch/gi +:wq
# apt update
# apt upgrade
# apt full-upgrade
# apt autoremove (1)
# apt clean
# reboot
1 apt autoremove is defined by apt-transport-https or its dependancies.

Between the 17th June of 2018 and until the 30th June 2020, if you have to upgrade to Jessie (the oldstable) from an older version, you’ll have to point your apt repositories (in /etc/apt/sources.list) at:

deb http://archive.debian.org/debian jessie main

Instead of regular mirors and apt will also need to be instructed to accept old packages via the following instruction :

echo 'Acquire::Check-Valid-Until no;' > /etc/apt/apt.conf.d/99no-check-valid-until