How prepare the transition/upgrade from Buster to next version? Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
AnBad
Posts: 25
Joined: Sat Jan 12, 2019 4:40 pm

How prepare the transition/upgrade from Buster to next version?

Post by AnBad »

Hello,

in any time the next upgrade from Debian (Buster) to the next version, I think the so call next kernel, will occur.
  • What does this mean for DietPi? I guess there will be an upgrade soon after?
  • What is the best way for an end user of DietPie like me to deal with this?
I have stored all my DietPie Userdata to an USB which I have mounted. Does this mean that after installing the next DietPie Version and all the software/servers again that they will run again? I dont think so, because the configurations files of programs are stored in other folders, right?

Or do you use a backup software to store all Config-Files to restore all configurations after installing the software again?

Or is there no way around just install DietPi, all programs and configurations again?

Is there an function within DietPi which simplifies the transition (backup and restore) of configurations, ...?

I dont know, but would Docker ease the transition? I dont know if its possible to run all the programs in different containers and if it does make sense.

Thank you.
User avatar
Joulinar
Posts: 5087
Joined: Sat Nov 16, 2019 12:49 am

Re: How prepare the transition/upgrade from Buster to next version?

Post by Joulinar »

Hi,

I guess there are a couple of misunderstandings on your side.
in any time the next upgrade from Debian (Buster) to the next version.
The next Debian version is called Bullseye. We expect a release from Debian side mid of 2021
I think the so call next kernel, will occur.
A Linux kernel is something different than a Debian Version like Buster or Bullseye. There are multiple kernel release during a life cycle of a Debain version. There are released time by time https://en.wikipedia.org/wiki/Kernel_(operating_system)
What is the best way for an end user of DietPie like me to deal with this?
No need to rush. We still have users, running Debian Stretch where Buster was released 1,5 years back.
Does this mean that after installing the next DietPie Version and all the software/servers again that they will run again?
A DietPi version has nothing to do with Debian Release or a Kernel Release. DietPi is some set of scripts on top of an operation system. Officially DietPi supports Debian Stretch and Buster. Unofficially, Bullseye should be working as well already. Stretch support will be dropped as soon as Bullseye will be released. But this doesn't mean Stretch systems will stop to operate. They simply will not receive DietPi script updates anymore from DietPi side.
I guess there will be an upgrade soon after?
DietPi will not force or offer Destro upgrades. Something the user would need to take care. An example how this could look like from Stretch to Buster viewtopic.php?p=18988#p18988
But as already said. Nothing to rush.
Is there an function within DietPi which simplifies the transition (backup and restore) of configurations, ...?
dietpi-backup provides full system backup. It's not intend for single config files. It always will save your entire system. Restoring a Buster backup on a Bullseye system, will downgrade your system back to Buster
I dont know, but would Docker ease the transition?
Something to check with Docker what and how it is possible
I dont know if its possible to run all the programs in different containers and if it does make sense.
Depends on the availability of Docker images for your applications.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AnBad
Posts: 25
Joined: Sat Jan 12, 2019 4:40 pm

Re: How prepare the transition/upgrade from Buster to next version?

Post by AnBad »

Hello!!

Thank you for the comprehensive information.

As a matter of fact since some years now I have a Raspbian Stretch running with a FEHM-Server (House-Automatic), PiHole and Open Median Vault (Cloud-Service) and some more.

FHEM starts to have some issues so that I will install the OS and all server newly as soon as Bullseye comes out.

That is the reason why I am testing DietPi right now: Lightweight and easy to install. Maybe better than Raspbian?

I don't have any problem to build up everything again next summer. But I would like to prepare the new installations in a fashion that future transitions would go faster, easier and without faults. In addition I would like to have the opportunity if one server gets messy "to rip it out" and install a new version without compromising the OS and the other servers.

I have heard some things about Docker. But I am not really into it. I do not understand what Docker is about. Might it be a solution for my 'project'?

What is the best solution for an Code/Linux-Amateur like me getting it done. I guess installing everything new all 3-5 years?

Kind regards!! And thank you!!
User avatar
Joulinar
Posts: 5087
Joined: Sat Nov 16, 2019 12:49 am

Re: How prepare the transition/upgrade from Buster to next version?

Post by Joulinar »

Hi,
Maybe better than Raspbian?
If you are running on a Raspberry Pi you are still on Raspberry OS ;)
DietPi is not an own OS, it's a set of scripts on top of a base image. However the image was reduced down to a minimum. Means, it's an extrem slim/diet version of Raspberry OS with some magic scripts around.
since some years now I have a Raspbian Stretch running
well you could clone your SD card to gain a full backup. Once done try to upgrade from Stretch to Buster viewtopic.php?p=18988#p18988
If thinks are failing, just flash you cloned image back
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AnBad
Posts: 25
Joined: Sat Jan 12, 2019 4:40 pm

Re: How prepare the transition/upgrade from Buster to next version?

Post by AnBad »

OK,
well, I am always have a one, two clone backups of my SD-Card. So simply trying to upgrade might be a way.

If an upgrade from stretch to buster works out perfect, how clean will the new installation of the OS Buster and the Servers be? Doing something like this with Windows was/is allays messy.

