Raspbian is based on Debian. Upgrading it to the latest version is done the same way as upgrading a normal Debian distribution. To not make this my shortest blog ever, I’ll show how I upgrade one of my Raspberry Pi.
The upgrade to release N is performed by starting the process release N-1. For each upgrade:
- Update current release
- Prepare configuration for next release
- Run upgrade
- Clean up
- Validate result of upgrade
Update your current Raspbian
sudo apt-get update sudo apt full-upgrade
Prepare configuration for next Raspbian version
Edit repository files and change the distribution name to stretch or buster, depending from where you are upgrading from. A list of releases for Raspbian can be found at the Wikipedia page.
sudo vim /etc/apt/sources.list
To update to stretch:
deb http://archive.raspbian.org/raspbian stretch main contrib non-free rpi
To update to buster:
deb http://archive.raspbian.org/raspbian buster main contrib non-free rpi
You may have more repository servers configured. For instance, check the content of the file: /etc/apt/sources.list.d/raspi.list.
Make sure to enable IPv6 support.
sudo apt update sudo apt dist-upgrade
Sample output for update to stretch
Sample output for update to buster
sudo apt autoremove
Validate result of upgrade
After running the above commands again, they should not report any more updates or dependencies.
sudo apt dist-upgrade
Check Debian version
The entries for version and codename should now match your targeted release. For buster, it is:
NGINX with RTMP on Raspberry Pi as a streaming server for OBS | It`s full of stars! · January 30, 2020 at 10:43
[…] for that architecture, the RTMP module is available for Debian buster. If you are not on buster, consider upgrading Raspbian. It’s easier to install software via apt than having to compile it […]