Jump to content

Recommended Posts

  • divis1969 changed the title to Recommended way to upgrade Armbian Bionic to Focal
Posted

Isn't it better to install ubuntu-release-upgrader-core and use the do-release-upgrade instead of manual procedure?

Can/Should I freeze kernel upgdade with it? Why do I need to freeze it, btw?

Posted
19 minutes ago, divis1969 said:

Why do I need to freeze it, btw?


Hardware interface for your unknown hardware (is it supported at all?) is Armbian maintained, at least critical and special functions. With Canonical Ubuntu you usually can't boot your hardware. We provide you this Ubuntu or Debian based user land, but we have no resources to support you on just every problem you might find. And especially if you don't listen our recommendations on our expense for avoiding troubles. 

3rd party applications such as Ubuntu userland upgrade we don't support. We didn't make those tools and so far there were many troubles outside our domain ... We avoid fixing Ubuntu bugs. We are just a few and have exactly zero budget. Also you can study this and report, make this transition supported

 

In case things go wrong ... https://docs.armbian.com/User-Guide_Recovery/

Posted

I tried this upgrade a few months back on a test system just to see what would happen and for the most part it worked just fine, with the exception of the kernel.

The ubuntu upgrade went along without any errors and did it's thing.  Then after the upgrade I was prompted to remove obsolete packages.  I did this before I realized that the kernel was considered an obsolete package.  So apt went merrily on and removed all obsolete packages including the kernel.  Fortunately I realized this before I rebooted.  While I am fuzzy on the details, I believe the issue was that there isn't any part of the ubuntu upgrade that updates /etc/apt/sources.list.d/armbian.list .  So after the upgrade this file still points to old repositories (i.e. bionic instead of focal).  I think I just edited this file, reinstalled the kernel package and everything was fine.  I didn't do much if any testing after the upgrade, it was just a test to see if this was at all possible.

Posted
On 1/19/2021 at 12:12 AM, Igor said:


Hardware interface for your unknown hardware (is it supported at all?)

Banana PI. A20. Initially this topic was posted in the appropriate forum.

 

On 1/19/2021 at 12:12 AM, Igor said:

but we have no resources to support you on just every problem you might find.

The question was: why do I need to freeze it from technical POV.

I do understand your team have limitations on support. The device I'm going to play with is mostly used for testing purposes, so if I completely fail with upgrade, I will do a clean install.

And thanks for the great job.

 

On 1/19/2021 at 12:28 AM, SteeMan said:

I tried this upgrade a few months back

Do you mean do-release-upgrade or manual source list change?

