Updated almost 2 years ago by Jamila Khan
Check if any sources still point to stretch
cd /etc/apt grep -nr stretch .
If so, bring those up to buster and run updates first
https://redmine.palantetech.coop/projects/commons/wiki/Debian_9_to_10
Check to make sure kernel metapackage is installed, not just specific kernel
dpkg -l "linux-image*" | grep ^ii | grep -i meta
should have results
If not, install metapackage
https://www.debian.org/releases/bullseye/amd64/release-notes/ch-upgrading.en.html#kernel-metapackage
List and purge removed packages with config files remaining
https://www.debian.org/releases/bullseye/amd64/release-notes/ch-upgrading.en.html#purge-removed-packages
aptitude search '~c' aptitude purge '~c'
These commands should have no results
aptitude search "~ahold" dpkg --get-selections | grep 'hold$'
Check which sources exist that point to buster
cd /etc/apt grep -nr buster .
Edit the main list, and any others that come up
vim /etc/apt/sources.list
replace buster with bullseye
:%s/buster/bullseye/g
replace bullseye/updates with bullseye-security
:%s/bullseye\/updates/bullseye-security/g
https://www.debian.org/releases/bullseye/amd64/release-notes/ch-information.en.html#security-archive
apt-get update
If you get a NO_PUBKEY error, see https://redmine.palantetech.coop/projects/commons/wiki/Debian_10_to_11#Common-problems
apt-get -o APT::Get::Trivial-Only=true dist-upgrade
apt-get upgrade
apt-get dist-upgrade
package | change configs |
nrpe | no |
sudoers | no |
journald | no |
backupninja | no |
nginx | yes but recheck after |
redis | yes but recheck after |
sshd_config | yes but recheck after |
glibc | yes |
logrotate.d/apache2 | yes |
mysql_upgrade
cat /var/log/apt/history.log | grep Remove
W: GPG error: https://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8
0 meat:/etc/apt# sudo gpg -a --export 7FCC7D46ACCC4CF8 | sudo apt-key add -
After update, backupninja likely needs to be patched
https://redmine.palantetech.coop/projects/pt/wiki/Icinga2#Patch-the-backupninja-binary
Borg backup jobs to May First need to have port = 2201
added to the destination section.