Ubuntu Minimal 18.04 Upgrade to 20.01 ?

Post Reply
rockla
Posts: 228
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2
Has thanked: 0
Been thanked: 1 time
Contact:

Ubuntu Minimal 18.04 Upgrade to 20.01 ?

Post by rockla »

How to upgrade without losing anything ?

mad_ady
Posts: 9250
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 599 times
Been thanked: 622 times
Contact:

Re: Ubuntu Minimal 18.04 Upgrade to 20.01 ?

Post by mad_ady »

First of all, do a full backup (either with dd, odroid-backup, or some other method).
Next, run sudo apt-get dist-upgrade and reboot. And try sudo do-release-upgrade. It will disable 3rd party repos, likw hardkernel's, so aftwr upgrade you'll need to reenable it and do apt-get dist-upgrade once more.
If it complains about python2, search the net - it's a common problem.

rockla
Posts: 228
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu Minimal 18.04 Upgrade to 20.01 ?

Post by rockla »

mad_ady wrote:
Wed Dec 02, 2020 4:33 pm
First of all, do a full backup (either with dd, odroid-backup, or some other method).
Next, run sudo apt-get dist-upgrade and reboot. And try sudo do-release-upgrade. It will disable 3rd party repos, likw hardkernel's, so aftwr upgrade you'll need to reenable it and do apt-get dist-upgrade once more.
If it complains about python2, search the net - it's a common problem.

What exactly would be disabled i have backed my sources.list though i see it is creating backp with distUpgrade as file ? What do i need to revert ?

mad_ady
Posts: 9250
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 599 times
Been thanked: 622 times
Contact:

Re: Ubuntu Minimal 18.04 Upgrade to 20.01 ?

Post by mad_ady »

After you run do-release-upgrade it will calculate what needs to be done and then it will tell you (if there are no issues) what packages will be uninstalled, what is new and what is to be upgraded. You can safely abort the upgrade at this step if you want to.

rockla
Posts: 228
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu Minimal 18.04 Upgrade to 20.01 ?

Post by rockla »

I went with upgrade everything worked well.
These users thanked the author rockla for the post:
mad_ady (Tue Jan 19, 2021 11:20 pm)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests