Ubuntu Advantage not working

With repeat finding of vulnerabilities in Zorin provided software such as the kernel i'm looking to enable livepatch.

This requires installation of ubuntu-advantage-tools, which is available as part of Zorin OS since this is essentially Ubuntu Focal.

However, when executing the command to enable Ubuntu advantage there is an error which is not documented and cannot be resolved.

ua attach <myuakey>

results in

Unexpected error(s) occurred.
For more details, see the log: /var/log/ubuntu-advantage.log
To file a bug run: ubuntu-bug ubuntu-advantage-tools

when filing the bug

ubuntu-bug ubuntu-advantage-tools

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.............

*** Problem in ubuntu-advantage-tools

The problem cannot be reported:

This is not an official Zorin package. Please remove any third party package and try again.

Press any key to continue...

No pending crash reports. Try --help for more information.


when looking at the log it shows


cat /var/log/ubuntu-advantage.log
2021-11-21 17:32:27,730 - cli.py:(1528) [DEBUG]: Executed with sys.argv: ['/usr/bin/ua', 'attach', '']
2021-11-21 17:32:27,730 - util.py:(429) [DEBUG]: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json
2021-11-21 17:32:27,730 - config.py:(523) [DEBUG]: File does not exist: /var/lib/ubuntu-advantage/private/machine-token.json
2021-11-21 17:32:27,731 - util.py:(429) [DEBUG]: Reading file: /var/lib/ubuntu-advantage/notices.json
2021-11-21 17:32:27,731 - config.py:(523) [DEBUG]: File does not exist: /var/lib/ubuntu-advantage/notices.json
2021-11-21 17:32:27,731 - util.py:(700) [DEBUG]: Writing file: /var/lib/ubuntu-advantage/notices.json
2021-11-21 17:32:27,731 - util.py:(700) [DEBUG]: Writing file: /var/lib/ubuntu-advantage/private/lock
2021-11-21 17:32:27,731 - util.py:(429) [DEBUG]: Reading file: /var/lib/ubuntu-advantage/notices.json
2021-11-21 17:32:27,731 - util.py:(429) [DEBUG]: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json
2021-11-21 17:32:27,731 - config.py:(523) [DEBUG]: File does not exist: /var/lib/ubuntu-advantage/private/machine-token.json
2021-11-21 17:32:27,731 - util.py:(429) [DEBUG]: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json
2021-11-21 17:32:27,731 - config.py:(523) [DEBUG]: File does not exist: /var/lib/ubuntu-advantage/private/machine-token.json
2021-11-21 17:32:27,731 - util.py:(429) [DEBUG]: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json
2021-11-21 17:32:27,732 - config.py:(523) [DEBUG]: File does not exist: /var/lib/ubuntu-advantage/private/machine-token.json
2021-11-21 17:32:27,732 - util.py:(429) [DEBUG]: Reading file: /etc/machine-id
2021-11-21 17:32:27,732 - util.py:(429) [DEBUG]: Reading file: /etc/os-release
2021-11-21 17:32:27,732 - util.py:(429) [DEBUG]: Reading file: /var/lib/ubuntu-advantage/notices.json
2021-11-21 17:32:27,732 - util.py:(710) [DEBUG]: Removing file: /var/lib/ubuntu-advantage/notices.json
2021-11-21 17:32:27,732 - cli.py:(1499) [ERROR]: Unhandled exception, please file a bug
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1458, in wrapper
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1544, in main
return args.action(args, cfg=cfg)
File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 203, in new_f
return f(args, cfg=cfg)
File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 166, in new_f
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 147, in new_f
retval = f(*args, cfg=cfg, **kwargs)
File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1107, in action_attach
return _attach_with_token(
File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 999, in _attach_with_token
contract.request_updated_contract(
File "/usr/lib/python3/dist-packages/uaclient/contract.py", line 443, in request_updated_contract
contract_client.request_contract_machine_attach(
File "/usr/lib/python3/dist-packages/uaclient/contract.py", line 76, in request_contract_machine_attach
data = self._get_platform_data(machine_id)
File "/usr/lib/python3/dist-packages/uaclient/contract.py", line 276, in _get_platform_data
platform = util.get_platform_info()
File "/usr/lib/python3/dist-packages/uaclient/util.py", line 339, in get_platform_info
raise RuntimeError(
RuntimeError: Could not parse /etc/os-release VERSION: 16 (modified to 16)

You did replace this with your ua key, right?

This is part of Enterprise Ubuntu, specifically, rather than just Ubuntu. I am not sure on installing it, I am far more proficient at removing it.
But I will look into this further.

You did replace this with your ua key, right?

why else would i write <myuakey> ?

this package is part of ubuntu but the ubuntu-bug report clearly states it is NOT an official Zorin package

to me, breaking official ubuntu software and breaking the official ubuntu bug reporting tool is not a good practice

FYI: Ubuntu Advantage is free for desktop users up to 3 machines

JLambrecht, I clearly recall the eggshells we walked on previously in a Full Moderator discussion.
As you can see - by my willingness to help above- I do not hold grudges.
However... there is an old saying... The second time the horse kicks you....
You were probationary the moment you posted. You have a history of speaking abusively to the volunteers of this forum. And I see you have learned Zero Lessons.

I will Not Help you with any further issues. Feel free to ask others, though...

5 Likes

Thread closed according to the community guideline.

After continued Moderator Discussion:
We have many helpful volunteers on this forum who take time out of their day to help others. This should be encouraged. This is best encouraged by creating a helpful and friendly atmosphere. We have been growing a Great Place here, where people bring out the Best In Each Other.

I can understand how a person may feel unhappy to have to ask others for help with something. However, compensating for that by belittling those that help you in order to elevate yourself to a higher dominant position will adversely affect members willingness to be Helpful members of the Forum.

This cannot be tolerated.
To this end:

  • Thread has been Closed. @JLambrecht , you will need to seek help elsewhere.
  • Further discussion will take place to consider the status of your account. This is your second offense of belittling the helpful members and nature of this forum. If there is a third, your only access to this board will be as a non-interacting Guest.
4 Likes