Skip to main content
Background Image

How to Update Debian 12 to Debian 13

·2 mins·
Author
Andreas
I’m Andreas – the person behind XenoElectronics. I’m not here to sell you buzzwords. I’m a hands-on Linux and Security admin who builds and documents systems. Whether it’s Docker, Ansible, Bash, or troubleshooting a broken NFS mount – if it’s in my docs, I’ve run it myself. I build, test, break, fix, and write it down – so others don’t have to waste time. Need help? Ask. If I’ve solved it before, you’ll get a quick answer.
Table of Contents
Affiliate-Partner – geprüft von XenoElectronics

Foreword
#

This guide is again very brief. The only important thing is that you create a backup of your installation before performing the upgrade. Debian is very robust, and I had no problems with 15 servers, but it’s better to be safe than sorry.

Updating
#

Before you can upgrade to Debian 13, the system must be up to date. Simply enter these commands:

sudo apt update
sudo apt upgrade
sudo apt full-upgrade

The system should then be restarted.

sudo reboot

Upgrade to Debian 13
#

To update Debian, you must first tell Debian to use the new repositories. Debian 12 is called “Bookworm” and Debian 13 is called “Trixie.”

This setting must be adjusted in this file. To do this, simply copy the command into the terminal again.

sudo nano /etc/apt/sources.list

Here, you must rename everything related to “Bookworm” to „Trixie”. I am referring specifically to these three things:

Bookworm → Trixie

Bookworm updates → Trixie updates

Bookworm security → Trixie security

Once that is done, we need to enter three more commands into the terminal:

To update the repository.

sudo apt update

This prepares the system for the upgrade. Press “Q” when prompted:

sudo apt upgrade --without-new-pkgs

Now perform the full upgrade to Debian 13 with the following command:

sudo apt full-upgrade

This will install new packages, update existing ones, and remove outdated dependencies. Once the update is complete, restart the system with the following command:

sudo reboot

After restarting, run the following to check that the upgrade was performed correctly:

lsb_release -a

If you now see “Debian 13”, your system has been successfully updated.

Affiliate-Partner – geprüft von XenoElectronics

Services from XenoElectronics
#

If you need help with your projects or with open source software. Take a look at our contact page and let us know what you need. We will help you to realize your projects.

https://xenoelectronics.com/contact/

Support us
#

I hope this guide has helped you a lot. We would be very happy if you would join the Patreon or donate with Paypal or Stripe. We are grateful for any support.

Thank you very much for reading and for your time.

support us on Patreon.
Donate via Paypal.
Donate via Stripe.

If you like to share this artikel click the icons below.

Related

How to Install Virtmanager in Arch Linux
·2 mins
Are you new to Arch Linux and wondering how to virtualize? Then Virtmanager is the right program for you. Below, I will explain how to install it.
Fedora KDE First Steps After Installation
·6 mins
After installing Fedora, the journey is not over yet. Here you will find instructions on what to do after the installation and some recommendations.
You Should Learn How to use the Terminal in Linux
·4 mins
If you use linux you know the felling. The terminal is lurking in the corner waiting for the moment when you have no choice but to use it. But fear not, the terminal is easier to use than you think.
Which Linux Distro Should You Use
·8 mins
You want to use Linux but you are overwhelmed by all these Distros? Then this guide will help you out.
Virtualization vs Containerization
From container engines to orchestrators and the different types of hypervisors, what are the advantages and disadvantages? This and more you will learn in this guide.
How and why you should Host Your Own Cloud
·7 mins
Would you like to learn what the cloud is and what its Problems are? Or how to create one yourself? Or just want to have more control over your data? Then you should read this guide.