By the way, how clean are uninstall process in Linux in general? If something was uninstalled, is everything gone? Or is there something left like some registry when done in Windows?

Danke Euch allen! Thank you very much.
User avatar
Joulinar
Posts: 5087
Joined: Sat Nov 16, 2019 12:49 am

Re: How prepare the transition/upgrade from Buster to next version?

Post by Joulinar »

So simply trying to upgrade might be a way.
yep, just give it a try :)
If an upgrade from stretch to buster works out perfect, how clean will the new installation of the OS Buster and the Servers be? Doing something like this with Windows was/is allays messy.
Not really something you can compare with Windows. At least apt managed packages (Debian repository) will be update one by one to the latest version. Not sure if you are running 3rd party software. There you would need to ensure that this is able to run on Buster as well. Usually not an issue. But that's why you have the backup/clone SD card ;)
how clean are uninstall process in Linux in general? If something was uninstalled, is everything gone?
It depends a little bit. Not that I have an example in my head, but sometimes not all files and folder get removed. But in general it's working fine.
Or is there something left like some registry when done in Windows?
No Linux did not have something like a registry. Everything is based on files and folders.

Bitte gerne, you're welcome
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mail2rst
Posts: 135
Joined: Fri Apr 13, 2018 4:53 pm

Re: How prepare the transition/upgrade from Buster to next version?

Post by mail2rst »

for updating my dietpi operating system from buster to bullseye. is i have to give these command one by one in terminal windows. if all these commands works then i will enter into bullseye operating system with dietpi

Code: Select all

sed -i 's/buster/bullseye/' /etc/apt/sources.list
sed -i 's/buster/bullseye/' /etc/apt/sources.list.d/*.list
apt update
apt upgrade
apt full-upgrade
apt autopurge
/boot/dietpi/func/dietpi-obtain_hw_model
. /boot/dietpi/func/dietpi-globals
any other recommendation ?
User avatar
Joulinar
Posts: 5087
Joined: Sat Nov 16, 2019 12:49 am

Re: How prepare the transition/upgrade from Buster to next version?

Post by Joulinar »

Theoretically that could be a way. But you would need to check other source list as well (if applicable) if they would need to be changed as well.

We did some testing with a user who offered to volunteer. There we have seen some challenges on MariaDB that would need more testing. If you have time, you could read through the update process we did: Stretch => Buster => Bullseye

https://github.com/MichaIng/DietPi/issues/4511
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mail2rst
Posts: 135
Joined: Fri Apr 13, 2018 4:53 pm

Re: How prepare the transition/upgrade from Buster to next version?

Post by mail2rst »

in my amd64 nuc after this commands & restart after that sudo apt-get update comand give this result

Code: Select all

root@DietPi:~# sudo apt-get update
Err:1 http://ftp.us.debian.org/debian bullseye InRelease
  Temporary failure resolving 'ftp.us.debian.org'
Err:2 https://downloads.plex.tv/repo/deb public InRelease
  Temporary failure resolving 'downloads.plex.tv'
Err:3 https://deb.debian.org/debian-security bullseye/updates InRelease
  Temporary failure resolving 'deb.debian.org'
Err:4 http://ftp.us.debian.org/debian bullseye-updates InRelease
  Temporary failure resolving 'ftp.us.debian.org'
Err:5 http://ftp.us.debian.org/debian bullseye-backports InRelease
  Temporary failure resolving 'ftp.us.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'ftp.us.debian.org'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'ftp.us.debian.org'
W: Failed to fetch https://deb.debian.org/debian-security/dists/bullseye/updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bullseye-backports/InRelease  Temporary failure resolving 'ftp.us.debian.org'
W: Failed to fetch https://downloads.plex.tv/repo/deb/dists/public/InRelease  Temporary failure resolving 'downloads.plex.tv'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@DietPi:~#
mail2rst
Posts: 135
Joined: Fri Apr 13, 2018 4:53 pm

Re: How prepare the transition/upgrade from Buster to next version?

Post by mail2rst »

in my raspberry pi-b2 after this commands & restart after that sudo apt-get update comand give this result

Code: Select all

root@DietPi:~# sudo apt-get update
Err:1 https://repo.mosquitto.org/debian bullseye InRelease
  Temporary failure resolving 'repo.mosquitto.org'
Err:2 https://archive.raspberrypi.org/debian bullseye InRelease
  Temporary failure resolving 'archive.raspberrypi.org'
Err:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:4 https://deb.nodesource.com/node_12.x bullseye InRelease
  Temporary failure resolving 'deb.nodesource.com'
Reading package lists... Done
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/bullseye/InRelease  Temporary failure resolving 'raspbian.raspberrypi.org'
W: Failed to fetch https://repo.mosquitto.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'repo.mosquitto.org'
W: Failed to fetch https://deb.nodesource.com/node_12.x/dists/bullseye/InRelease  Temporary failure resolving 'deb.nodesource.com'
W: Failed to fetch https://archive.raspberrypi.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'archive.raspberrypi.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@DietPi:~#
Post Reply