4 4
BCMM

Upgrade procedure

Recommended Posts

What is the correct way to upgrade from Stretch to Buster? Can I just follow the ordinary Debian upgrade guide, or are there special considerations I should be aware of? Do I need to do a clean install?

Share this post


Link to post
Share on other sites
1 hour ago, BCMM said:

What is the correct way to upgrade from Stretch to Buster? Can I just follow the ordinary Debian upgrade guide, or are there special considerations I should be aware of? Do I need to do a clean install?

 

Freeze your kernel in armbian-config may be a good idea.

 

 

Share this post


Link to post
Share on other sites

Does anyone has experience with the upgrade from Stretch to Buster on armbian according the Debian upgrade guide? 

As far as I read a kernel freeze and the steps from the debian upgrade guide should be sufficient for sucessfull upgrade?

 

 

Share this post


Link to post
Share on other sites

I would not call it experience, but I did indeed do such an upgrade on a Tinkerboard last weekend.

They should. Any sorts of hiccups may happen in your environment. I would suggest to:

 

1. Backup your data: "No backup, no pity."

2. Locate any *.dpkg-dist and *.dpkg-old files on your system and deal with them before doing anything else.

3. Read the Debian upgrade guide very carefully. Follow the references, too, especially those in "4.1. Preparing for the upgrade". 

4. Execute just one step at a time, check for errors, do not continue until you are sure the action was successful. Else eliminate errors first or at least verify they really are negligible. Always keep your config files, do not let the installer overwrite them with newer versions from the packages! Deal with them during the next step.

5. Do not forget to locate *.dpkg-dist and *.dpkg-old files afterwards, diff the relating config files and either merge or otherwise handle the differences.

6. Double check the Kernel installation before attempting to reboot.

 

No guarantees. - However, the upgrade procedure is relatively safe, if your system is in a sane state and you follow the guide precisely.

 

One note, though: It might be more efficient and faster to backup your data and rebuild the system from scratch, that is, from a clean Armbian Buster image, and just restore your data afterwards. Consider if it is really worth the effort. (In a professional environment, I habe always denied requests to upgrade for several reasons, one of them was deployment being at least as fast or even faster than any in-place upgrades.)

Share this post


Link to post
Share on other sites
On 7/6/2019 at 4:50 AM, BCMM said:

What is the correct way to upgrade from Stretch to Buster? Can I just follow the ordinary Debian upgrade guide, or are there special considerations I should be aware of? Do I need to do a clean install?

As root:

cp /etc/apt/sources.list /etc/apt/sources.list.backup
sed -i 's|stretch|buster|g' /etc/apt/sources.list
apt update && apt -y upgrade && apt -y dist-upgrade

It takes awhile, and welcome to Buster.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
4 4