Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post Reply
wallyz21
Posts: 184
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 10 times
Been thanked: 18 times
Contact:

Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by wallyz21 »

My 18.04 Mate desktop has started prompting me to upgrade to 20.04 when I login!

What is the general advise regarding responding to this automated upgrade prompt?

I have been answering no because I believe the HK version of Ubuntu does not upgrade easily to the next version.

Is this correct?
Walter Zambotti
N2 - Ubuntu Mate Desktop

mad_ady
Posts: 8831
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: 586 times
Been thanked: 531 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by mad_ady »

You should make a backup and go with the upgrade...

User avatar
istanbulls
Posts: 380
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 234 times
Been thanked: 54 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by istanbulls »

mad_ady wrote:
Fri Oct 09, 2020 12:31 am
You should make a backup and go with the upgrade...
I tried it yesterday, it doesn't upgrade. The upgrade fails.

Pud74
Posts: 11
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by Pud74 »

I can confirm the update isn't working currently for 18.04LTS Mate to 20.04LTS Mate. The error message suggests it's to do with third party software repositories, but having removed all repositories except for canonical and odroid I still get the error.
I can provide logs if it's useful.

Has anyone successfully upgraded from 18.04 MAte to 20.04 Mate?

User avatar
odroid
Site Admin
Posts: 35909
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1320 times
Been thanked: 913 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by odroid »

What happens if you run a command 'sudo do-release-upgrade'?
You have to backup important files first.

Pud74
Posts: 11
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by Pud74 »

I tried to upgrade using the software updater prompt and with the command 'sudo do-release-upgrade' it was the same. Annoyingly I realise I forgot to copy the logs from the failed upgrades before I restored my backup image after my testing.

I'm waiting on an N2+ to arrive, hopefully in the next week or so, so I'll continue to experiment once that arrives.

User avatar
odroid
Site Admin
Posts: 35909
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1320 times
Been thanked: 913 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by odroid »

Or, flash the latest OS image to your SD or eMMC card with Etcher after backup your own data.
https://wiki.odroid.com/odroid-n2/os_im ... u/20200716

Pud74
Posts: 11
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by Pud74 »

The new N2+ arrived so I've tried to do a release upgrade to 20.04 mate on a stock install of 18.04 mate and it failed again with the unhelpful same error...

--------------------------------------------------------------------------
An unresolvable problem occurred while calculating the upgrade

This was likely caused by :
* Unofficial software packages not provided by Ubuntu
Please us the tool 'ppa-purge' from the ppa-purge
package to remove software from a launchpad PPA and
try the upgrade again
--------------------------------------------------------------------------

The logs show nothing obvious to me, but I'm no expert on Ubuntu.

It's not a big problem for me that the upgrade doesn't work. I can happily leave my original N2 running for 18.04 for a while until this hopefully gets resolved. I would ultimately like to upgrade the original N2 to 20.04 from 18.04 rather than reinstall everything on a stock image upgrade because of the time it would take to start from a fresh image.

Pud74
Posts: 11
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by Pud74 »

Going over the main.log I note the error follows a few lines about removing/replacing python 2. Even though the error makes no mention of python I decided to try removing python 2, which does break the mate desktop, to see if the upgrade process would then work. I can report the upgrade process does work once python 2 is removed. I'll try later to see if I can manually do the removing/replacing python 2 part of the process before running the upgrade, and hopefully not breaking the make desktop.

mad_ady
Posts: 8831
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: 586 times
Been thanked: 531 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by mad_ady »

I had the same issue caused by python2 on x86_64. I had to replace the python2 packages, but didn't document what I did, so I forgot about it...

Pud74
Posts: 11
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by Pud74 »

That's good to know it's not just me being stupid!

I currently still have it upgrading via ssh after I removed python 2, but I expect it to be broken once it's done. I'm just interested to see what mess it makes. I'll look in to the correct way to do it later.

Pud74
Posts: 11
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by Pud74 »

As expected the install of 20.04 worked but still with a broken desktop.

