Upgrading from Bullseye to Bookworm on a Raspberry Pi
Upgrading from Bullseye to Bookworm on a Raspberry Pi involves a few steps. Here's a simplified outline based on the information provided:
Easy Upgrade Path
This is a straightforward approach for those looking to upgrade with minimal fuss. However, it may not fully configure new features such as PipeWire and NetworkManager.
- Backup Your Data: Always start with a backup of your important files.
-
Perform a Full Upgrade of your existing Bullseye installation:
- Update package lists and upgrade all packages:
sudo apt update sudo apt full-upgrade sudo reboot
- Update package lists and upgrade all packages:
-
Edit the Sources List to point to the new Bookworm repositories:
- Open the
sources.listfile:sudo nano /etc/apt/sources.list - Replace
bullseyewithbookwormand addnon-free-firmwareto the end of the line. - Update
raspi.listsimilarly.
- Open the
-
Perform Another Full Upgrade:
- Update package lists and upgrade all packages again to pull from the Bookworm repositories:
sudo apt update sudo apt full-upgrade sudo reboot
- Update package lists and upgrade all packages again to pull from the Bookworm repositories:
A Better Way to Upgrade
For those seeking a more comprehensive upgrade that better integrates Bookworm's new features, a more detailed process is recommended, involving the replacement of certain components and ensuring the system is fully updated to Bookworm's specifications.
- Update to the Latest Bullseye before switching to Bookworm repositories.
-
Switch Repositories to Bookworm:
- Use
sedto update/etc/apt/sources.listand/etc/apt/sources.list.d/raspi.list.
- Use
-
Perform the Upgrade:
- Execute a full system upgrade.
- Clean up and remove unnecessary packages.
-
Kernel and Firmware Updates:
- Replace the old kernel and bootloader with new versions.
- Adjust boot configurations for the new setup.
-
Network Configuration:
- Switch to NetworkManager from dhcpcd if needed.
- Configure your network settings, such as setting a static IP if necessary.
The Best Way to "Upgrade"
For the most reliable upgrade experience, starting fresh with a new installation of Bookworm is recommended.
- Backup Your Data: Save all important files and directories.
- Use the Raspberry Pi Imager to install a fresh copy of Bookworm on an SD card.
- Restore Your Data: Copy your backed-up files back to the Pi after the installation.
Post-Upgrade
This outline provides a general approach to upgrading from Bullseye to Bookworm, with options ranging from a simple update to a more involved, clean installation for those seeking the best possible upgrade experience.