Gaming industry under DDoS attack. Get DDoS protection now. Start onboarding

Products

  1. Home
  2. Developers
  3. How to Upgrade from Debian 11 to Debian 12

How to Upgrade from Debian 11 to Debian 12

  • By Gcore
  • October 16, 2023
  • 2 min read
How to Upgrade from Debian 11 to Debian 12

Embrace the enhanced features and improved functionality of Debian 12 as we guide you through a seamless upgrade from Debian 11. Navigating through a system upgrade can often bring forth a myriad of questions and possible challenges. However, our comprehensive guide aims to demystify the upgrade process, ensuring you experience minimal downtime and a hassle-free transition. Whether managing a server or maintaining a personal system, our step-by-step walkthrough will equip you with the knowledge and confidence to upgrade your Debian system efficiently and effectively, ensuring you harness the utmost potential from your upgraded operating system.

Process to Upgrade from Debian 11 to Debian 12

Follow this detailed procedure to seamlessly upgrade your system from Debian 11 to the latest Debian 12 version. See the steps below:

#1 Backup Your System

Always ensure to have a complete backup to prevent data loss.

#2 Update & Upgrade Current System

Ensure your Debian 11 is fully updated.

sudo apt update

Upgrade the system:

sudo apt upgrade && sudo apt full-upgrade

#3 Update the Repository Information

Update the repository to point to Debian 12.

sudo nano /etc/apt/sources.list

Example Change (modify all entries similarly):

deb http://deb.debian.org/debian/ bullseye main

to:

deb http://deb.debian.org/debian/ [NEW_RELEASE_NAME] main

#4 System Upgrade

Update package database:

sudo apt update

Upgrade packages:

sudo apt upgrade

Full upgrade:

sudo apt full-upgrade

#5 Cleanup and Reboot

Remove unneeded packages:

sudo apt autoremove

Reboot:

sudo reboot

#6 Verify the Upgrade

lsb_release -a

Expected Output:

Distributor ID: DebianDescription:    Debian GNU/Linux [NEW_RELEASE_NAME]Release:        12Codename:       [NEW_RELEASE_NAME]

Important Notes

  • Always refer to the official Debian documentation for major updates.
  • Validate application and system functionality post-upgrade.
  • Ensure drivers and custom configurations are compatible with the new release.

That’s it! Congratulations on upgrading your Debian 11 to Debian 12. Once Debian 12 is released, the exact procedures, codenames, and potential nuances will be detailed in the official release notes. Always ensure you refer to the most up-to-date and official sources when performing a system upgrade.

Conclusion

Want to run Debian on a virtual machine? With Gcore Cloud, you can choose from Basic VM, Virtual Instances, VPS/VDS, or Bare Metal servers suitable for Debian:

  • Gcore Basic VM offers shared virtual machines from €3.2 per month
  • Virtual Instances are virtual machines with a variety of configurations and an application marketplace
  • Virtual Dedicated Servers provide outstanding speed of 200+ Mbps in 20+ global locations
  • Bare Metal offers the ultimate in server power and performance with an entire server dedicated to your needs alone

Choose an instance

Related articles

What Is a High Availability Server?

Every minute your servers are down, your business is bleeding. For e-commerce sites, healthcare platforms, and revenue-critical applications, an outage isn't just an inconvenience. It's a direct hit to your bottom line, your reputation, and

Cloud vs Dedicated Server: Which Is Right for You?

Your server choice could be quietly costing you, or quietly holding you back. Pick the wrong infrastructure for your workload and you're either overpaying for idle hardware every month or watching your site buckle under traffic spikes you c

VPS vs Dedicated Server
VPS vs Dedicated Server: Which One Do You Need?

Your site is humming along fine, until it isn't. Traffic spikes, page loads crawl, and your hosting plan buckles under pressure right when it matters most. Choosing between a VPS and a dedicated server isn't just a technical checkbox. It's

Multi-Cloud Plan: What It Is and How It Works

Your cloud provider goes down. Applications fail. Customers can't access your services. And because you've built everything around a single vendor, there's nothing you can do but wait. For organizations locked into one cloud platform, this

Vendor Lock-In in Cloud Computing: What It Is and How to Avoid It

Imagine discovering that migrating your company's data to a new cloud provider will cost hundreds of thousands of dollars in egress fees alone, before you've even touched the re-engineering work. Or worse, picture being in Synapse Financial

What Is Sovereign Cloud and Why Does It Matter?

Picture this: a foreign government issues a legal order forcing your cloud provider to hand over sensitive patient records, classified research data, or critical national infrastructure details. You can't stop it. This isn't hypothetical. G

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.