Project

General

Profile

Debian 9 to 10 » History » Version 12

Jamila Khan, 05/04/2020 03:42 PM
adding check for removed programs

1 1 Jamila Khan
{{lastupdated_at}} by {{lastupdated_by}}
2
3
{{>toc}}
4
5
h1. Debian 9 to 10
6
7
h2. Update sources list
8
9 4 Jamila Khan
check which sources exist that point to stretch
10
<pre>
11
cd /etc/apt
12
grep -nr stretch .
13
</pre>
14
15
Edit the main list, and any others that come up
16
17 1 Jamila Khan
<pre>
18
vim /etc/apt/sources.list
19
</pre>
20
21
<pre>
22
:%s/stretch/buster/g
23
</pre>
24
25
h2. Upgrade the system
26
27
h3. Check for Necessary Disk Space
28
29
<pre>apt-get -o APT::Get::Trivial-Only=true dist-upgrade</pre>
30
31
h3. Update the sources
32
33
<pre>
34
apt-get update
35
</pre>
36
37
h3. Minimal Upgrade
38
39
<pre> apt-get upgrade</pre>
40
41 5 Jamila Khan
* if it asks whether to change /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg, say yes
42 6 Jamila Khan
* other things it asks to change, say no, keep the existing file
43 5 Jamila Khan
44 1 Jamila Khan
h3. Full Upgrade
45
46
<pre>
47
apt-get dist-upgrade
48
</pre>
49
50
h3. Upgrade MySQL databases (if MySQL/MariaDB installed)
51
52
<pre>
53
mysql_upgrade
54
</pre>
55
56 10 Jamila Khan
h3. Check that things are up
57
58
* if a web server, make sure websites are up
59
* if an infrastructure server, test and make sure all parts of the infrastructure are working properly
60 11 Jamila Khan
* if a PTC server check the "recovery plan":https://redmine.palantetech.coop/projects/pt/wiki/Recovery_Plan entry for that server to make sure everything has recovered
61 10 Jamila Khan
62 12 Jamila Khan
h3. Check what packages were removed
63
64
* @cat /var/log/apt/history.log | grep Remove@
65
* make sure there was nothing important in there
66
67
68 1 Jamila Khan
h2. Common problems
69 2 Jamila Khan
70
h3. borg
71
72
* Changes needed to the borg backupninja jobs #48568-1
73
** need to add @encryption = none@ just above the passphrase
74 3 Jamila Khan
** change the path to the directory to be the complete full path, not use the tilde for home, and must start with a slash
75 7 Jamila Khan
76
h3. mysql backup checking
77
78
Newest version of mariadb doesn't have separate databases for information schema or performance schema, so remove the old backups of those.
79
80
<pre>
81
cd /var/backups/mysql/sqldump
82
rm information_schema.sql.gz
83
rm performance_schema.sql.gz
84
</pre>
85 8 Jamila Khan
86
h3. Icinga2
87
88
Need to re-replace the backupninja binary in /usr/sbin/backupninja https://redmine.palantetech.coop/projects/pt/wiki/Icinga2#Backupninja-monitoring
89 9 Jamila Khan
90
h3. bang check
91
92
If using a script to check bang via @wp@, make sure the script uses the full path to @/usr/local/bin/wp@
Go to top