Upgrade to Ubuntu 18.04 minimal

Moderators: odroid, mdrjr

Upgrade to Ubuntu 18.04 minimal

Unread postby Pienoet » Tue Jun 05, 2018 8:18 am

Hi can i upgrade from Ubuntu 16.04.4 LTS (GNU/Linux 4.14.24-113 to Ubuntu 18.04 minimal on my XU4?
Pienoet
 
Posts: 384
Joined: Sun May 10, 2015 10:04 pm
languages_spoken: english Dutch

Re: Upgrade to Ubuntu 18.04 minimal

Unread postby odroid » Tue Jun 05, 2018 8:31 am

If you don't care the GPU driver, you can upgrade it.

Otherwise, freshly flash the 18.04 minimal image.
https://wiki.odroid.com/odroid-xu4/os_images/linux/ubuntu_4.14/20180531

Anyway, before upgrading, you have to update your system software first.
https://wiki.odroid.com/odroid-xu4/os_images/linux/ubuntu_4.14/20171213#how_to_update_system_and_kernel_software_don_t_forget_dist-upgrade
User avatar
odroid
Site Admin
 
Posts: 27958
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Upgrade to Ubuntu 18.04 minimal

Unread postby monzer4819 » Wed Jun 06, 2018 10:33 pm

How does one upgrade it?

Code: Select all
root@odroid:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial
root@odroid:~# do-release-upgrade
Checking for a new Ubuntu release
No new release found.
root@odroid:~#
monzer4819
 
Posts: 1
Joined: Wed Apr 18, 2018 7:36 pm
languages_spoken: english
ODROIDs: ux4

Re: Upgrade to Ubuntu 18.04 minimal

Unread postby mad_ady » Wed Jun 06, 2018 11:52 pm

do-release-upgrade --devel-release until 18.04.1 hits stable.
User avatar
mad_ady
 
Posts: 3812
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: Upgrade to Ubuntu 18.04 minimal

Unread postby odroid » Thu Jun 07, 2018 8:49 am

Try the following steps. You have to backup your important data first before upgrading.

Answer "Yes" to all questions. Only one answer "No" when you meet a dialog box of "Do you want to abort removal now?" in the last step.
Code: Select all
sed -i "s/xenial/bionic/g" /etc/apt/sources.list
sed -i "s/xenial/bionic/g" /etc/apt/sources.list.d/odroid.list
rm /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-xenial.list
apt-get update
apt-fast dist-upgrade
apt-get remove linux-image-xu3
apt-get remove linux-image-4.14*


And finalize the upgrade process.
Code: Select all
apt-get install linux-odroid-5422
apt-get autoremove
reboot


After that, I could see this message.
Code: Select all
Ubuntu 18.04 LTS odroid ttySAC2                                                 
                                                                               
odroid login: root
Password:
Last login: Thu Jun  7 08:20:30 UTC 2018 on tty1
Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.14.47-139 armv7l)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

root@odroid:~#



NOTE:
I freshly flashed “ubuntu-16.04.3-4.14-minimal-odroid-xu4-20171213.img.xz” to a spare 8GB micro-SD card.
And followed above steps and it worked well.
But it is very hard to guarantee the upgrade feature if your OS has a different configuration.
User avatar
odroid
Site Admin
 
Posts: 27958
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Upgrade to Ubuntu 18.04 minimal

Unread postby abnoeh » Thu Jun 07, 2018 9:07 am

It's a weird idea, but can the gpu driver by edit disk directly outside of odroid?
like mount sdcard/emmc on x86 linux machine and change needed files?
abnoeh
 
Posts: 2
Joined: Fri Apr 27, 2018 8:09 pm
languages_spoken: english
ODROIDs: XU4

Re: Upgrade to Ubuntu 18.04 minimal

Unread postby mad_ady » Fri Jun 08, 2018 6:48 pm

I've upgraded a production xu4 that was running as a headless nas to 18.04. No problems during the upgrade, but once rebooted I had these issues:
* would reboot every minute because of the watchdog. The cause was a custom watchdog script which didn't have a shebang and was reported as invalid exec format. Used to work before. Fixed it by fixing the shebang.
* nfs would not start due to deprecated/missing options in /etc/exportfs

So, when doing an upgrade, backup and allocate enough time for post troubleshooting.
User avatar
mad_ady
 
Posts: 3812
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: Upgrade to Ubuntu 18.04 minimal

Unread postby DrThisGuy » Sat Jun 09, 2018 6:20 am

Code: Select all
(non-root user)@odroid:~$ sudo apt-get install linux-odroid-5422
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-odroid-5422


I get the following error (E: Unable to locate package linux-odroid-5422) even after adding the repositories in line one and two. Any ideas. I would rather not have to re-flash
DrThisGuy
 
Posts: 2
Joined: Sat Jun 09, 2018 6:16 am
languages_spoken: english
ODROIDs: c2 and xu4

Re: Upgrade to Ubuntu 18.04 minimal

Unread postby mad_ady » Sat Jun 09, 2018 4:02 pm

Did you run an apt-get update after the edits? I haven't removed the kernel package because I use a self-compiled kernel.
User avatar
mad_ady
 
Posts: 3812
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: Upgrade to Ubuntu 18.04 minimal

Unread postby DrThisGuy » Sat Jun 09, 2018 10:47 pm

fixed it.

there were two problems

1. when I upgraded to bionic it commented out "deb http://deb.odroid.in/5422-s/ bionic main" in /etc/apt/sources.list.d/odroid.list

2. I was coming from the 4.9 kernel so

Code: Select all
apt-get remove linux-image-4.14*

needed to be changed to
Code: Select all
apt-get remove linux-image-4.9*


hope this helps someone
DrThisGuy
 
Posts: 2
Joined: Sat Jun 09, 2018 6:16 am
languages_spoken: english
ODROIDs: c2 and xu4


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests