U
    2dv                     @   s  d dl mZmZ d dlmZmZmZ G dd dZG dd deZG dd dZ	e	j
d	 e	j Ze	jd
 e	j Ze	jd e	j ZdZdZdZdZdZdZdZdZdZdZdZed Zed Zed ZeddZdZ dZ!dZ"ed Z#d Z$d!j%e	j&e	jd"Z'd#j%e	j&e	jd"Z(d$j%e	j&e	jd"Z)d%j%e	j&e	jd"Z*d&Z+d'Z,d(Z-d)Z.d*Z/d+Z0d,Z1d-Z2d.Z3d/Z4d0Z5d1Z6d2Z7d3Z8d4Z9d5Z:d6Z;d7Z<d8Z=d9Z>d:Z?d;Z@d<ZAd=e d> ZBd?e ZCd@e ZDdAZEdBZFdCj%ee	j&e	jdDZGdEZHdFZIdGZJdHZKdIZLdJZMdKZNdLZOdMZPdNZQdOZRdPZSdQZTdRZUdSZVdTZWdUZXdVZYdWZZdXZ[dYZ\dZZ]d[Z^d\Z_d]Z`d^Zad_Zbd`ZcdaZddbZedcZfddZgdeZhdfZidgZjdhZkdiZldjZmdkZndlZodmZpdnj%edoZqedpdqe d> Zredrdse Zsedtdue ZtedvdwZuedxeujvdy etjv Zwedzd{Zxed|d}Zyed~dZzeddZ{eddZ|eddZ}eddZ~eddZeddZeddZeddZeddZedde d> ZeddZeddZeddZeddZeddZeddZeddZeddZeddZedde ZeddZeddZeddZeddZeddZeddZeddZeddZeddZeddZeddZeddZeddej ZeddÃZeddej ZeddǃZeddɃZedd˃Zedd̓ZeddσZedddҍZeddԃZeddփZedd؃ZeddڃZedd܃ZeddރZeddZeddj%edZedde ZeddZedde d> Zedde ZeddZeddZeddZeddejv ZeddZeddZeddZeddZeddZeddZed dIZeddZeddZeddZeddZed	d
ZeddZeddZeddZeddZeddZeddZeddZǐdj%e	j&e	jd"ZȐdZeddZeddZejd Zejd  Z͐d!Zΐd"Zϐd#ZАd$Zѐd%ZҐd&ZӐd'ZԐd(ZՐd)Z֐d*Zאd+e Zؐd,e Zِd-e Zڐd.e Zېd/%eZܐd0Zݐd1%eZސd2Zed3d4dҍZed5d6dҍZed7d8dҍZed9d:dҍZed;d<dҍZed=d>dҍZd?Zed@dAdҍZedBdCdҍZedDdEdҍZdFZdGZdHZdIZdJZdKZdLZdMZdNZdOZdPe ZdQe ZdRZdSZdTZdUZdVZdWZdXZdYZdZZd[Zd\Z d]j%edZd^Zd_Zd`ZdaZdbZdcZddZdeZ	edfdgZ
dhZdiZedjdkZedldmZdnZdoZedp Zedq ZdrZdsZdtZduZdvZdwZdxZdyZedzd{Zed|d}Zed~dZeddZedddҍZedddҍZ edddҍZ!dZ"dZ#eddZ$eddZ%eddZ&eddZ'eddZ(eddZ)edddҍZ*eddZ+eddZ,eddZ-eddZ.dZ/dZ0dZ1dZ2eddZ3dZ4dZ5dZ6dZ7eddZ8eddZ9eddZ:dZ;eddZ<eddZ=eddZ>eddZ?eddZ@eddZAeddZBeddZCeddZDdÐZEdĐZFdŐZGedƐdǃZHedȐdɃZIedʐd˃ZJed̐d̓ZKedΐdσZLedАdуZMdҐZNdӐZOedԐdՃZPed֐d׃ZQedؐdكZRedڐdۃZSedܐd݃ZTedސd߃ZUeddZVeddZWeddZXdS (      )DictOptional)BASE_UA_URLDOCUMENTATION_URLPRO_ATTACH_URLc                   @   s<   e Zd Zd	eeeeeef  dddZdd Zdd ZdS )
NamedMessageNnamemsgadditional_infoc                 C   s   || _ || _|| _d S Nr   )selfr	   r
   r    r   3/usr/lib/python3/dist-packages/uaclient/messages.py__init__   s    zNamedMessage.__init__c                 C   s$   | j |j ko"| j|jko"| j|jkS r   )r
   r	   r   )r   otherr   r   r   __eq__   s
    

zNamedMessage.__eq__c                 C   s    d | j | j | j S )NzNamedMessage({}, {}, {}))formatr	   __repr__r
   r   r   r   r   r   r      s
    zNamedMessage.__repr__)N)	__name__
__module____qualname__strr   r   r   r   r   r   r   r   r   r      s    r   c                   @   s,   e Zd ZeedddZdd Zdd ZdS )	FormattedNamedMessager	   r
   c                 C   s   || _ || _d S r   )r	   tmpl_msg)r   r	   r
   r   r   r   r   $   s    zFormattedNamedMessage.__init__c                 K   s   t | j| jjf |dS )Nr   )r   r	   r   r   )r   Z
