How to upgrade from Stretch to Buster without flashing an image
If you want to update your system from Stretch to Buster without flashing an image this guide is right for you i.e. if you are using a RevPi Flat, Connect, Core or Compact device.
The procedure described here may cause your device to stop booting. Use with caution.
Preparation
Please make a backup of your data.
Please read the article completely and clarify open questions before you start.
Instruction
Update your current system
sudo apt update
sudo apt dist-upgrade -y
Edit the following file and change all “stretch” to “buster”
sudo nano /etc/apt/sources.list
Once you have replaced all occurrences of “stretch” within the file you can save it by pressing CTRL + X then Y followed by ENTER.
Edit the following file and change all “stretch” to “buster”
sudo nano /etc/apt/sources.list.d/raspi.list
Once you have replaced all occurrences of “stretch” within the file you can save it by pressing CTRL + X then Y followed by ENTER.
Run this command to remove unnecessary packages and speed up the upgrade process
Now we can start the upgrade with the following command
If this question pops up you can confidently answer with no
- <