Jump to content

Recommended Posts

Posted

Hello everyone,

 

Upgrading from distro isn't supported officially but I tried it anyways and thought I should share my findings. In short, it worked for me. Others have reported issues so maybe we can figure out what causes these issues.

My N2+ is fairly vanilla, so I didn't heavily modify it.

Running 5.10.x kernel since that is recommended for de N2+

 

Step 1. Fully upgrade your system on Focal


 

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

 

Step 2. Shutdown you N2+ and make an image backup of your emmc using dd or Win32DiskImager in case something goes wrong

 

Step 3. Boot up your N2+ again, disable all 3rd-party applications and PPA and change the release your sources list.


 

sudo sed -i s/deb/#deb/ /etc/apt/sources.list.d/*.list

sudo sed -i s/focal/jammy/ /etc/apt/sources.list

 

Step 4. Update sources

 

sudo apt-get update

 

Step 5. This is were the tricky part starts, upgrading packages. Apt will ask to automatically restart services, allow this. Apt will also ask to replace configuration files, personally I kept all my configurations after manually checking them.


 

sudo apt-get upgrade

sudo apt-get dist-upgrade

 

Step 6. Reboot the device

 

And if everything works fine

 

Step 7. Re-enable 3rd party applications and PPA and change the release


 

sudo sed -i s/#deb/deb/ /etc/apt/sources.list.d/*.list

sudo sed -i s/focal/jammy/ /etc/apt/sources.list.d/*.list

sudo apt-get update

sudo apt-get dist-upgrade

 

Step 8. Do a last reboot and done, you should be on Jammy.

 

 

Remember manually upgrading like this is not officially supported by armbian!

Posted

Hi, 

I can confirm this works, had done this on many Debian machines many years back. Now on Armbian it worked fine  on my N2+ and a BananapiPro.

Many regards, Dieter

Posted

Does this work for an upgrade from Bullseye to Jammy on the Orange Pi PC 2 as well,

if I replace this line from step 3:

 

sudo sed -i s/focal/jammy/ /etc/apt/sources.list

 

With this one?

sudo sed -i s/bullseye/jammy/ /etc/apt/sources.list

 

Posted
20 minutes ago, Fancied5140 said:

Does this work for an upgrade from Bullseye to Jammy on the Orange Pi PC 2 as well,

No because Bullseye is Debian and Jammy is Ubuntu. While both using deb packages they are incompatible userspaces. So this "upgrade" is impossible.

Posted

I did this with a RockPro64 and it worked great. I had to edit one of the sources .list files additionally to change a focal to jammy, don't know why the sed didn't catch it. ZFS even stayed configured through the upgrade. I had to reenable the wireguard service though.

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