How to upgrade Raspberry Pi OS
This article is intended to look at the commands needed for the Raspberry Pi Upgradation to Latest Version.
I have a RPi 5 running Raspberry Pi OS Lite (Bookworm), and I upgrade it to the newest Raspberry OS (Debian 13 Trixie).
Upgrade Raspberry Pi OS from Bookworm to Trixie.
Table of Contents
Check Raspberry OS Version (Current)
cat /etc/os-release output
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Make Sure the System Is Up to Date
Before upgrading, update and upgrade all existing packages,Ensure your current system is fully updated.Perform a full upgrade of your existing OS installation.
sudo apt update
sudo apt full-upgrade
sudo reboot
Edit sources.list for Debian Trixie
Change all references from bookworm to trixie.
In this file, you only need to change bookworm to trixie.
sudo nano /etc/apt/sources.list
change
deb http://raspbian.raspberrypi.org/raspbian/ bookworm main contrib non-free rpi non-free-firmware to
deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security/ trixie-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
sudo nano /etc/apt/sources.list.d/raspi.list
change
deb http://archive.raspberrypi.com/debian/ bookworm main to
deb http://archive.raspberrypi.com/debian/ trixie main
Update the Raspberry Pi OS
Upgrade to Debian 13 (Trixie)
# Ensure that your system has the latest repository information.Refresh package index
sudo apt update -y
# This will update the Raspberry Pi to the version that is available for the device.
sudo apt full-upgrade -y
# Restart your Device
sudo reboot output
Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
Get:2 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
...
Get:858 http://deb.debian.org/debian trixie/main arm64 zstd arm64 1.5.7+dfsg-1 [635 kB]
Fetched 788 MB in 1min 17s (10.2 MB/s)
Reading changelogs... Done
...
update-initramfs: Generating /boot/initrd.img-6.12.75+rpt-rpi-v8
'/boot/initrd.img-6.12.75+rpt-rpi-v8' -> '/boot/firmware/initramfs8'
update-initramfs: Generating /boot/initrd.img-6.12.75+rpt-rpi-2712
'/boot/initrd.img-6.12.75+rpt-rpi-2712' -> '/boot/firmware/initramfs_2712'
Processing triggers for libgdk-pixbuf-2.0-0:arm64 (2.42.12+dfsg-4+deb13u1) ... After the upgrade completes, reboot your system.
Verification - Display your Debian version
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.4
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Useful links
Upgrades from Debian 12 (bookworm)
https://www.debian.org/releases/trixie/release-notes/upgrading.en.html#upgrading-full
Comments
Be the first to post a comment