I've been looking at the release notes for 20.04 and the following seems to be the relevant part.
I'll try to do the python-is-python2 update manually which I believe to be the part that failed in the release upgrade.
I'll post my findings later.
Other base system changes since 18.04 LTS

Python3 by default

In 20.04 LTS, the python included in the base system is Python 3.8. Python 2.7 has been moved to universe and is not included by default in any new installs.

Remaining packages in Ubuntu which require Python 2.7 have been updated to use /usr/bin/python2 as their interpreter, and /usr/bin/python is not present by default on any new installs. On systems upgraded from previous releases, /usr/bin/python will continue to point to python2 for compatibility. Users who require /usr/bin/python for compatibility on newly-installed systems are encouraged to install the python-is-python3 package, for a /usr/bin/python pointing to python3 instead.

Due to this transition the legacy python and python-minimal packages might be removed during an upgrade, being replaced by the python2 and python2-minimal packages as dependencies of the python-is-python2 package.

Pud74
Posts: 11
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by Pud74 »

The Python2 path of enquiry may not be the problem after all. Crawling through the apt.log I see a lot of statements about broken packages that all seem to ultimately come back to 'marco:arm64', 'libmarco-private1:arm64' & 'libmarco-private2:arm64'.
I don't really know where to go with it from here.

mad_ady
Posts: 8831
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: 586 times
Been thanked: 531 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by mad_ady »

It's best to uninstall marco (and it will take mate with it) and reinstall mate-desktop once upgraded.
These users thanked the author mad_ady for the post:
Pud74 (Sat Oct 31, 2020 11:18 am)

Pud74
Posts: 11
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by Pud74 »

Thanks, I'll give that a try.

Pud74
Posts: 11
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by Pud74 »

So I tried the suggestion above and uninstalled mate desktop and marco. I was then able to do a release upgrade via ssh. The upgrade worked without error but I noticed that I no longer had sound. No sound devices were detected, although when I plugged in my usb XMOS DAC it worked normally. I tried a number of solutions I found on google but nothing worked.

On testing the stock image of Mate desktop 20.04 the sounds worked normally, so clearly something was still broken in the release upgrade.

I think it will be easier to rebuild my existing system on a fresh image of stock 20.04 rather than continuing to try and upgrade it. Now that I have 2 N2's that process will be much simpler.

robl
Posts: 20
Joined: Sun Jun 19, 2016 10:09 am
languages_spoken: english
ODROIDs: odroid c-2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by robl »

Is there an HK version of Ubuntu Mate? If so where do you get it. I could only find the HK Ubuntu 18.04 image/iso online for the N2+. I need to move to a Kernel greater then 4.9.230-76. I am having a problem with
"touch /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic". The following also fails:
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic.
I get a permissions problem. From what I have been able to find out a "higher" kernel will fix this issue.
Last edited by robl on Tue Nov 24, 2020 11:53 am, edited 1 time in total.

User avatar
tobetter
Posts: 6633
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 330 times
Been thanked: 924 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by tobetter »

robl wrote:
Tue Nov 24, 2020 11:44 am
Is there an HK version of Ubuntu Mate? If so where do you get it. I could only find the HK Ubuntu 18.04 image/iso online for the N2+. I need to move to a Kernel greater then 4.9.230-76. I am having a problem with
"touch /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic". I get a permissions problem. From what I have been able to find out a "higher" kernel will fix this issue.
Probably you can start from here but I think its kernel version is not higher than 4.9.236.
https://odroid.in/ubuntu_20.04lts/n2/

Can you share what problem you are facing with it?

robl
Posts: 20
Joined: Sun Jun 19, 2016 10:09 am
languages_spoken: english
ODROIDs: odroid c-2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by robl »

In the HK documentation for fan control it provides the following example for manual control of the fan:

# Set fan to manual mode
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
# Set fan speed to 0 ~ full speed
echo $1 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1

The "echo 0" line fails. My understanding is that without the line:
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic you will not achieve manual control because the fan control logic will continue to read other files to self regulate based upon current heat levels..

User avatar
tobetter
Posts: 6633
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 330 times
Been thanked: 924 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by tobetter »

