-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebian-upgrade-path.txt
More file actions
72 lines (47 loc) · 1.59 KB
/
debian-upgrade-path.txt
File metadata and controls
72 lines (47 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Upgrading Debian 11 to 13: The Safe Path
So, you're on Debian 11 (Bullseye) and want to jump to Debian 13 (Trixie). Maybe you saw some shiny new package, or you just want to be on the cutting edge (or as cutting edge as Debian gets).
But here's the catch: **You can't skip a version.**
Debian upgrades are designed to be sequential. Jumping from 11 straight to 13 is a recipe for a broken system (frankstein packages, dependency hell, the works). The safe path is **11 → 12 → 13**.
Here is the quick gist of how to do it properly.
## Phase 1: Bullseye (11) to Bookworm (12)
First, make sure your current system is fully updated and clean.
```bash
# Clean up any broken sources first!
# If you have 404 errors on backports, comment them out in /etc/apt/sources.list
sudo apt update
sudo apt full-upgrade -y
```
Now, switch your sources to Bookworm.
```bash
sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
```
Run the upgrade. This is the big one.
```bash
sudo apt update
sudo apt full-upgrade -y
```
**Reboot your system.**
## Phase 2: Bookworm (12) to Trixie (13)
Welcome back. You are now on Debian 12. Let's keep going.
Update your sources to Trixie.
```bash
sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
```
Run the upgrade again.
```bash
sudo apt update
sudo apt full-upgrade -y
```
## Phase 3: Cleanup
You made it. Now clean up the leftovers.
```bash
sudo apt autoremove -y
sudo reboot
```
## Verification
When you're back, check your version:
```bash
cat /etc/debian_version
# Should output 13.x (or testing/trixie)
```
And that's it. You have successfully time traveled.