Desktop application should check for service available information before listing it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-desktop-daemon (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Currently, it seems that software-properties is incorrectly assuming that both ESM and Livepatch services can be enabled in a Jammy machine. Those services are not yet available in Jammy and we are attaching an image showing that the Desktop message is that we had an error enabling then and that the user should try again.
It seems that software-proporties source `/var/lib/
We are now suggesting that software-properties also looks at the `available` field in the services json output to make that assumption, this will probably solve the issue we are seeing on Jammy.
Another approach would be using the output of `ua status --format json` directly. However, this command will make a request to the contract's server if the user is unattached and maybe it is not wise to use it in that context. However, the output of that command only show services that are available, so we would not need to apply that extra available filter to it.
The following PR should hopefully fix this: /github. com/canonical/ ubuntu- advantage- desktop- daemon/ pull/14
https:/