Updated almost 4 years ago by Jamila Khan

Debian 9 to 10

Update sources list

check which sources exist that point to stretch

cd /etc/apt
grep -nr stretch .

Edit the main list, and any others that come up

vim /etc/apt/sources.list

Upgrade the system

Check for Necessary Disk Space

apt-get -o APT::Get::Trivial-Only=true dist-upgrade

Update the sources

apt-get update

Minimal Upgrade

 apt-get upgrade
  • if it asks whether to change /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg, say yes
  • other things it asks to change, say no, keep the existing file

Full Upgrade

apt-get dist-upgrade

Upgrade MySQL databases (if MySQL/MariaDB installed)


Check that things are up

  • if a web server, make sure websites are up
  • if an infrastructure server, test and make sure all parts of the infrastructure are working properly
  • if a PTC server check the recovery plan entry for that server to make sure everything has recovered

Check what packages were removed

  • cat /var/log/apt/history.log | grep Remove
  • make sure there was nothing important in there

Common problems


  • Changes needed to the borg backupninja jobs #48568-1
    • need to add encryption = none just above the passphrase
    • change the path to the directory to be the complete full path, not use the tilde for home, and must start with a slash

mysql backup checking

Newest version of mariadb doesn't have separate databases for information schema or performance schema, so remove the old backups of those.

cd /var/backups/mysql/sqldump
rm information_schema.sql.gz
rm performance_schema.sql.gz


Need to re-replace the backupninja binary in /usr/sbin/backupninja

bang check

If using a script to check bang via wp, make sure the script uses the full path to /usr/local/bin/wp

Updated by Jamila Khan almost 4 years ago · 12 revisions

Also available in: PDF HTML TXT

Go to top