Project

General

Profile

Debian 10 to 11 » History » Version 2

Jamila Khan, 12/21/2021 05:00 PM

1 2 Jamila Khan
{{lastupdated_at}} by {{lastupdated_by}}
2
3
{{>toc}}
4
5 1 Jamila Khan
h1. Debian 10 to 11
6
7 2 Jamila Khan
h2. Pre update check
8
9
h3. Stretch check
10
11
Check if any sources still point to stretch
12
13
<pre>
14
cd /etc/apt
15
grep -nr stretch .
16
</pre>
17
18
If so, bring those up to buster and run updates first
19
https://redmine.palantetech.coop/projects/commons/wiki/Debian_9_to_10
20
21
h3. Metapackage check
22
23 1 Jamila Khan
Check to make sure kernel metapackage is installed, not just specific kernel
24
25 2 Jamila Khan
@dpkg -l "linux-image*" | grep ^ii | grep -i meta@ should have results
26
If not, install metapackage
27
https://www.debian.org/releases/bullseye/amd64/release-notes/ch-upgrading.en.html#kernel-metapackage
28 1 Jamila Khan
29 2 Jamila Khan
h3. Purged package check
30
31
List and purge removed packages with config files remaining
32
https://www.debian.org/releases/bullseye/amd64/release-notes/ch-upgrading.en.html#purge-removed-packages
33
34
<pre>
35
aptitude search '~c'
36
aptitude purge '~c'
37
</pre>
38
39
40
h2. Update sources list
41
42
Check which sources exist that point to buster
43
<pre>
44
cd /etc/apt
45
grep -nr buster .
46
</pre>
47
48
Edit the main list, and any others that come up
49
50
<pre>
51
vim /etc/apt/sources.list
52
</pre>
53
54
<pre>
55
:%s/buster/bullseye/g
56
</pre>
57
58
h2. Upgrade the system
59
60
h3. Check for Necessary Disk Space
61
62
<pre>apt-get -o APT::Get::Trivial-Only=true dist-upgrade</pre>
63
64
h3. Update the sources
65
66
<pre>
67
apt-get update
68
</pre>
69
70
h3. Minimal Upgrade
71
72
<pre> apt-get upgrade</pre>
73
74
* if it asks whether to change /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg, say yes
75
* other things it asks to change, say no, keep the existing file
76
77
h3. Full Upgrade
78
79
<pre>
80
apt-get dist-upgrade
81
</pre>
82
83
h3. Upgrade MySQL databases (if MySQL/MariaDB installed)
84
85
<pre>
86
mysql_upgrade
87
</pre>
88
89
h3. Check that things are up
90
91
* if a web server, make sure websites are up
92
* if an infrastructure server, test and make sure all parts of the infrastructure are working properly
93
* 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
94
95
h3. Check what packages were removed
96
97
* @cat /var/log/apt/history.log | grep Remove@
98
* make sure there was nothing important in there
99
100
101
h2. Common problems
102
103
tbd
Go to top