msg_paramsr   r   r   r   (   s     zFormattedNamedMessage.formatc                 C   s   d | j | j S )NzFormattedNamedMessage({}, {}))r   r	   r   r   r   r   r   r   r   -   s    zFormattedNamedMessage.__repr__N)r   r   r   r   r   r   r   r   r   r   r   r   #   s   r   c                   @   s(   e Zd ZdZdZdZdZdZdZdZ	dS )	TxtColorz[92mz[37mz[94mz[93mz[91mz[1mz[0mN)
r   r   r   OKGREENZDISABLEGREYINFOBLUEZWARNINGYELLOWFAILBOLDENDCr   r   r   r   r   4   s   r   u   ✔u   ✘z[info]zsInvalid value for {path_to_value} in /etc/ubuntu-advantage/uaclient.conf. Expected {expected_value}, found {value}.z:Failed to find the machine token overlay file: {file_path}z8Found error: {error} when reading json file: {file_path}zBChoose: [S]ubscribe at ubuntu.com [A]ttach existing token [C]ancelz#A fix is available in {fix_stream}.z The update is not yet installed.zSThe update is not installed because this system is not attached to a
subscription.
zXThe update is not installed because this system is attached to an
expired subscription.
zQThe update is not installed because this system does not have
{service} enabled.
z The update is already installed.zPFor easiest security on {title}, use Ubuntu Pro. https://ubuntu.com/{cloud}/pro.z! {issue}{extra_info} is resolved.z% {issue}{extra_info} is not resolved.z1 {issue}{extra_info} does not affect your system.zsecurity-pkg-still-affectedz3{num_pkgs} package{s} {verb} still affected: {pkgs}z5{count} affected source package{plural_str} installedz{issue} is addressed.z{issue} is resolved.z; {issue} is resolved by livepatch patch version: {version}.z7{issue}: {title}
https://ubuntu.com/security/{url_path}z{bold}Ubuntu Pro service: {{service}} is not enabled.
To proceed with the fix, a prompt would ask permission to automatically enable
this service.
{{{{ pro enable {{service}} }}}}{end_bold})boldend_boldz{bold}The machine is not attached to an Ubuntu Pro subscription.
To proceed with the fix, a prompt would ask for a valid Ubuntu Pro token.
{{ pro attach TOKEN }}{end_bold}z{bold}The machine has an expired subscription.
To proceed with the fix, a prompt would ask for a new Ubuntu Pro
token to renew the subscription.
{{ pro detach --assume-yes }}
{{ pro attach NEW_TOKEN }}{end_bold}zu{bold}WARNING: The option --dry-run is being used.
No packages will be installed when running this command.{end_bold}zZError: Ubuntu Pro service: {service} is not enabled.
Without it, we cannot fix the system.zoError: The current Ubuntu Pro subscription is not entitled to: {service}.
Without it, we cannot fix the system.z"{service} is required for upgrade.zG{service} is required for upgrade, but current subscription is expired.z9{service} is required for upgrade, but it is not enabled.z#APT failed to install the package.
zSorry, no fix is available yet.z7Ubuntu security engineers are investigating this issue.z)A fix is coming soon. Try again tomorrow.zSorry, no fix is available.z.Source package does not exist on this release.z/Source package is not affected on this release.zUNKNOWN: {status}zFixing requested {issue_id}zFixing related USNs:z$Found related USNs:
- {related_usns}zSummary:a?  Even though a related USN failed to be fixed, note
that {issue_id} was fixed. Related USNs do not
affect the original USN. Learn more about the related
USNs, please refer to this page:

https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/explanations/cves_and_usns_explained.html#what-are-related-usns
zUpdating package listszCould not disable {title}.z{title} access enabledz{title} enabledz{title} disabledzKUnable to determine auto-attach platform support
For more information see: .z@Auto-attach image support is not available on {cloud_type}
See: z>Auto-attach image support is not available on this image
See: zInitiating attach operation...zFailed to perform attach...z{Please sign in to your Ubuntu Pro account at this link:
{url}
And provide the following code: {bold}{{user_code}}{end_bold})urlr#   r$   zAttaching the machine...z$No Ubuntu Pro operations are runningzEFailed running reboot_cmds script. See: /var/log/ubuntu-advantage.logz>Livepatch support requires a system reboot across LTS upgrade.zReboot to FIPS kernel requiredzsnapd does not have wait command.
Enabling Livepatch can fail under this scenario
Please, upgrade snapd if Livepatch enable fails and try again.z;This FIPS install is out of date, run: sudo pro enable fipsz<Disabling FIPS requires system reboot to complete operation.z.{service} {pkg} package could not be installedzYPlease run `apt upgrade` to ensure all FIPS packages are updated to the correct
version.
z2This machine is now attached to '{contract_name}'
z+This machine is now successfully attached'
zEnabling default service {name}z-A reboot is required to complete {operation}.zEService {name} is recommended by default. Run: sudo pro enable {name}zThis machine is now detached.z&Unable to automatically detach machinez,One moment, checking your subscription firstz)Successfully refreshed your subscription.z#Unable to refresh your subscriptionz.Successfully processed your pro configuration.zUnable to process uaclient.confz>Successfully updated Ubuntu Pro related APT and MOTD messages.z:Unable to update Ubuntu Pro related APT and MOTD messages.z@Failed to check for change in machine contract. Reason: {reason}z:Required command to update MOTD messages not found: {cmd}.z{service_being_enabled} cannot be enabled with {incompatible_service}.
Disable {incompatible_service} and proceed to enable {service_being_enabled}? (y/N) z{service_being_enabled} cannot be enabled with {required_service} disabled.
Enable {required_service} and proceed to enable {service_being_enabled}? (y/N) z{dependent_service} depends on {service_being_disabled}.
Disable {dependent_service} and proceed to disable {service_being_disabled}? (y/N) z/Disabling dependent service: {required_service}z]Package fixes cannot be installed.
To install them, run this command as root (try using sudo)zCAUTION: Your Ubuntu Pro subscription will expire in {remaining_days} days.
Renew your subscription at https://ubuntu.com/pro to ensure continued security
coverage for your applications.

zCAUTION: Your Ubuntu Pro subscription expired on {expired_date}.
Renew your subscription at https://ubuntu.com/pro to ensure continued security
coverage for your applications.
Your grace period will expire in {remaining_days} days.

z*Your Ubuntu Pro subscription has EXPIRED*
{pkg_num} additional security update(s) require Ubuntu Pro with '{service}' enabled.
Renew your service at https://ubuntu.com/pro

zY*Your Ubuntu Pro subscription has EXPIRED*
Renew your service at https://ubuntu.com/pro

zCAUTION: Your Ubuntu Pro subscription will expire in {remaining_days} days.
Renew your subscription at https://ubuntu.com/pro to ensure continued
security coverage for your applications.zCAUTION: Your Ubuntu Pro subscription expired on {expired_date}.
Renew your subscription at https://ubuntu.com/pro to ensure continued
security coverage for your applications.
Your grace period will expire in {remaining_days} days.zW*Your Ubuntu Pro subscription has EXPIRED*
Renew your service at https://ubuntu.com/proa  /*
 * Autogenerated by ubuntu-advantage-tools
 * Do not edit this file directly
 *
 * To change what ubuntu-advantage-tools sets, use the `pro config set`
 * or the `pro config unset` commands to set/unset either:
 *      global_apt_http_proxy and global_apt_https_proxy
 * for a global apt proxy
 * or
 *      ua_apt_http_proxy and ua_apt_https_proxy
 * for an apt proxy that only applies to Ubuntu Pro related repos.
 */
