Debian 11 to 12 » History » Version 9
Hannah Siwiec, 01/26/2024 04:03 PM
1 | 7 | Hannah Siwiec | {{lastupdated_at}} by {{lastupdated_by}} |
---|---|---|---|
2 | |||
3 | {{>toc}} |
||
4 | |||
5 | 1 | Hannah Siwiec | h1. Debian 11 to 12 |
6 | |||
7 | 4 | Hannah Siwiec | h2. Pre update check |
8 | 2 | Hannah Siwiec | |
9 | 4 | Hannah Siwiec | h3. Stretch check |
10 | |||
11 | 2 | Hannah Siwiec | Check if any sources still point to buster |
12 | 3 | Hannah Siwiec | |
13 | 4 | Hannah Siwiec | <pre> |
14 | 2 | Hannah Siwiec | cd /etc/apt |
15 | grep -nr buster . |
||
16 | 4 | Hannah Siwiec | </pre> |
17 | 1 | Hannah Siwiec | |
18 | 3 | Hannah Siwiec | If so, bring those up to bullseye and run updates first |
19 | 1 | Hannah Siwiec | https://redmine.palantetech.coop/projects/commons/wiki/Debian_10_to_11 |
20 | |||
21 | 4 | Hannah Siwiec | h3. Metapackage check |
22 | |||
23 | 1 | Hannah Siwiec | Check to make sure kernel metapackage is installed, not just specific kernel |
24 | |||
25 | 4 | Hannah Siwiec | <pre> |
26 | dpkg -l "linux-image*" | grep ^ii | grep -i meta |
||
27 | </pre> |
||
28 | |||
29 | should have results |
||
30 | |||
31 | 1 | Hannah Siwiec | If not, install metapackage |
32 | 2 | Hannah Siwiec | https://www.debian.org/releases/bookworm/amd64/release-notes/ch-upgrading.en.html#kernel-metapackage |
33 | 1 | Hannah Siwiec | |
34 | 4 | Hannah Siwiec | h3. Purged package check |
35 | |||
36 | 1 | Hannah Siwiec | List and purge removed packages with config files remaining |
37 | 3 | Hannah Siwiec | https://www.debian.org/releases/bookworm/amd64/release-notes/ch-upgrading.en.html#purge-removed-packages |
38 | 2 | Hannah Siwiec | |
39 | 4 | Hannah Siwiec | <pre> |
40 | 2 | Hannah Siwiec | aptitude search '~c' |
41 | aptitude purge '~c' |
||
42 | 4 | Hannah Siwiec | </pre> |
43 | 1 | Hannah Siwiec | |
44 | 4 | Hannah Siwiec | h3. Hold check |
45 | |||
46 | 1 | Hannah Siwiec | These commands should have no results |
47 | 2 | Hannah Siwiec | |
48 | 4 | Hannah Siwiec | <pre> |
49 | 1 | Hannah Siwiec | aptitude search "~ahold" |
50 | 2 | Hannah Siwiec | dpkg --get-selections | grep 'hold$' |
51 | 4 | Hannah Siwiec | </pre> |
52 | 2 | Hannah Siwiec | |
53 | 1 | Hannah Siwiec | |
54 | 4 | Hannah Siwiec | h3. Update sources list |
55 | |||
56 | 2 | Hannah Siwiec | Check which sources exist that point to bullseye |
57 | 3 | Hannah Siwiec | |
58 | 4 | Hannah Siwiec | <pre> |
59 | 1 | Hannah Siwiec | cd /etc/apt |
60 | 2 | Hannah Siwiec | grep -nr bullseye . |
61 | 4 | Hannah Siwiec | </pre> |
62 | 2 | Hannah Siwiec | |
63 | 3 | Hannah Siwiec | Edit the main list, and any others that come up |
64 | 2 | Hannah Siwiec | |
65 | 4 | Hannah Siwiec | <pre> |
66 | 3 | Hannah Siwiec | vim /etc/apt/sources.list |
67 | 4 | Hannah Siwiec | </pre> |
68 | 1 | Hannah Siwiec | |
69 | replace bullseye with bookworm |
||
70 | |||
71 | 4 | Hannah Siwiec | <pre> |
72 | 2 | Hannah Siwiec | :%s/bullseye/bookworm/g |
73 | 4 | Hannah Siwiec | </pre> |
74 | 2 | Hannah Siwiec | |
75 | 1 | Hannah Siwiec | |
76 | 9 | Hannah Siwiec | *Good to check but should be done if upgraded from Debian 10 to 11* |
77 | replace bullseye/updates with bookworm-security |
||
78 | 4 | Hannah Siwiec | <pre> |
79 | 2 | Hannah Siwiec | :%s/bookworm\/updates/bookworm-security/g |
80 | 4 | Hannah Siwiec | </pre> |
81 | 1 | Hannah Siwiec | |
82 | https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#security-archive |
||
83 | |||
84 | 4 | Hannah Siwiec | h2. Upgrade the system |
85 | |||
86 | h3. Update the sources |
||
87 | |||
88 | <pre> |
||
89 | 1 | Hannah Siwiec | apt-get update |
90 | </pre> |
||
91 | |||
92 | 4 | Hannah Siwiec | h3. Check for Necessary Disk Space |
93 | |||
94 | <pre> |
||
95 | 1 | Hannah Siwiec | apt-get -o APT::Get::Trivial-Only=true dist-upgrade |
96 | 4 | Hannah Siwiec | </pre> |
97 | 1 | Hannah Siwiec | |
98 | |||
99 | 4 | Hannah Siwiec | h3. Minimal Upgrade |
100 | |||
101 | <pre> |
||
102 | 2 | Hannah Siwiec | apt-get upgrade |
103 | 4 | Hannah Siwiec | </pre> |
104 | 2 | Hannah Siwiec | |
105 | if it asks whether to change /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg, say yes |
||
106 | 1 | Hannah Siwiec | other things it asks to change, say no, keep the existing file |
107 | 2 | Hannah Siwiec | |
108 | 1 | Hannah Siwiec | |
109 | 4 | Hannah Siwiec | h3. Full Upgrade |
110 | |||
111 | <pre> |
||
112 | 2 | Hannah Siwiec | apt-get dist-upgrade |
113 | 4 | Hannah Siwiec | </pre> |
114 | 1 | Hannah Siwiec | |
115 | 4 | Hannah Siwiec | |
116 | 1 | Hannah Siwiec | Change configs during full upgrade? |
117 | 4 | Hannah Siwiec | |package | change configs| |
118 | | nrpe | no | |
||
119 | | sudoers | no | |
||
120 | | journald | no | |
||
121 | | backupninja | no | |
||
122 | | nginx | yes but recheck after | |
||
123 | | redis | yes but recheck after | |
||
124 | | sshd_config | yes but recheck after | |
||
125 | | glibc | yes | |
||
126 | | logrotate.d/apache2 | yes | |
||
127 | 1 | Hannah Siwiec | |
128 | 4 | Hannah Siwiec | h3. Upgrade MySQL databases (if MySQL/MariaDB installed) |
129 | |||
130 | <pre> |
||
131 | 2 | Hannah Siwiec | mysql_upgrade |
132 | 4 | Hannah Siwiec | </pre> |
133 | 2 | Hannah Siwiec | |
134 | |||
135 | 8 | Hannah Siwiec | h2. Validation Testing and Auditing Changes |
136 | 4 | Hannah Siwiec | |
137 | 2 | Hannah Siwiec | if a web server, make sure websites are up |
138 | if an infrastructure server, test and make sure all parts of the infrastructure are working properly |
||
139 | if a PTC server check the recovery plan entry for that server to make sure everything has recovered |
||
140 | 4 | Hannah Siwiec | |
141 | 8 | Hannah Siwiec | h3. Check what packages were removed |
142 | 2 | Hannah Siwiec | |
143 | 4 | Hannah Siwiec | <pre> |
144 | 2 | Hannah Siwiec | cat /var/log/apt/history.log | grep Remove |
145 | 4 | Hannah Siwiec | </pre> |
146 | 2 | Hannah Siwiec | copy that into ongoing updates documentation for records |
147 | 1 | Hannah Siwiec | Make sure there was nothing important in there |
148 | 2 | Hannah Siwiec | If there were important packages in there |
149 | |||
150 | 9 | Hannah Siwiec | * check aptitude to see if newer versions were already installed |
151 | * check debian package search to search for what version is appropriate (https://packages.debian.org/) |
||
152 | 2 | Hannah Siwiec | |
153 | 9 | Hannah Siwiec | |
154 | 4 | Hannah Siwiec | h2. Common problems |
155 | 2 | Hannah Siwiec | |
156 | 4 | Hannah Siwiec | |
157 | 2 | Hannah Siwiec | h3. NO_PUBKEY during update |
158 | |||
159 | 9 | Hannah Siwiec | When issues are encountered they should be listed here to ease future troubleshooting! |
160 | 4 | Hannah Siwiec | |
161 | h3. Backupninja changes |
||
162 | 1 | Hannah Siwiec | |
163 | After update, backupninja likely needs to be patched |
||
164 | https://redmine.palantetech.coop/projects/pt/wiki/Icinga2#Patch-the-backupninja-binary |
||
165 | |||
166 | Borg backup jobs to May First need to have port = 2201 added to the destination section. |