robl wrote:
Tue Nov 24, 2020 11:58 am
In the HK documentation for fan control it provides the following example for manual control of the fan:

# Set fan to manual mode
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
# Set fan speed to 0 ~ full speed
echo $1 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1

The "echo 0" line fails. My understanding is that without the line:
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic you will not achieve manual control because the fan control logic will continue to read other files to self regulate based upon current heat levels..
Are you talking about the command from this? This is for XU4, not for N2Plus.
https://wiki.odroid.com/odroid-xu4/appl ... _fan_speed

robl
Posts: 20
Joined: Sun Jun 19, 2016 10:09 am
languages_spoken: english
ODROIDs: odroid c-2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by robl »

tobetter wrote:
Tue Nov 24, 2020 12:01 pm
robl wrote:
Tue Nov 24, 2020 11:58 am
In the HK documentation for fan control it provides the following example for manual control of the fan:

# Set fan to manual mode
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
# Set fan speed to 0 ~ full speed
echo $1 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1

The "echo 0" line fails. My understanding is that without the line:
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic you will not achieve manual control because the fan control logic will continue to read other files to self regulate based upon current heat levels..
Are you talking about the command from this? This is for XU4, not for N2Plus.
https://wiki.odroid.com/odroid-xu4/appl ... _fan_speed
Yes, but if you touch "/sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic" you get a permission denied error. You should be able to create a file as "root" user. Also trying to upgrade to Ubuntu 20 fails. An upgrade would/should bring in a later kernel. Please see https://github.com/f1vefour/odroid-xu4- ... l/issues/3 and note empierre's comment. the file structure on the n2+ seems to follow the same logic as for the xu4 so I believe that the link your referenced and the link I have followed should also apply to the fan. There is no logical reason why I can't use touch to create a file in the above directory.

User avatar
tobetter
Posts: 6633
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 330 times
Been thanked: 924 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by tobetter »

robl wrote:
Tue Nov 24, 2020 7:59 pm
tobetter wrote:
Tue Nov 24, 2020 12:01 pm
robl wrote:
Tue Nov 24, 2020 11:58 am
In the HK documentation for fan control it provides the following example for manual control of the fan:

# Set fan to manual mode
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
# Set fan speed to 0 ~ full speed
echo $1 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1

The "echo 0" line fails. My understanding is that without the line:
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic you will not achieve manual control because the fan control logic will continue to read other files to self regulate based upon current heat levels..
Are you talking about the command from this? This is for XU4, not for N2Plus.
https://wiki.odroid.com/odroid-xu4/appl ... _fan_speed
Yes, but if you touch "/sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic" you get a permission denied error. You should be able to create a file as "root" user. Also trying to upgrade to Ubuntu 20 fails. An upgrade would/should bring in a later kernel. Please see https://github.com/f1vefour/odroid-xu4- ... l/issues/3 and note empierre's comment. the file structure on the n2+ seems to follow the same logic as for the xu4 so I believe that the link your referenced and the link I have followed should also apply to the fan. There is no logical reason why I can't use touch to create a file in the above directory.
No, you should understand what files are under /sys. Please google what's sysfs, even if you can create a file with touch command it does not affect to change the beviour of cooling fan. Also different kernel could provide the different interface if OS or driver is changed.

It would be more easier to share what you are going to do. I guess you are going to make fan runs all the time at max speed?

robl
Posts: 20
Joined: Sun Jun 19, 2016 10:09 am
languages_spoken: english
ODROIDs: odroid c-2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by robl »

Here is what I am attempting to do:
write a python/tk routine and using the "scale" widget to pass a number between 0 and 255 to a bash script containing the following two lines:

# Set fan to manual mode
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
# Set fan speed to 0 ~ full speed
echo $1 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1

This does work for the most part but the "echo 0" line is supposed to cause the fan "to ignore written scaling files(trip points and fan speed) and run constantly at the same speed". You can see this post here on the odroid wiki: https://wiki.odroid.com/odroid-xu4/appl ... ol_the_fan Please note that kernel 4.14.20 or higher is required and that the fan will ignore scaling values, etc.
I am expecting to see an /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic file containing a "0" and without such a file other files containing scaling values might be interpreted.