zSetting {service} proxyzEError trying to use "{proxy}" as proxy to reach "{test_url}": {error}zNo proxy set in config; however, proxy is configured for: {{services}}.
See {docs_url} for more information on pro proxy configuration.
)Zdocs_urlzcloud-non-optimized-fips-kernelzMUbuntu {series} does not provide {cloud} optimized FIPS kernel
For help see: Z
unattachedz@This machine is not attached to an Ubuntu Pro subscription.
See z valid-service-failure-unattachedzTo use '{valid_service}' you need an Ubuntu Pro subscription
Personal and community subscriptions are available at no charge
See zinvalid-service-or-failurezECannot {operation} unknown service '{invalid_service}'.
{service_msg}z!mixed-services-failure-unattached
z"failed-disabling-dependent-servicez;Cannot disable dependent service: {required_service}{error}zdependent-service-not-foundz&Dependent service {service} not found.zdepedent-service-stops-disablezMCannot disable {service_being_disabled} when {dependent_service} is enabled.
zerror-enabling-required-servicez0Cannot enable required service: {service}{error}zrequired-service-stops-enablezKCannot enable {service_being_enabled} when {required_service} is disabled.
z!incompatible-service-stops-enablezMCannot enable {service_being_enabled} when {incompatible_service} is enabled.zservice-not-configuredz{title} is not configuredzservice-is-activez{title} is activezno-apt-url-for-servicez){title} does not have an aptURL directivezservice-already-disabledz5{title} is not currently enabled
See: sudo pro statuszservice-already-enabledz0{title} is already enabled.
See: sudo pro statuszenable-failedzCould not enable {title}.z$subscription-not-entitled-to-servicezGThis subscription is not entitled to {title}
For more information see: zservice-not-entitledz{title} is not entitledzinapplicable-kernel-versionz\{title} is not available for kernel {kernel}.
Minimum kernel version required: {min_kernel}.zinapplicable-kernelzY{title} is not available for kernel {kernel}.
Supported flavors are: {supported_kernels}.zinapplicable-seriesz-{title} is not available for Ubuntu {series}.zinapplicable-archzZ{title} is not available for platform {arch}.
Supported platforms are: {supported_arches}.zinapplicable-vendor-nameza{title} is not available for CPU vendor {vendor}.
Supported CPU vendors are: {supported_vendors}.z"no-entitlement-affordances-checkedz"no entitlement affordances checkedzproxy-invalid-urlz3"{proxy}" is not a valid url. Not setting as proxy.zproxy-not-workingz/"{proxy}" is not working. Not setting as proxy.zattach-invalid-tokenzInvalid token. See z$magic-attach-token-already-activatedz,The magic attach token is already activated.zmagic-attach-token-expiredz4The magic attach token has expired or never existed.zmagic-attach-token-errorz?The magic attach token is invalid, has expired or never existedzmagic-attach-invalid-emailz{email} is not a valid email.z magic-attach-service-unavailablez,Service unavailable, please try again later.zmagic-attach-invalid-paramz=This attach flow does not support {param} with value: {value}zrequired-service-not-foundz%Required service {service} not found.z,unexpeced-contract-token-on-attached-machinez<Got unexpected contract_token on an already attached machinezapt-update-invalid-repozAPT update failed.
{repo_msg}zapt-install-failedzAPT install failed.zapt-update-invalid-url-configzSAPT update failed to read APT config for the following URL{plural}:
{failed_repos}.zapt-process-conflictzAnother process is running APT.z"apt-update-failed-process-conflictzAPT update failed. zapt-update-failedzAPT Update failedz#apt-install-failed-process-conflictz {header_msg}APT install failed. zapt-install-invalid-repoz){header_msg}APT install failed.{repo_msg}zcannot-install-snapdz%Failed to install snapd on the systemz%ssl-verification-error-ca-certificatezoFailed to access URL: {url}
Cannot verify certificate of server
Please install "ca-certificates" and try again.z%ssl-verification-error-openssl-configzhFailed to access URL: {url}
Cannot verify certificate of server
Please check your openssl configuration.zmissing-apt-url-directivezEUbuntu Pro server provided no aptURL directive for {entitlement_name}zalready-attachedzpThis machine is already attached to '{account_name}'
To use a different subscription first run: sudo pro detach.r   zconnectivity-errorzXFailed to connect to authentication server
Check your Internet connection and try again.znonroot-userz2This command must be run as root (try using sudo).zerror-installing-livepatchz/Unable to install Livepatch client: {error_msg}zapt-policy-failedzFailure checking APT policy.zattach-forbidden-expiredz*Contract "{contract_id}" expired on {date}zattach-forbidden-not-yetz6Contract "{contract_id}" is not effective until {date}zattach-forbidden-neverz1Contract "{contract_id}" has never been effectivezattach-forbiddenz@Attach denied:
{{reason}}
Visit {url} to manage contract tokens.)r&   zattach-experied-tokenz8Expired token or contract. To obtain a new token visit: zattach-token-xor-configzuDo not pass the TOKEN arg if you are using --attach-config.
Include the token in the attach-config file instead.
    zattach-requires-tokenzQAttach requires a token: sudo pro attach <TOKEN>
