871 B
871 B
Debian
Upgrade to latest stable
Enure backups !
Ensure everything is up to date
apt-get update
apt-get upgrade
apt-get dist-upgrade
Check package db consistency
dpkg -C
Check hold packages
Hold packages will not be upgraded, ensure there is no deps shit
apt-mark showhold
If there is anything, check with dpkg --audit
Update source list
Check
sed s/$OLDSTABLE/$STABLE/g /etc/apt/source.list
# for exemple
sed s/stretch/buster/g /etc/apt/source.list
Is it's ok, go
sed -i s/stretch/buster/g /etc/apt/source.list
Do not forget stuff in source.list.d
find /etc/apt/sources.list.d/ -type f -exec sed -i s/stretch/buster/g {} \;
Simulate
apt update
apt --list upgradable
Go
apt-get upgrade
apt-get dist-upgrade
Enjoy !