Skip to content

Commit 20656bd

Browse files
committed
content(post): debian 11 to 13 upgrade guide
1 parent 207329d commit 20656bd

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Upgrading Debian 11 to 13: The Safe Path
2+
3+
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).
4+
5+
But here's the catch: **You can't skip a version.**
6+
7+
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**.
8+
9+
Here is the quick gist of how to do it properly.
10+
11+
## Phase 1: Bullseye (11) to Bookworm (12)
12+
13+
First, make sure your current system is fully updated and clean.
14+
15+
```bash
16+
# Clean up any broken sources first!
17+
# If you have 404 errors on backports, comment them out in /etc/apt/sources.list
18+
sudo apt update
19+
sudo apt full-upgrade -y
20+
```
21+
22+
Now, switch your sources to Bookworm.
23+
24+
```bash
25+
sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
26+
```
27+
28+
Run the upgrade. This is the big one.
29+
30+
```bash
31+
sudo apt update
32+
sudo apt full-upgrade -y
33+
```
34+
35+
**Reboot your system.**
36+
37+
## Phase 2: Bookworm (12) to Trixie (13)
38+
39+
Welcome back. You are now on Debian 12. Let's keep going.
40+
41+
Update your sources to Trixie.
42+
43+
```bash
44+
sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
45+
```
46+
47+
Run the upgrade again.
48+
49+
```bash
50+
sudo apt update
51+
sudo apt full-upgrade -y
52+
```
53+
54+
## Phase 3: Cleanup
55+
56+
You made it. Now clean up the leftovers.
57+
58+
```bash
59+
sudo apt autoremove -y
60+
sudo reboot
61+
```
62+
63+
## Verification
64+
65+
When you're back, check your version:
66+
67+
```bash
68+
cat /etc/debian_version
69+
# Should output 13.x (or testing/trixie)
70+
```
71+
72+
And that's it. You have successfully time traveled.

public/posts/posts.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
[
2+
{
3+
"slug": "debian-upgrade-path",
4+
"title": "Upgrading Debian 11 to 13: The Safe Path",
5+
"date": "2026-01-12",
6+
"updated": "2026-01-12",
7+
"description": "A quick gist on how to safely upgrade from Debian 11 to Debian 13 by following the required sequential path.",
8+
"tags": ["linux", "debian", "upgrade", "sysadmin", "gist"],
9+
"category": "gist",
10+
"filename": "debian-upgrade-path.txt",
11+
"authors": ["fezcode"],
12+
"image": "/images/defaults/sina-salehian-HqmTUJD73mM-unsplash.jpg"
13+
},
214
{
315
"slug": "steganography-lsb-deep-dive",
416
"title": "Steganography: Hiding Secrets in Plain Sight with LSB",

0 commit comments

Comments
 (0)