To obtain a token please visit: zattach-failurezFailed to attach machine. See zattach-failure-default-servicez9Failed to enable default services, check: sudo pro statusz$invalid-contract-deltas-service-typez<Could not determine contract delta service type {orig} {new}z	lock-heldz0Operation in progress: {lock_holder} (pid:{pid})zlock-held-errorz#Unable to perform: {lock_request}.
zunexpected-errorzUnexpected error(s) occurred.
For more details, see the log: /var/log/ubuntu-advantage.log
To file a bug run: ubuntu-bug ubuntu-advantage-toolszattach-config-read-errorz*Error while reading {config_name}: {error}zjson-format-require-assume-yesz3json formatted response requires --assume-yes flag.zlivepatch-not-enabledz*canonical-livepatch snap is not installed.z"service-error-install-on-containerz&Cannot install {title} on a container.z!livepatch-error-when-fips-enabledz-Cannot enable Livepatch when FIPS is enabled.zfips-reboot-requiredzfips-system-reboot-requiredz>FIPS support requires system reboot to complete configuration.z%fips-enable-when-fips-updates-enabledz4Cannot enable {fips} when {fips_updates} is enabled.zfips-proc-file-errorz{file_name} is not set to 1z*fips-enable-when-fips-updates-once-enabledz=Cannot enable {fips} because {fips_updates} was once enabled.zfips-updates-invalidates-fipszFIPS cannot be enabled if FIPS Updates has ever been enabled because FIPS Updates installs security patches that aren't officially certified.zfips-invalidates-fips-updatesz{FIPS Updates cannot be enabled if FIPS is enabled. FIPS Updates installs security patches that aren't officially certified.zlivepatch-invalidates-fipszLivepatch cannot be enabled while running the official FIPS certified kernel. If you would like a FIPS compliant kernel with additional bug fixes and security updates, you can use the FIPS Updates service with Livepatch.zrealtime-fips-incompatiblezXRealtime and FIPS require different kernels, so you cannot enable both at the same time.z"realtime-fips-updates-incompatiblez`Realtime and FIPS Updates require different kernels, so you cannot enable both at the same time.zrealtime-livepatch-incompatiblez>Livepatch is not currently supported for the Real-time kernel.zrealtime-variant-incompatiblez3{service} cannot be enabled together with {variant}zbeta-flag-requiredz{Use `pro enable realtime-kernel --beta` to acknowledge the real-time kernel is currently in beta and comes with no support.zThe Real-time kernel is an Ubuntu kernel with PREEMPT_RT patches integrated.

{bold}This will change your kernel. To revert to your original kernel, you will need
to make the change manually.{end_bold}

Do you want to continue? [ default = Yes ]: (Y/n) a  This will remove the boot order preference for the Real-time kernel and
disable updates to the Real-time kernel.

This will NOT fully remove the kernel from your system.

After this operation is complete you must:
  - Ensure a different kernel is installed and configured to boot
  - Reboot into that kernel
  - Fully remove the realtime kernel packages from your system
      - This might look something like `apt remove linux*realtime`,
        but you must ensure this is correct before running it.

Are you sure? (y/N) z#realtime-error-install-on-containerz/Cannot install Real-time kernel on a container.z#gcp-pro-service-account-not-enabledzqFailed to attach machine
{error_msg}
For more information, see https://cloud.google.com/iam/docs/service-accountsz {error}z% Failed to access URL: {url}. {error}zSetting {scope} APT proxyzXWarning: apt_{protocol_type}_proxy has been renamed to global_apt_{protocol_type}_proxy.zvWarning: Setting the {current_proxy} proxy will overwrite the {previous_proxy}
proxy previously set via `pro config`.
z`Using deprecated "apt_http_proxy" config field.
Please migrate to using "global_apt_http_proxy"
zbUsing deprecated "apt_https_proxy" config field.
Please migrate to using "global_apt_https_proxy"
zError: Setting global apt proxy and pro scoped apt proxy
at the same time is unsupported.
Cancelling config process operation.
zHIgnoring availability of unknown service {service} from contract server
zsFIPS kernel is running in a disabled state.
  To manually remove fips kernel: https://discourse.ubuntu.com/t/20738
zWarning: FIPS kernel is not optimized for your specific cloud.
To fix it, run the following commands:

    1. sudo pro disable fips
    2. sudo apt-get remove ubuntu-fips
    3. sudo pro enable fips --assume-yes
    4. sudo reboot
zAre you sure? (y/N) zThis will install the FIPS packages. The Livepatch service will be unavailable.
Warning: This action can take some time and cannot be undone.
z~This will install the FIPS packages including security updates.
Warning: This action can take some time and cannot be undone.
a  Warning: Enabling {title} in a container.
         This will install the FIPS packages but not the kernel.
         This container must run on a host with {title} enabled to be
         compliant.
Warning: This action can take some time and cannot be undone.
zTThis will disable the FIPS entitlement but the FIPS packages will remain installed.
z1Enter your token (from {}) to attach this system:zEEnter your new token to renew Ubuntu Pro subscription on this system:zOpen a browser to: {}zKA change has been detected in your contract.
Please run `sudo pro refresh`.zapi-args-wrong-formatz''{arg}' is not formatted as 'key=value'zapi-invalid-endpointz$'{endpoint}' is not a valid endpointzapi-unknown-argumentz!Ignoring unknown argument '{arg}'zapi-missing-argumentz0Missing argument '{arg}' for endpoint {endpoint}zapi-no-argument-for-endpointz{endpoint} accepts no argumentszinvalid-file-formatz&{file_name} is not valid {file_format}z Failed to parse kernel: {kernel}znew-version-availablezA new version of the client is available: {version}. Please upgrade to the latest version to get the new features and bug fixes.zinvalid-pro-imagezError on Pro Image:
{msg}z enable-access-only-not-supportedz9{title} does not support being enabled with --access-onlyz$Can't load the distro-info database.z1Can't find series {} in the distro-info database.z$Unable to get {} dates for series {}z{count} packages installed:zC{offset}{count} package{plural} from Ubuntu {repository} repositoryz*{offset}{count} package from a third partyz+{offset}{count} packages from third partiesz@{offset}{count} package{plural} no longer available for downloadzoTo get more information about the packages, run
    pro security-status --help
for a list of available options.zY Make sure to run
    sudo apt-get update
to get the latest package information from apt.z9The system apt information was updated {days} day(s) ago.z%The system apt cache may be outdated.z6Main/Restricted packages receive updates until {date}.z_This machine is receiving security patching for Ubuntu Main/Restricted
repository until {date}.zEThis machine is{not_attached} attached to an Ubuntu Pro subscription.zPackages from third parties are not provided by the official Ubuntu
archive, for example packages from Personal Package Archives in Launchpad.zPackages that are not available for download may be left over from a
previous release of Ubuntu, may have been installed directly from a
.deb file, or are from a source which has been disabled.zmThis machine is NOT receiving security patches because the LTS period has ended
and esm-infra is not enabled.zeUbuntu Pro with '{service}' enabled provides security updates for
{repository} packages until {year}.z8 There {verb} {updates} pending security update{plural}.zk{repository} packages are receiving security updates from
Ubuntu Pro with '{service}' enabled until {year}.z5 You have received {updates} security
update{plural}.z+Enable {service} with: pro enable {service}zZTry Ubuntu Pro with a free personal subscription on up to 5 machines.
Learn more at {url}
zPFor example, run:
    apt-cache show {package}
