Comment 2 for bug 1936833

Revision history for this message
Grant Orndorff (orndorffgrant) wrote : Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

Thanks for the bug report!

ubuntu-advantage-tools tries to run `cloud-id` if the command is present during postinst to find a certain edge case and notify the user.

It looks like cloud-id was available, but instance-data.json was missing, so cloud-id failed. I believe this would occur if cloud-init is installed on this system but never ran. If you are able to get cloud-init to run and then try to upgrade ubuntu-advantage-tools again, I suspect it will work.

Regardless, ubuntu-advantage-tools should probably be able to handle this situation without failing.