tags: - raspbian - buster - bullseye categories: - informational comments: true

date: 2021-12-26 14:55:00

DESCRIPTION

Upgrade raspbian from buster to bullseye. buster was released in 2019. pre change: backup files required that are not backed up or documented.

Reference: https://www.tomshardware.com/how-to/upgrade-raspberry-pi-os-to-bullseye-from-buster

COMMANDS

sudo -i
tmux
apt update
apt dist-upgrade
apt autoremove
apt autoclean
reboot
grep -r buster  /etc/apt/*
vi /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
deb-src http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi

vi /etc/apt/sources.list.d/raspi.list
deb http://archive.raspberrypi.org/debian/ bullseye main
deb-src http://archive.raspberrypi.org/debian/ bullseye main
apt update
apt dist-upgrade

apt autoremove
apt autoclean
reboot

ERRORS

If ssh access hangs, and there is no network or ssh access, restart, login via console and try ‘dpkg –configure -a’ If all fails, re-image bullseye onto sdcard and follow runbook/RFC to setup the device. Copy files from backup.

VERIFICATION

cat /etc/issue
Raspbian GNU/Linux 11 \n \l