to learn more about that package.z2You have no packages installed from a third party.z<You have no packages installed that are no longer available.z1Ubuntu Pro is not available for non-LTS releases.z&Run 'pro help {service}' to learn morez6Installed packages with an available {service} update:z4Installed packages with an {service} update applied:z'{prefix} packages covered by {service}:zentitlement-not-foundz)could not find entitlement named "{name}"zoTry Ubuntu Pro beta with a free personal subscription on up to 5 machines.
Learn more at https://ubuntu.com/prozInvalid state file: {}zentitlements-not-enabledzfailed to enable some serviceszauto-attach-disabledz*features.disable_auto_attach set in configzPCurrently attempting to automatically attach this machine to Ubuntu Pro servicesz5Failed to automatically attach to Ubuntu Pro servicesz {num_attempts} time(s).
The failure was due to: {reason}.
The next attempt is scheduled for {next_run_datestring}.
You can try manually with `sudo pro auto-attach`.z {num_attempts} times.
The most recent failure was due to: {reason}.
Try re-launching the instance or report this issue by running `ubuntu-bug ubuntu-advantage-tools`
You can try manually with `sudo pro auto-attach`.zDCanonical servers did not recognize this machine as Ubuntu Pro: "{}"z<Canonical servers did not recognize this image as Ubuntu Proz"the pro lock was held by pid {pid}z%an error from Canonical servers: "{}"za connectivity errorza {code} while reaching {url}zan error while reaching {url}zan unknown errorzincorrect-typezAExpected value with type {expected_type} but got type: {got_type}zincorrect-list-element-typez<Got value with incorrect type at index {index}: {nested_msg}zincorrect-field-typez=Got value with incorrect type for field "{key}": {nested_msg}zincorrect-enum-valuezGValue provided was not found in {enum_class}'s allowed: value: {values}z!livepatch-kernel-upgrade-requiredzThe running kernel has reached the end of its active livepatch window.
Please upgrade the kernel with apt and reboot for continued livepatch support.zlivepatch-kernel-eola  The current kernel ({version}, {arch}) has reached the end of its livepatch support.
Supported kernels are listed here: https://ubuntu.com/security/livepatch/docs/kernels
Either switch to a supported kernel or `pro disable livepatch` to dismiss this warning.zlivepatch-kernel-not-supportedzThe current kernel ({version}, {arch}) is not supported by livepatch.
Supported kernels are listed here: https://ubuntu.com/security/livepatch/docs/kernels
Either switch to a supported kernel or `pro disable livepatch` to dismiss this warning.zCurrent kernel is not supportedz_Supported livepatch kernels are listed here: https://ubuntu.com/security/livepatch/docs/kernelsz error-parsing-version-os-releasezKCould not parse /etc/os-release VERSION: {orig_ver} (modified to {mod_ver})zmissing-series-on-os-releasezCould not extract series information from /etc/os-release.
The VERSION filed does not have version information: {version}
and the VERSION_CODENAME information is not presentzinvalid-lock-filezThere is a corrupted lock file in the system. To continue, please remove it
from the system by running:

$ sudo rm {lock_file_path}zmissing-yaml-modulezCouldn't import the YAML module.
Make sure the 'python3-yaml' package is installed correctly
and /usr/lib/python3/dist-packages is in yout PYTHONPATH.zbroken-yaml-modulez@Error while trying to parse a yaml file using 'yaml' from {path}zfix-cannot-install-packagez2Cannot install package {package} version {version}zerror-parsing-apt-source-filesz/Error parsing APT source files:
{exception_str}zerror-running-cmdz%Error running cmd: {cmd}
{error_our}
z(unattended-upgrades-systemd-job-disabledz$apt-daily.timer jobs are not runningz(unattended-upgrades-cfg-list-value-emptyz{cfg_name} is emptyz(unattended-upgrades-cfg-value-turned-offz{cfg_name} is turned offz-Migrating /etc/ubuntu-advantage/uaclient.confzWarning: Failed to load /etc/ubuntu-advantage/uaclient.conf.preinst-backup
         No automatic migration will occur.
         You may need to use "pro config set" to re-set your settings.zWarning: Failed to migrate user_config from /etc/ubuntu-advantage/uaclient.conf
         Please run the following to keep your custom settings:zWarning: Failed to migrate /etc/ubuntu-advantage/uaclient.conf
         Please add following to uaclient.conf to keep your config:zlivepatch-client-failurez5canonical-livepatch status didn't finish successfullyz4No Ubuntu Pro services are available to this system.z=For a list of all Ubuntu Pro services, run 'pro status --all'z * Service has variantszJFor a list of all Ubuntu Pro services and variants, run 'pro status --all'z service-disabled-missing-packagezTThe {service} service is not enabled because the {package} package is
not installed.zinvalid-option-combinationz4Error: Cannot use {option1} together with {option2}.zpro-help-service-infoz=Use pro help <service> to get more details about each servicezWARNING: this output is intended to be human readable, and subject to change.
In scripts, prefer using machine readable data from the `pro api` command,
or use `pro {command} --format json`.
zcloud-metadata-errorzOAn error occurred while talking the the cloud metadata service: {code} - {body}zexternal-api-errorz(Error connecting to {url}: {code} {body}zjson-parser-errorz%{source} returned invalid json: {out}zsnap-not-installed-errorz-snap {snap} is not installed or doesn't existzunexpected-snapd-api-errorz"Unexpected SNAPD API error
{error}zsnapd-connection-refusedzCould not reach the SNAPD APIzsnap-revision-not-supportedz_The installed version of {snap} is not supported.
Upgrading it to the latest available version.zanbox-run-init-cmda  To finish setting up the Anbox Cloud Appliance, run:

$ sudo anbox-cloud-appliance init

You can accept the default answers if you do not have any specific
configuration changes.
For more information, see https://anbox-cloud.io/docs/tut/installing-appliance
z!anbox-fail-to-enable-on-containerzVIt is only possible to enable Anbox Cloud on a container using
the --access-only flag.zInstalling {}zUninstalling {}zFailure when uninstalling {}zinstalling-required-snapszInstalling required snapsz installing-required-snap-packagez Installing required snap: {snap}zpycurl-requiredzdTo use an HTTPS proxy for HTTPS connections, please install pycurl with `apt install python3-pycurl`zpycurl-errorzPycURL Error: {e}zpycurl-ca-certificates-errorz#Problem reading SSL CA certificateszproxy-auth-failzProxy authentication failedzExecuting `{}`z!Backing up {original} as {backup}zlandscape-client-not-installedz lanscape-client is not installedzlandscape-not-configuredzxLandscape is installed but not configured.
Run `sudo landscape-config` to set it up, or run `sudo pro disable landscape`zlandscape-not-registeredzLandscape is installed and configured but not registered.
Run `sudo landscape-config` to register, or run `sudo pro disable landscape`zlandscape-service-not-activezLandscape is installed and configured and registered but not running.
Run `sudo landscape-config` to start it, or run `sudo pro disable landscape`zlandscape-config-failedzlandscape-config command failedz api-error-args-and-data-togetherz6Cannot provide both --args and --data at the same timezapi-json-data-format-errorz-Error parsing API json data parameter:
{data}zinvalid-security-issuezError: issue "{issue_id}" is not recognized.

CVEs should follow the pattern CVE-yyyy-nnn.

USNs should follow the pattern USN-nnnn.zsecurity-fix-not-found-issuezError: {issue_id} not found.N(Y  typingr   r   Zuaclient.defaultsr   r   r   r   r   r   r   r"   ZOKGREEN_CHECKr    ZFAIL_Xr   Z	BLUE_INFOZERROR_INVALID_CONFIG_VALUEZ&INVALID_PATH_FOR_MACHINE_TOKEN_OVERLAYZERROR_JSON_DECODING_IN_FILEZSECURITY_FIX_ATTACH_PROMPTZSECURITY_FIX_RELEASE_STREAMZSECURITY_UPDATE_NOT_INSTALLEDZ*SECURITY_UPDATE_NOT_INSTALLED_SUBSCRIPTIONZ%SECURITY_UPDATE_NOT_INSTALLED_EXPIREDZSECURITY_SERVICE_DISABLEDZSECURITY_UPDATE_INSTALLEDZSECURITY_USE_PRO_TMPLZSECURITY_ISSUE_RESOLVEDZSECURITY_ISSUE_NOT_RESOLVEDZSECURITY_ISSUE_UNAFFECTEDZSECURITY_PKG_STILL_AFFECTEDZSECURITY_AFFECTED_PKGSZ	USN_FIXEDZ	CVE_FIXEDZCVE_FIXED_BY_LIVEPATCHZSECURITY_URLr   r!   Z'SECURITY_DRY_RUN_UA_SERVICE_NOT_ENABLEDZ SECURITY_DRY_RUN_UA_NOT_ATTACHEDZ(SECURITY_DRY_RUN_UA_EXPIRED_SUBSCRIPTIONZSECURITY_DRY_RUN_WARNINGZSECURITY_UA_SERVICE_NOT_ENABLEDZ SECURITY_UA_SERVICE_NOT_ENTITLEDZSECURITY_UA_SERVICE_REQUIREDZ$SECURITY_UA_SERVICE_WITH_EXPIRED_SUBZ%SECURITY_UA_SERVICE_NOT_ENABLED_SHORTZSECURITY_UA_APT_FAILUREZSECURITY_CVE_STATUS_NEEDEDZSECURITY_CVE_STATUS_TRIAGEZSECURITY_CVE_STATUS_PENDINGZSECURITY_CVE_STATUS_IGNOREDZSECURITY_CVE_STATUS_DNEZ SECURITY_CVE_STATUS_NOT_AFFECTEDZSECURITY_CVE_STATUS_UNKNOWNZSECURITY_FIXING_REQUESTED_USNZSECURITY_FIXING_RELATED_USNSZSECURITY_RELATED_USNSZSECURITY_USN_SUMMARYZSECURITY_RELATED_USN_ERRORZAPT_UPDATING_LISTSZDISABLE_FAILED_TMPLZACCESS_ENABLED_TMPLZENABLED_TMPLZDISABLED_TMPLZUNABLE_TO_DETERMINE_CLOUD_TYPEZ"UNSUPPORTED_AUTO_ATTACH_CLOUD_TYPEZUNSUPPORTED_AUTO_ATTACHZCLI_MAGIC_ATTACH_INITZCLI_MAGIC_ATTACH_FAILEDZCLI_MAGIC_ATTACH_SIGN_INZCLI_MAGIC_ATTACH_PROCESSINGZNO_ACTIVE_OPERATIONSZREBOOT_SCRIPT_FAILEDZLIVEPATCH_LTS_REBOOT_REQUIREDZFIPS_REBOOT_REQUIRED_MSGZSNAPD_DOES_NOT_HAVE_WAIT_CMDZFIPS_INSTALL_OUT_OF_DATEZFIPS_DISABLE_REBOOT_REQUIREDZFIPS_PACKAGE_NOT_AVAILABLEZFIPS_RUN_APT_UPGRADEZATTACH_SUCCESS_TMPLZATTACH_SUCCESS_NO_CONTRACT_NAMEZENABLE_BY_DEFAULT_TMPLZENABLE_REBOOT_REQUIRED_TMPLZENABLE_BY_DEFAULT_MANUAL_TMPLZDETACH_SUCCESSZDETACH_AUTOMATION_FAILUREZREFRESH_CONTRACT_ENABLEZREFRESH_CONTRACT_SUCCESSZREFRESH_CONTRACT_FAILUREZREFRESH_CONFIG_SUCCESSZREFRESH_CONFIG_FAILUREZREFRESH_MESSAGES_SUCCESSZREFRESH_MESSAGES_FAILUREZUPDATE_CHECK_CONTRACT_FAILUREZUPDATE_MOTD_NO_REQUIRED_CMDZINCOMPATIBLE_SERVICEZREQUIRED_SERVICEZDEPENDENT_SERVICEZDISABLING_DEPENDENT_SERVICEZSECURITY_APT_NON_ROOTZCONTRACT_EXPIRES_SOON_MOTDZ"CONTRACT_EXPIRED_GRACE_PERIOD_MOTDZCONTRACT_EXPIRED_MOTD_PKGSZCONTRACT_EXPIRED_MOTD_NO_PKGSZCONTRACT_EXPIRES_SOON_APT_NEWSZ&CONTRACT_EXPIRED_GRACE_PERIOD_APT_NEWSZCONTRACT_EXPIRED_APT_NEWSZAPT_PROXY_CONFIG_HEADERZSETTING_SERVICE_PROXYZERROR_USING_PROXYZ!PROXY_DETECTED_BUT_NOT_CONFIGUREDZFIPS_BLOCK_ON_CLOUDZ
UNATTACHEDZ VALID_SERVICE_FAILURE_UNATTACHEDZINVALID_SERVICE_OP_FAILUREr   Z!MIXED_SERVICES_FAILURE_UNATTACHEDZ"FAILED_DISABLING_DEPENDENT_SERVICEZDEPENDENT_SERVICE_NOT_FOUNDZDEPENDENT_SERVICE_STOPS_DISABLEZERROR_ENABLING_REQUIRED_SERVICEZREQUIRED_SERVICE_STOPS_ENABLEZ!INCOMPATIBLE_SERVICE_STOPS_ENABLEZSERVICE_NOT_CONFIGUREDZSERVICE_IS_ACTIVEZNO_APT_URL_FOR_SERVICEZALREADY_DISABLEDZALREADY_ENABLEDZENABLED_FAILEDZ
UNENTITLEDZSERVICE_NOT_ENTITLEDZINAPPLICABLE_KERNEL_VERZINAPPLICABLE_KERNELZINAPPLICABLE_SERIESZINAPPLICABLE_ARCHZINAPPLICABLE_VENDOR_NAMEZ"NO_ENTITLEMENT_AFFORDANCES_CHECKEDZNOT_SETTING_PROXY_INVALID_URLZNOT_SETTING_PROXY_NOT_WORKINGZATTACH_INVALID_TOKENZ$MAGIC_ATTACH_TOKEN_ALREADY_ACTIVATEDZMAGIC_ATTACH_EXPIRED_TOKENZMAGIC_ATTACH_TOKEN_ERRORZMAGIC_ATTACH_INVALID_EMAILZMAGIC_ATTACH_UNAVAILABLEZMAGIC_ATTACH_INVALID_PARAMZREQUIRED_SERVICE_NOT_FOUNDZ-UNEXPECTED_CONTRACT_TOKEN_ON_ATTACHED_MACHINEZAPT_UPDATE_INVALID_REPOZAPT_INSTALL_FAILEDZAPT_UPDATE_INVALID_URL_CONFIGZAPT_PROCESS_CONFLICTr
   ZAPT_UPDATE_PROCESS_CONFLICTZAPT_UPDATE_FAILEDZAPT_INSTALL_PROCESS_CONFLICTZAPT_INSTALL_INVALID_REPOZCANNOT_INSTALL_SNAPDZ&SSL_VERIFICATION_ERROR_CA_CERTIFICATESZ%SSL_VERIFICATION_ERROR_OPENSSL_CONFIGZMISSING_APT_URL_DIRECTIVEZALREADY_ATTACHEDZCONNECTIVITY_ERRORZNONROOT_USERZERROR_INSTALLING_LIVEPATCHZAPT_POLICY_FAILEDZATTACH_FORBIDDEN_EXPIREDZATTACH_FORBIDDEN_NOT_YETZATTACH_FORBIDDEN_NEVERZATTACH_FORBIDDENZATTACH_EXPIRED_TOKENZATTACH_TOKEN_ARG_XOR_CONFIGZATTACH_REQUIRES_TOKENZATTACH_FAILUREZATTACH_FAILURE_DEFAULT_SERVICESZ$INVALID_CONTRACT_DELTAS_SERVICE_TYPEZ	LOCK_HELDZLOCK_HELD_ERRORZUNEXPECTED_ERRORZATTACH_CONFIG_READ_ERRORZJSON_FORMAT_REQUIRE_ASSUME_YESZLIVEPATCH_NOT_ENABLEDZ"SERVICE_ERROR_INSTALL_ON_CONTAINERZ!LIVEPATCH_ERROR_WHEN_FIPS_ENABLEDZFIPS_REBOOT_REQUIREDZFIPS_SYSTEM_REBOOT_REQUIREDZ$FIPS_ERROR_WHEN_FIPS_UPDATES_ENABLEDZFIPS_PROC_FILE_ERRORZ)FIPS_ERROR_WHEN_FIPS_UPDATES_ONCE_ENABLEDZFIPS_UPDATES_INVALIDATES_FIPSZFIPS_INVALIDATES_FIPS_UPDATESZLIVEPATCH_INVALIDATES_FIPSZREALTIME_FIPS_INCOMPATIBLEZ"REALTIME_FIPS_UPDATES_INCOMPATIBLEZREALTIME_LIVEPATCH_INCOMPATIBLEZREALTIME_VARIANT_INCOMPATIBLEZREALTIME_BETA_FLAG_REQUIREDZREALTIME_PROMPTZREALTIME_PRE_DISABLE_PROMPTZ#REALTIME_ERROR_INSTALL_ON_CONTAINERZ"GCP_SERVICE_ACCT_NOT_ENABLED_ERRORZLOG_CONNECTIVITY_ERROR_TMPLZ$LOG_CONNECTIVITY_ERROR_WITH_URL_TMPLZSETTING_SERVICE_PROXY_SCOPEZWARNING_APT_PROXY_SETUPZWARNING_APT_PROXY_OVERWRITEZWARNING_DEPRECATED_APT_HTTPZWARNING_DEPRECATED_APT_HTTPSZERROR_PROXY_CONFIGURATIONZ!AVAILABILITY_FROM_UNKNOWN_SERVICEZNOTICE_FIPS_MANUAL_DISABLE_URLZ&NOTICE_WRONG_FIPS_METAPACKAGE_ON_CLOUDZPROMPT_YES_NOZPROMPT_FIPS_PRE_ENABLEZPROMPT_FIPS_UPDATES_PRE_ENABLEZ PROMPT_FIPS_CONTAINER_PRE_ENABLEZPROMPT_FIPS_PRE_DISABLEZPROMPT_ENTER_TOKENZPROMPT_EXPIRED_ENTER_TOKENZPROMPT_UA_SUBSCRIPTION_URLZNOTICE_REFRESH_CONTRACT_WARNINGZAPI_BAD_ARGS_FORMATZAPI_INVALID_ENDPOINTZAPI_UNKNOWN_ARGZAPI_MISSING_ARGZAPI_NO_ARG_FOR_ENDPOINTZINVALID_FILE_FORMATZKERNEL_PARSE_ERRORZWARN_NEW_VERSION_AVAILABLEZINVALID_PRO_IMAGEZ ENABLE_ACCESS_ONLY_NOT_SUPPORTEDZMISSING_DISTRO_INFO_FILEZ"MISSING_SERIES_IN_DISTRO_INFO_FILEZNO_EOL_DATA_FOR_SERIESZSS_SUMMARY_TOTALZSS_SUMMARY_ARCHIVEZSS_SUMMARY_THIRD_PARTY_SNZSS_SUMMARY_THIRD_PARTY_PLZSS_SUMMARY_UNAVAILABLEZSS_HELP_CALLZSS_UPDATE_CALLZSS_UPDATE_DAYSZSS_UPDATE_UNKNOWNZSS_INTERIM_SUPPORTZSS_LTS_SUPPORTZSS_IS_ATTACHEDZSS_THIRD_PARTYZSS_UNAVAILABLEZSS_NO_SECURITY_COVERAGEZSS_SERVICE_ADVERTISEZSS_SERVICE_ADVERTISE_COUNTSZSS_SERVICE_ENABLEDZSS_SERVICE_ENABLED_COUNTSZSS_SERVICE_COMMANDZSS_LEARN_MOREZSS_SHOW_HINTZSS_NO_THIRD_PARTYZSS_NO_UNAVAILABLEZSS_NO_INTERIM_PRO_SUPPORTZSS_SERVICE_HELPZSS_UPDATES_AVAILABLEZSS_UPDATES_INSTALLEDZSS_OTHER_PACKAGESZENTITLEMENT_NOT_FOUNDZTRY_UBUNTU_PRO_BETAZINVALID_STATE_FILEZENTITLEMENTS_NOT_ENABLED_ERRORZAUTO_ATTACH_DISABLED_ERRORZAUTO_ATTACH_RUNNINGZAUTO_ATTACH_RETRY_NOTICE_PREFIXZAUTO_ATTACH_RETRY_NOTICEZ&AUTO_ATTACH_RETRY_TOTAL_FAILURE_NOTICEZ$RETRY_ERROR_DETAIL_INVALID_PRO_IMAGEZ(RETRY_ERROR_DETAIL_NON_AUTO_ATTACH_IMAGEZRETRY_ERROR_DETAIL_LOCK_HELDZ%RETRY_ERROR_DETAIL_CONTRACT_API_ERRORZ%RETRY_ERROR_DETAIL_CONNECTIVITY_ERRORZ!RETRY_ERROR_DETAIL_URL_ERROR_CODEZ RETRY_ERROR_DETAIL_URL_ERROR_URLZRETRY_ERROR_DETAIL_UNKNOWNZINCORRECT_TYPE_ERROR_MESSAGEZ)INCORRECT_LIST_ELEMENT_TYPE_ERROR_MESSAGEZ"INCORRECT_FIELD_TYPE_ERROR_MESSAGEZ"INCORRECT_ENUM_VALUE_ERROR_MESSAGEZ!LIVEPATCH_KERNEL_UPGRADE_REQUIREDZLIVEPATCH_KERNEL_EOLZLIVEPATCH_KERNEL_NOT_SUPPORTEDZ*LIVEPATCH_KERNEL_NOT_SUPPORTED_DESCRIPTIONZ)LIVEPATCH_KERNEL_NOT_SUPPORTED_UNATTACHEDZ ERROR_PARSING_VERSION_OS_RELEASEZMISSING_SERIES_ON_OS_RELEASEZINVALID_LOCK_FILEZMISSING_YAML_MODULEZBROKEN_YAML_MODULEZFIX_CANNOT_INSTALL_PACKAGEZERROR_PARSING_APT_SOURCE_FILESZERROR_RUNNING_CMDZ(UNATTENDED_UPGRADES_SYSTEMD_JOB_DISABLEDZ(UNATTENDED_UPGRADES_CFG_LIST_VALUE_EMPTYZ(UNATTENDED_UPGRADES_CFG_VALUE_TURNED_OFFZUSER_CONFIG_MIGRATION_MIGRATINGZ0USER_CONFIG_MIGRATION_WARNING_UACLIENT_CONF_LOADZ3USER_CONFIG_MIGRATION_WARNING_NEW_USER_CONFIG_WRITEZ5USER_CONFIG_MIGRATION_WARNING_NEW_UACLIENT_CONF_WRITEZ+LIVEPATCH_APPLICATION_STATUS_CLIENT_FAILUREZSTATUS_NO_SERVICES_AVAILABLEZSTATUS_ALL_HINTZSTATUS_SERVICE_HAS_VARIANTSZSTATUS_ALL_HINT_WITH_VARIANTSZ SERVICE_DISABLED_MISSING_PACKAGEZINVALID_OPTION_COMBINATIONZPRO_HELP_SERVICE_INFOZWARNING_HUMAN_READABLE_OUTPUTZCLOUD_METADATA_ERRORZEXTERNAL_API_ERRORZJSON_PARSER_ERRORZSNAP_NOT_INSTALLED_ERRORZUNEXPECTED_SNAPD_API_ERRORZSNAPD_CONNECTION_REFUSEDZSNAP_REVISION_NOT_SUPPORTEDZANBOX_RUN_INIT_CMDZ!ANBOX_FAIL_TO_ENABLE_ON_CONTAINERZINSTALLING_PACKAGESZUNINSTALLING_PACKAGESZUNINSTALLING_PACKAGES_FAILEDZINSTALLING_REQUIRED_SNAPSZ INSTALLING_REQUIRED_SNAP_PACKAGEZPYCURL_REQUIREDZPYCURL_ERRORZPYCURL_CA_CERTIFICATES_ERRORZPROXY_AUTH_FAILZEXECUTING_COMMANDZBACKING_UP_FILEZLANDSCAPE_CLIENT_NOT_INSTALLEDZLANDSCAPE_NOT_CONFIGUREDZLANDSCAPE_NOT_REGISTEREDZLANDSCAPE_SERVICE_NOT_ACTIVEZLANDSCAPE_CONFIG_FAILEDZ API_ERROR_ARGS_AND_DATA_TOGETHERZAPI_JSON_DATA_FORMAT_ERRORZINVALID_SECURITY_ISSUEZSECURITY_FIX_NOT_FOUND_ISSUEr   r   r   r   <module>   s  
    			     	      
 
    
	     	 

      


	          