-----------------------------------------------------------
xenial: ua not installed
0 updates can be installed immediately.
0 of these updates are security updates.
-----------------------------------------------------------
xenial esm: ua not attached
0 updates can be installed immediately.
0 of these updates are security updates.
-----------------------------------------------------------
xenial esm: ua attached
UA Infra: Extended Security Maintenance (ESM) is enabled.
5 updates can be installed immediately.
5 of these updates are UA Apps: ESM security updates.
5 of these updates are security updates.
To see these additional updates run: apt list --upgradable
-----------------------------------------------------------
xenial non-esm: ua not attached
0 updates can be installed immediately.
0 of these updates are security updates.
5 additional security updates can be applied with UA Apps: ESM
Learn more about enabling UA Apps: ESM service at https://ubuntu.com/esm
-----------------------------------------------------------
xenial non-esm: ua attached
5 updates can be installed immediately.
5 of these updates are UA Apps: ESM security updates.
5 of these updates are security updates.
To see these additional updates run: apt list --upgradable
-----------------------------------------------------------
Also, this is formatted output of my script:
------- ------- ------- ------- ------- ------- ------- ------- --- ------- ------- ------- ------- ------- ------- ------- --- ------- ------- ------- ------- ------- ------- ------- ---
xenial: ua not installed
0 updates can be installed immediately.
0 of these updates are security updates.
-------
xenial esm: ua not attached
0 updates can be installed immediately.
0 of these updates are security updates.
-------
xenial esm: ua attached
UA Infra: Extended Security Maintenance (ESM) is enabled.
5 updates can be installed immediately. ------- ------- ------- ------- ------- ------- ------- ---
5 of these updates are UA Apps: ESM security updates.
5 of these updates are security updates.
To see these additional updates run: apt list --upgradable
-------
xenial non-esm: ua not attached
0 updates can be installed immediately.
0 of these updates are security updates.
5 additional security updates can be applied with UA Apps: ESM /ubuntu. com/esm ------- ------- ------- ------- ------- ------- ------- --- ------- ------- ------- ------- ------- ------- ------- ---
Learn more about enabling UA Apps: ESM service at https:/
-------
xenial non-esm: ua attached
5 updates can be installed immediately.
5 of these updates are UA Apps: ESM security updates.
5 of these updates are security updates.
To see these additional updates run: apt list --upgradable
-------