I did google sysfs but got lost.

User avatar
tobetter
Posts: 6633
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 330 times
Been thanked: 924 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by tobetter »

robl wrote:
Tue Nov 24, 2020 11:23 pm
Here is what I am attempting to do:
write a python/tk routine and using the "scale" widget to pass a number between 0 and 255 to a bash script containing the following two lines:

# Set fan to manual mode
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
# Set fan speed to 0 ~ full speed
echo $1 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1

This does work for the most part but the "echo 0" line is supposed to cause the fan "to ignore written scaling files(trip points and fan speed) and run constantly at the same speed". You can see this post here on the odroid wiki: https://wiki.odroid.com/odroid-xu4/appl ... ol_the_fan Please note that kernel 4.14.20 or higher is required and that the fan will ignore scaling values, etc.
I am expecting to see an /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic file containing a "0" and without such a file other files containing scaling values might be interpreted.

I did google sysfs but got lost.
automatic node is not supported in the current kernel unless it's been patched.
Alternative, you can try this if you like to change the fan speed with the current kernel instead, replace the first zero to the figure you want.

Code: Select all

echo "0 204 220 240" | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/fan_speed

robl
Posts: 20
Joined: Sun Jun 19, 2016 10:09 am
languages_spoken: english
ODROIDs: odroid c-2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by robl »

tobetter,

thanks for your interest and support in this issue. I have been out most of the day and will be out early tomorrow so I won't be responding here until late tomorrow. What I will be doing is installing my scripts on Armbian with kernel 5.8.16. I want to see how Armbian responds to the same two scripts, mine (a pythone/tk script) and the bash script consisting of the "echo" lines from above. I will let you know how it behaves on Armbian running 5.8.16.

Do you know when the current kernel on HK Ubuntu Mate might be uplifted from 4-9.230 to a later kernel?

Again thanks and I will let you know about how the Armbian OS with kernel 5.18.16 works out.

robl

robl
Posts: 20
Joined: Sun Jun 19, 2016 10:09 am
languages_spoken: english
ODROIDs: odroid c-2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by robl »

Same issues with Armbian running kernell 5.18.16 as with Ubuntu Mate 18.04.

I must be missing something. This command line in my script fails:
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
I was under the impression that kernel 5.18 would support this whereas Ubuntu Mate's 18.04 kernel would not.

My python/tk turns on the fan but when the temp is reduced other functions within the fan logic stop it. I want to set the rpm on the fan and walk away.
Last edited by robl on Thu Nov 26, 2020 5:15 am, edited 1 time in total.

User avatar
tobetter
Posts: 6633
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 330 times
Been thanked: 924 times
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by tobetter »

robl wrote:
Thu Nov 26, 2020 4:59 am
Same issues with Armbian running kernell 5.18.16 as with Ubuntu Mate 1804.

I must be missing something. This command line in my script fails:
echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
No, again...this command won't work...since it's in the sysfs node and if kernel or driver does not support the attribute, it does not work. And the node what you are trying is applied to XU4 only so it is no meaning to try on N2. I've made the change to control the FAN from the command line which is different what you tried and the patch has been merged to my kernel branch and packaged. But for 4.9 kernel, I need to work a bit more to have the feauture. If my patch is merged, you could try this command but exact node might be different.

Code: Select all

$ echo 0 | sudo tee /sys/class/hwmon/hwmon2/pwm1_enable
$ echo 255 | sudo tee /sys/class/hwmon/hwmon2/pwm1

robl
Posts: 20
Joined: Sun Jun 19, 2016 10:09 am
languages_spoken: english
ODROIDs: odroid c-2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu MATE 18.04 now prompting to upgrade to 20.04

Post by robl »

When you merge your patch would it be to the OS and where would I find the patched OS. I noted on the HK page that HK has all of their boards listed and by clicking on a board you are taken to an OS download page. Are the operating systems customized for individual board types?

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest