However, it is possible to update stretch to buster and this will solve the problem.
How to do this is a straight cut & paste from DDuck at
https://www.domoticz.com/forum/viewtopic.php?t=30219
Let’s first update all the currently installed packages by running the following command.
CODE: SELECT ALL
sudo apt update
sudo apt dist-upgrade -y
We can do that by running the command below on our Raspbian installation.
CODE: SELECT ALL
sudo rpi-update
To do this, we will need to modify the “/etc/apt/sources.list” file.
Begin modifying the sources file by running the following command.
CODE: SELECT ALL
sudo nano /etc/apt/sources.list
This change will allow the package manager to search the Raspberry Pi package repository under the “Buster” distribution instead of the “Stretch” distribution.
Find:
CODE: SELECT ALL
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
CODE: SELECT ALL
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
Next we also need to modify the “/etc/apt/sources.list.d/raspi.list” file by running the following command.
sudo nano /etc/apt/sources.list.d/raspi.list
In this file, you need to go ahead and find the following text and change “Stretch” to “Buster“.
Find:
CODE: SELECT ALL
deb http://archive.raspberrypi.org/debian/ stretch main
CODE: SELECT ALL
deb http://archive.raspberrypi.org/debian/ buster main
Now before we do the final push to Raspbian Buster, we will first remove the “apt-listchanges” package.
The reason for removing this package is to give us a faster and smoother upgrading process. Without removing this package, the Raspbian operating system will have to load a fairly large changelog file which will slow down your upgrade process considerably.
Feel free to re-install this package after the upgrade process has completed.
Run the command below to uninstall the “apt-listchanges” package.
CODE: SELECT ALL
sudo apt-get remove apt-listchanges
The first command will update the package lists stored on the Raspberry Pi. The second command will then update all the packages to their Raspbian Buster versions.
CODE: SELECT ALL
sudo apt update
sudo apt dist-upgrade
Additionally, you may be required to answer prompts, so don’t stray too far from your Raspberry Pi.
(if it stops whit a error try "sudo apt --fix-broken install") It worked for me!!
Next, we need to run a few more commands to ensure we have cleaned up everything leftover from the upgrade.
The first command that we will be running is the package managers “autoremove” command. This command will remove any packages that have been marked as no longer needed due to changed dependencies.
Run the following command to remove these no longer required packages.
CODE: SELECT ALL
sudo apt autoremove -y
This autoclean command will clear out the package cache. It automatically removes any package files that are no longer available for download and thus are largely useless.
Use the command below to begin the cleaning process.
CODE: SELECT ALL
sudo apt autoclean
Run the following command to reboot the Raspberry Pi.
CODE: SELECT ALL
sudo reboot
No comments:
Post a Comment