How to upgrade Raspberry Pi to Raspbian Buster
Raspberry Pi 4B was first released at the end of June 2019 and comes with a new version of Raspbian, the official operating system of Raspberry Pi. Soon, Debian, the operating system based on Raspbian, has also released its latest version, Debian 10 Buster.
Thanks to the framework already from Debian, upgrading the operating system of Raspberry Pi is very simple. In addition, if you want to use the existing Raspbian installation on the new Raspberry Pi 4, you can do it once it is upgraded to Buster.
Update Pi
Before you upgrade Pi, it's good to make sure that the current Raspbian installation is completely up to date. The shorter the distance between the software versions in the upgrade, the better. Burning the stage can cause unresolved conflicts and break everything permanently. Raspbian is designed to seamlessly migrate from the Stretch installation to a fully updated Buster, so this is the best option to choose.
Access your Pi. If you have a screen, this part will be very easy. Just open a terminal. If you are running a headless Pi, you will need SSH. Windows 10 users can use the integrated OpenSSH function that the operating system provides. If you own a Mac or Linux, you can open a terminal and use SSH.
ssh pi@raspberrypi
Then run an update and upgrade on Pi.
sudo apt update && sudo apt upgrade
This step may take some time, depending on Pi's 'outdated' level. Confirm the package installation and wait until it is completed. When the upgrade is done, you should boot and reconnect the Pi to make sure you are running the latest kernel on the system.
sudo reboot
Change the source file
When Pi has finished booting and is reconnected, you can start setting up Pi to upgrade. Raspbian, like Debian, uses a configuration file at '/etc/apt/sources.list' to control its software repositories. The file also specifies which version of the operating system to retrieve packages. So changing that file to use Buster instead of Stretch will allow Raspbian to upgrade itself.
Use Pi's Nano text editor, open source configuration.
sudo nano /etc/apt/sources.list
The file will look like the image below.
Browse through the file and change the word 'Stretch' everywhere to 'Buster'. The end result will look like the image below.
Save the file and exit.
Run the update of the distro
With the edited file, you can run the update of the distro on the Raspberry Pi to download all packages and officially change to the new version, Buster. Run the command below in terminal Pi to start the process.
sudo apt update && sudo apt dist-upgrade
After updating the repository and evaluating the necessary packages, the package manager will ask if you want to install new packages to effectively upgrade to the new release. Please confirm to start the upgrade.
This step will take some time, especially on the old Pi version or via a WiFi connection. Be patient and wait until everything is over. You will receive a notification when the upgrade is done.
Reboot and check
Before you can start using Raspbian Buster, you will need to restart Pi again.
sudo reboot
After Pi restarts, visit it. You can run the following command to make sure you are running Buster.
cat /etc/*-release
If your screen looks like an illustration, you are running Buster on the Raspberry Pi and everything is fully updated. Now you can seamlessly transfer the microSD memory card to the Raspberry Pi 4 or you can continue to use it normally in your current Pi with the update software.
Hope you are succesful.
You should read it
- How to take a screenshot on the Raspberry Pi
- What is the Raspberry Pi and how is the Raspberry Pi used?
- How to start Raspberry Pi 3 from USB
- How to update your Raspberry Pi to the latest Raspbian operating system
- How to run, Raspberry Pi emulator on computer?
- Why should people try Raspberry Pi 4?
- 8 reasons to upgrade to Raspberry Pi 5
- How to add an ADC to Raspberry Pi: What you need to know
- Raspberry Pi Zero vs Model A and B, how are they different?
- What can be done with the 64-bit version of Raspberry Pi OS?
- The best Linux distributions for Raspberry Pi
- Learn Pi Imager, How to Use Raspberry Pi Imager
Maybe you are interested
The Latest Features in Meta Llama AI's Major Upgrade
6 Reasons to Upgrade to a Smart Display
3 Upgrades to Prioritize When Buying a New Mac
Samsung will support 7 years of free software upgrades for AI TVs running the Tizen operating system
Microsoft temporarily stopped urging Windows 10 users to upgrade
5 PC upgrades that get the most bang for your buck