I see there is some way to enable the 3rd party update along with the system upgrade (https://ubuntu.com/blog/how-to-upgrade-from-ubuntu-18-04-lts-to-20-04-lts-today , see Advanced options & third-party software).

Maybe I could try this and enable armbian repositories.

Posted

Ok, I've tried with enabled third party:
 

$ sudo apt install ubuntu-release-upgrader-core
$ sudo do-release-upgrade --allow-third-party

 

This failed with the following errors:

W:Skipping acquire of configured file
'bionic-utils/binary-armhf/Packages' as repository
'http://apt.armbian.com focal InRelease' doesn't have the component
'bionic-utils' (component misspelt in sources.list?), W:Skipping
acquire of configured file 'bionic-utils/cnf/Commands-armhf' as
repository 'http://apt.armbian.com focal InRelease' doesn't have the
component 'bionic-utils' (component misspelt in sources.list?),
W:Skipping acquire of configured file
'bionic-desktop/binary-armhf/Packages' as repository
'http://apt.armbian.com focal InRelease' doesn't have the component
'bionic-desktop' (component misspelt in sources.list?), W:Skipping
acquire of configured file 'bionic-desktop/cnf/Commands-armhf' as
repository 'http://apt.armbian.com focal InRelease' doesn't have the
component 'bionic-desktop' (component misspelt in sources.list?),
E:Problem executing scripts APT::Update::Post-Invoke-Success 'if
/usr/bin/test -w /var/lib/command-not-found/ -a -e
/usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi',
E:Sub-process returned an error code

Content of /etc/apt/sources.list.d/armbian.list:

deb http://apt.armbian.com bionic main bionic-utils bionic-desktop

I have yet no idea what to do with that. Are those bionic-utils and bionic-desktop excluded from focal sources list ?

Posted (edited)
On 1/30/2021 at 9:15 PM, divis1969 said:

Ok, I've tried with enabled third party:
 





$ sudo apt install ubuntu-release-upgrader-core
$ sudo do-release-upgrade --allow-third-party

 

This failed with the following errors:





W:Skipping acquire of configured file
'bionic-utils/binary-armhf/Packages' as repository
'http://apt.armbian.com focal InRelease' doesn't have the component
'bionic-utils' (component misspelt in sources.list?), W:Skipping
acquire of configured file 'bionic-utils/cnf/Commands-armhf' as
repository 'http://apt.armbian.com focal InRelease' doesn't have the
component 'bionic-utils' (component misspelt in sources.list?),
W:Skipping acquire of configured file
'bionic-desktop/binary-armhf/Packages' as repository
'http://apt.armbian.com focal InRelease' doesn't have the component
'bionic-desktop' (component misspelt in sources.list?), W:Skipping
acquire of configured file 'bionic-desktop/cnf/Commands-armhf' as
repository 'http://apt.armbian.com focal InRelease' doesn't have the
component 'bionic-desktop' (component misspelt in sources.list?),
E:Problem executing scripts APT::Update::Post-Invoke-Success 'if
/usr/bin/test -w /var/lib/command-not-found/ -a -e
/usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi',
E:Sub-process returned an error code

Content of /etc/apt/sources.list.d/armbian.list:





deb http://apt.armbian.com bionic main bionic-utils bionic-desktop

I have yet no idea what to do with that. Are those bionic-utils and bionic-desktop excluded from focal sources list ?

 

Had the same issue as u mate, however i found a nice article where the upgrade possbilities were described and if you really like to do an upgrade on your arm board, give it a try with the debian way described here:

 

https://linuxconfig.org/how-to-upgrade-ubuntu-to-20-04-lts-focal-fossalts

 

If you still run then into problems as i had with apt update i did following:

 

sudo apt purge command-not-found 
sudo apt --purge autoremove
sudo bash -c 'apt update && apt full-upgrade && apt autoremove && apt clean'

No running Ubuntu Focal with Armbian Linux and everything else seems to work so far for me!

Edited by Fosphatic
Posted

thx

 

I did it now this way:

sudo apt purge command-not-found 
sudo apt --purge autoremove
sudo bash -c 'apt update && apt full-upgrade && apt autoremove && apt clean'

sudo apt install ubuntu-release-upgrader-core
sudo do-release-upgrade --allow-third-party

 

 

I had to change armbian.list:

from:
deb http://apt.armbian.com focal main bionic-utils bionic-desktop

to:
deb http://apt.armbian.com focal main focal-utils focal-desktop

 

 

looks like everithing is working, but i get this meassage when l log in:

No end-user support: unsupported (bionic) userspace!

how i could fix this?

 

 

Armbian 21.02.3 Bionic with Linux 5.10.21-sunxi64

lsb_release -d && uname -r
Description:    Ubuntu 20.04.2 LTS
5.10.21-sunxi64


http://ix.io/2Syp

 

Posted
25 minutes ago, pumuckl said:

how i could fix this?

 

Remove linux-bionic-root-${DEB_BRANCH}${BOARD} and install linux-focal-root-${DEB_BRANCH}${BOARD} ... BRANCH is current/legacy/dev, BOARD=boardname

 

Edit: added https://armbian.atlassian.net/browse/AR-672 to Jira in case someone wants to develop this feature.

Posted

I also had some time to complete this exercise.

I didn't realize the commamd-not-found is the package, but it prevented me from completing apt update after the do-release-upgrade failure. I've simply manually removed /var/lib/command-not-found folder.

Then I followed the typical procedure (sometimes called 'Debian way'?):
 

sudo sed -i 's/bionic/focal/g' /etc/apt/sources.list.d/armbian.list
sudo sed -i 's/bionic/focal/g' /etc/apt/sources.list
sudo apt update
sudo apt -y dist-upgrade

Everything was fine, I was asked to manually select which configuration file I would prefer - maintainer or current one - for few packages (sshd, ngnix, etc). I'd selected the existing ones in all the cases.

Now I have the following greeting:

Welcome to Armbian 21.02.2 Bionic with Linux 5.10.21-sunxi

And 'Ubuntu 20.04.2 LTS' for lsb_release.

 

As for the 'sudo do-release-upgrade --allow-third-party' I suppose Armbian should probably change the naming of the 'components' part of the armbian.list data source(s) (Unless there is a way to specify the proper way to modify it by do-release-upgrade scripts. I didn't find it).

Posted
12.03.2021 в 23:06, divis1969 сказал:

I also had some time to complete this exercise.

I didn't realize the commamd-not-found is the package, but it prevented me from completing apt update after the do-release-upgrade failure. I've simply manually removed /var/lib/command-not-found folder.

Then I followed the typical procedure (sometimes called 'Debian way'?):
 



sudo sed -i 's/bionic/focal/g' /etc/apt/sources.list.d/armbian.list
sudo sed -i 's/bionic/focal/g' /etc/apt/sources.list
sudo apt update
sudo apt -y dist-upgrade

Everything was fine, I was asked to manually select which configuration file I would prefer - maintainer or current one - for few packages (sshd, ngnix, etc). I'd selected the existing ones in all the cases.

Now I have the following greeting:

Welcome to Armbian 21.02.2 Bionic with Linux 5.10.21-sunxi

And 'Ubuntu 20.04.2 LTS' for lsb_release.

 

As for the 'sudo do-release-upgrade --allow-third-party' I suppose Armbian should probably change the naming of the 'components' part of the armbian.list data source(s) (Unless there is a way to specify the proper way to modify it by do-release-upgrade scripts. I didn't find it).

 

You can install `do-release-upgrade` by command 

sudo apt install ubuntu-release-upgrader-core

 

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines