Your IP : 216.73.216.14


Current Path : /usr/lib/python3/dist-packages/uaclient/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/uaclient/__pycache__/messages.cpython-38.pyc

U

8�-d��@s�	ddlmZmZddlmZmZmZGdd�d�ZGdd�de�ZGdd�d�Z	e	j
d	e	jZe	j
d
e	jZe	jde	jZdZd
ZdZdZdZdZdZdZdZdZdZdZedZedZedZdZ dZ!dZ"edZ#dZ$d j%e	j&e	jd!�Z'd"j%e	j&e	jd!�Z(d#j%e	j&e	jd!�Z)d$j%e	j&e	jd!�Z*d%Z+d&Z,d'Z-d(Z.d)Z/d*Z0d+ed,Z1d-eZ2d.eZ3d/Z4d0Z5d1j%ee	j&e	jd2�Z6d3Z7d4Z8d5Z9d6Z:d7Z;d8Z<d9Z=d:Z>d;Z?d<Z@d=ZAd>ZBd?ZCd@ZDdAZEdBZFdCZGdDZHdEZIdFZJdGZKdHZLdIZMdJZNdKZOdLZPdMZQdNZRdOZSdPZTdQZUdRZVdSZWdTZXdUZYdVZZdWZ[dXZ\dYZ]dZZ^d[Z_d\j%ed]�Z`ed^d_ed,�Zaed`dae�Zbedbdce�Zceddde�Zdedfedjedgecje�Zfedhdi�Zgedjdk�Zhedldm�Ziedndo�Zjedpdq�Zkedrds�Zledtdu�Zmedvdw�Znedxdy�Zoedzd{�Zped|d}�Zqed~d�Zred�d�ed,�Zsed�d��Zted�d��Zued�d��Zved�d��Zwed�d��Zxed�d��Zyed�d��Zzed�d��Z{ed�d�e�Z|ed�d��Z}ed�d��Z~ed�d��Zed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d�e�j��Z�ed�d��Z�ed�d�e�j��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d�d��Z�ed�dƒZ�ed�dăZ�ed�dƃZ�ed�dȃZ�ed�dʃZ�ed�d̃Z�ed�d΃Z�ed�d�j%edэ�Z�ed�d�e�Z�ed�dՃZ�ed�d�ed,�Z�ed�d�e�Z�ed�dۃZ�ed�d݃Z�ed�d߃Z�ed�d�e�je�Z�ed�d�Z�ed�d�Z�ed�d�Z�ed�d�Z�ed�d�Z�ed�d�Z�ed�d7�Z�ed�d�Z�ed�d�Z�ed�d�Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed�d��Z�ed��d�Z�e�d�d�Z�e�d�d�Z��dj%e	j&e	jd!�Z��dZ�e�d�d�Z�e�d	�d
�Z�e�j��dZ�e�j��dZ��d
Z��dZ��dZ��dZ��dZ��dZ��dZdZÐdZĐdZŐde�ZƐde�Zǐde�ZȐde�Zɐd�%e�ZʐdZːd�%e�Z̐dZ�e�d�d d��Z�e�d!�d"d��Z�e�d#�d$d��Z�e�d%�d&d��Z�e�d'�d(d��Z�e�d)�d*d��ZӐd+Z�e�d,�d-d��Z�e�d.�d/d��Z�e�d0�d1d��Zאd2Zؐd3Zِd4Zڐd5Zېd6Zܐd7Zݐd8Zސd9Zߐd:Z�d;Z�d<Z�d=Z�d>Z�d?Z�d@Z�dAZ�dBZ�dCZ�dDZ�dEZ�dFj%edэZ�dGZ�dHZ�dIZ�dJZ�dKZ�dLj%e	j&e	jd!�Z�e�dM�dN�Z�dOZ�dPZ�e�dQ�dR�Z�e�dS�dT�Z��dUZ��dVZ�e��dWZ�e��dXZ��dYZ��dZZ��d[Z��d\Z��d]�Z�d^�Z�d_�Z�d`�Z�da�Ze�db�dc��Ze�dd�de��Ze�df�dg��Ze�dh�di��Ze�dj�dk��Z	e�dl�dm��Z
e�dn�dod���Z�dp�Z�dq�Z
e�db�dc��Ze�dd�de��Ze�dr�ds��Ze�dt�du��Ze�dv�dw��Ze�dx�dy��Ze�dz�d{d���Ze�d|�d}��Ze�d~�d��Ze�d��d���Ze�d��d���Z�d��Z�d��Z�d��Z�d��Z�d�S(��)�Dict�Optional)�BASE_UA_URL�DOCUMENTATION_URL�PRO_ATTACH_URLc@s,eZdZeed�dd�Zdd�Zdd�ZdS)	�NamedMessage��name�msgcCs||_||_d|_dS�N)r	r
�additional_info��selfr	r
�r�3/usr/lib/python3/dist-packages/uaclient/messages.py�__init__szNamedMessage.__init__cCs$|j|jko"|j|jko"|j|jkSr)r
r	r)r�otherrrr�__eq__s

�
�zNamedMessage.__eq__cCs d�|j��|j��|j���S)NzNamedMessage({}, {}, {}))�formatr	�__repr__r
r�rrrrrs
�zNamedMessage.__repr__N)�__name__�
__module__�__qualname__�strrrrrrrrrsrc@s,eZdZeed�dd�Zdd�Zdd�ZdS)	�FormattedNamedMessagercCs||_||_dSr)r	�tmpl_msgr
rrrrszFormattedNamedMessage.__init__cKst|j|jjf|�d�S)Nr)rr	rr)rZ
msg_paramsrrrr#s�zFormattedNamedMessage.formatcCsd�|j��|j���S)NzFormattedNamedMessage({}, {}))rr	rrrrrrr(s�zFormattedNamedMessage.__repr__N)rrrrrrrrrrrrsrc@s(eZdZdZdZdZdZdZdZdZ	dS)	�TxtColorzzzzzzzN)
rrr�OKGREENZDISABLEGREY�INFOBLUEZ
WARNINGYELLOW�FAIL�BOLD�ENDCrrrrr/sru✔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]ancelzError: {issue_id} not found.z#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} is resolved.z {issue} is not resolved.z% {issue} does not affect your system.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.zUpdating package listszCould not disable {title}.z{title} access enabledz{title} enabledzKUnable 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: zInitiating attach operation...zFailed 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$zAttaching 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.zReboot to FIPS kernel requiredz�snapd 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'
zEnabling default service {name}z-A reboot is required to complete {operation}.zEService {name} is recommended by default. Run: sudo pro enable {name}zThis 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.zUnable 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)z�CAUTION: 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.

z�CAUTION: 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

z�#
# CAUTION: 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.
#
z�#
# CAUTION: 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*
# Renew your service at https://ubuntu.com/pro
#
a�/*
 * 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.
 */
zSetting {service} proxyzEError trying to use "{proxy}" as proxy to reach "{test_url}": {error}z�No proxy set in config; however, proxy is configured for: {{services}}.
See {docs_url} for more information on pro proxy configuration.
)Zdocs_urlzcloud-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-unattachedz�To use '{valid_service}' you need an Ubuntu Pro subscription
Personal and community subscriptions are available at no charge
See zinvalid-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}zdependent-service-not-foundz&Dependent service {service} not found.zdepedent-service-stops-disablezMCannot disable {service_being_disabled} when {dependent_service} is enabled.
zerror-enabling-required-servicez0Cannot enable required service: {service}{error}zrequired-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.zservice-not-configuredz{title} is not configuredzservice-is-activez{title} is activezno-apt-url-for-servicez){title} does not have an aptURL directivezservice-already-disabledz5{title} is not currently enabled
See: sudo pro statuszservice-already-enabledz0{title} is already enabled.
See: sudo pro statusz
enable-faileszCould not enable {title}.z$subscription-not-entitled-to-servicezGThis subscription is not entitled to {title}
For more information see: zservice-not-entitledz{title} is not entitledzinapplicable-kernel-versionz\{title} is not available for kernel {kernel}.
Minimum kernel version required: {min_kernel}.zinapplicable-kernelzY{title} is not available for kernel {kernel}.
Supported flavors are: {supported_kernels}.zinapplicable-seriesz-{title} is not available for Ubuntu {series}.zinapplicable-archzZ{title} is not available for platform {arch}.
Supported platforms are: {supported_arches}.z"no-entitlement-affordances-checkedz"no entitlement affordances checkedzproxy-invalid-urlz3"{proxy}" is not a valid url. Not setting as proxy.zproxy-not-workingz/"{proxy}" is not working. Not setting as proxy.zattach-invalid-tokenzInvalid token. See z$magic-attach-token-already-activatedz,The magic attach token is already activated.zmagic-attach-token-expiredz4The magic attach token has expired or never existed.zmagic-attach-token-errorz?The magic attach token is invalid, has expired or never existedzmagic-attach-invalid-emailz{email} is not a valid email.z magic-attach-service-unavailablez,Service unavailable, please try again later.zmagic-attach-invalid-paramz=This attach flow does not support {param} with value: {value}zrequired-service-not-foundz%Required service {service} not found.z,unexpeced-contract-token-on-attached-machinez<Got unexpected contract_token on an already attached machinezapt-update-invalid-repozAPT update failed.
{repo_msg}zapt-install-failedzAPT install failed.zapt-update-invalid-url-configzSAPT update failed to read APT config for the following URL{plural}:
{failed_repos}.zapt-process-conflictzAnother process is running APT.z"apt-update-failed-process-conflictzAPT update failed. zapt-update-failedzAPT Update failedz#apt-install-failed-process-conflictz {header_msg}APT install failed. zapt-install-invalid-repoz){header_msg}APT install failed.{repo_msg}z*snapd-not-properly-installed-for-livepatchzI{snap_cmd} is present but snapd is not installed; cannot enable {service}zcannot-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.zmissing-apt-url-directivezEUbuntu Pro server provided no aptURL directive for {entitlement_name}zalready-attachedzpThis machine is already attached to '{account_name}'
To use a different subscription first run: sudo pro detach.rzconnectivity-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).zerror-installing-livepatchz/Unable to install Livepatch client: {error_msg}zapt-policy-failedzFailure checking APT policy.zattach-forbidden-expiredz*Contract "{contract_id}" expired on {date}zattach-forbidden-not-yetz6Contract "{contract_id}" is not effective until {date}zattach-forbidden-neverz1Contract "{contract_id}" has never been effectivezattach-forbiddenz@Attach denied:
{{reason}}
Visit {url} to manage contract tokens.)r&zattach-experied-tokenz8Expired token or contract. To obtain a new token visit: zattach-token-xor-configzuDo not pass the TOKEN arg if you are using --attach-config.
Include the token in the attach-config file instead.
    zattach-requires-tokenzQAttach requires a token: sudo pro attach <TOKEN>
To obtain a token please visit: zattach-failurezFailed to attach machine. See zattach-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})zlock-held-errorz#Unable to perform: {lock_request}.
zunexpected-errorz�Unexpected error(s) occurred.
For more details, see the log: /var/log/ubuntu-advantage.log
To file a bug run: ubuntu-bug ubuntu-advantage-toolszattach-config-read-errorz*Error while reading {config_name}: {error}zjson-format-require-assume-yesz3json formatted response requires --assume-yes flag.zlivepatch-not-enabledz*canonical-livepatch snap is not installed.z$livepatch-error-install-on-containerz(Cannot install Livepatch on a container.z!livepatch-error-when-fips-enabledz-Cannot enable Livepatch when FIPS is enabled.zfips-reboot-requiredzfips-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.zfips-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.zfips-updates-invalidates-fipsz�FIPS cannot be enabled if FIPS Updates has ever been enabled because FIPS Updates installs security patches that aren't officially certified.zfips-invalidates-fips-updatesz{FIPS Updates cannot be enabled if FIPS is enabled. FIPS Updates installs security patches that aren't officially certified.zlivepatch-invalidates-fipsz�Livepatch 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.zrealtime-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.zrealtime-livepatch-incompatiblez>Livepatch is not currently supported for the Real-time kernel.zbeta-flag-requiredz{Use `pro enable realtime-kernel --beta` to acknowledge the real-time kernel is currently in beta and comes with no support.z�The 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) aThis 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}zSetting {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"
zError: 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
z�Warning: 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
zAre you sure? (y/N) z�This 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.
aWarning: 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:zOpen a browser to: {}zKA change has been detected in your contract.
Please run `sudo pro refresh`.zapi-args-wrong-formatz''{arg}' is not formatted as 'key=value'zapi-invalid-endpointz$'{endpoint}' is not a valid endpointzapi-unknown-argumentz!Ignoring unknown argument '{arg}'zapi-missing-argumentz0Missing argument '{arg}' for endpoint {endpoint}zapi-no-argument-for-endpointz{endpoint} accepts no argumentszinvalid-file-formatz&{file_name} is not valid {file_format}z Failed to parse kernel: {kernel}znew-version-availablez�A new version of the client is available: {version}. Please upgrade to the latest version to get the new features and bug fixes.zinvalid-pro-imagezError 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.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.z�Packages from third parties are not provided by the official Ubuntu
archive, for example packages from Personal Package Archives in Launchpad.z�Packages 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.zdUbuntu Pro with '{service}' enabled provides security updates for
{repository} packages until {year}z3 and has {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}
zRFor example, run:
    apt-cache policy {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 morezcPackage names in {bold}bold{end_bold} currently have an available update
with '{{service}}' enabledzentitlement-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/prozInvalid state file: {}zentitlements-not-enabledzfailed to enable some serviceszauto-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: "{}"za connectivity errorza {code} while reaching {url}zan error while reaching {url}za network errorzan unknown errorz error-parsing-version-os-releasezKCould not parse /etc/os-release VERSION: {orig_ver} (modified to {mod_ver})zmissing-series-on-os-releasez�Could not extract series information from /etc/os-release.
The VERSION filed does not have version information: {version}
and the VERSION_CODENAME information is not presentzincorrect-typezAExpected value with type {expected_type} but got type: {got_type}zincorrect-list-element-typez<Got value with incorrect type at index {index}: {nested_msg}zincorrect-field-typez=Got value with incorrect type for field "{key}": {nested_msg}zincorrect-enum-valuezGValue provided was not found in {enum_class}'s allowed: value: {values}zlivepatch-kernel-not-supportedz�The 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.zCurrent kernel is not supportedz_Supported livepatch kernels are listed here: https://ubuntu.com/security/livepatch/docs/kernelszinvalid-lock-filez�There is a corrupted lock file in the system. To continue, please remove it
from the system by running:

$ sudo rm {lock_file_path}zmissing-yaml-modulez�Couldn't import the YAML module.
Make sure the 'python3-yaml' package is installed correctly
and /usr/lib/python3/dist-packages is in yout PYTHONPATH.zbroken-yaml-modulez@Error while trying to parse a yaml file using 'yaml' from {path}zfix-cannot-install-packagez2Cannot install package {package} version {version}zerror-parsing-apt-source-filesz/Error parsing APT source files:
{exception_str}zerror-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.confz�Warning: 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.z�Warning: Failed to migrate user_config from /etc/ubuntu-advantage/uaclient.conf
         Please run the following to keep your custom settings:z�Warning: Failed to migrate /etc/ubuntu-advantage/uaclient.conf
         Please add following to uaclient.conf to keep your config:N(�typingrrZuaclient.defaultsrrrrrrrr"Z
OKGREEN_CHECKr ZFAIL_XrZ	BLUE_INFOZERROR_INVALID_CONFIG_VALUEZ&INVALID_PATH_FOR_MACHINE_TOKEN_OVERLAYZERROR_JSON_DECODING_IN_FILEZSECURITY_FIX_ATTACH_PROMPTZSECURITY_FIX_NOT_FOUND_ISSUEZSECURITY_FIX_RELEASE_STREAMZSECURITY_UPDATE_NOT_INSTALLEDZ*SECURITY_UPDATE_NOT_INSTALLED_SUBSCRIPTIONZ%SECURITY_UPDATE_NOT_INSTALLED_EXPIREDZSECURITY_SERVICE_DISABLEDZSECURITY_UPDATE_INSTALLEDZSECURITY_USE_PRO_TMPLZSECURITY_ISSUE_RESOLVEDZSECURITY_ISSUE_NOT_RESOLVEDZSECURITY_ISSUE_UNAFFECTEDZSECURITY_AFFECTED_PKGSZ	USN_FIXEDZ	CVE_FIXEDZCVE_FIXED_BY_LIVEPATCHZSECURITY_URLrr!Z'SECURITY_DRY_RUN_UA_SERVICE_NOT_ENABLEDZ SECURITY_DRY_RUN_UA_NOT_ATTACHEDZ(SECURITY_DRY_RUN_UA_EXPIRED_SUBSCRIPTIONZSECURITY_DRY_RUN_WARNINGZSECURITY_UA_SERVICE_NOT_ENABLEDZ SECURITY_UA_SERVICE_NOT_ENTITLEDZAPT_UPDATING_LISTSZDISABLE_FAILED_TMPLZACCESS_ENABLED_TMPLZENABLED_TMPLZUNABLE_TO_DETERMINE_CLOUD_TYPEZ"UNSUPPORTED_AUTO_ATTACH_CLOUD_TYPEZUNSUPPORTED_AUTO_ATTACHZCLI_MAGIC_ATTACH_INITZCLI_MAGIC_ATTACH_FAILEDZCLI_MAGIC_ATTACH_SIGN_INZCLI_MAGIC_ATTACH_PROCESSINGZNO_ACTIVE_OPERATIONSZREBOOT_SCRIPT_FAILEDZLIVEPATCH_LTS_REBOOT_REQUIREDZFIPS_REBOOT_REQUIRED_MSGZSNAPD_DOES_NOT_HAVE_WAIT_CMDZFIPS_INSTALL_OUT_OF_DATEZFIPS_DISABLE_REBOOT_REQUIREDZFIPS_PACKAGE_NOT_AVAILABLEZFIPS_RUN_APT_UPGRADEZATTACH_SUCCESS_TMPLZATTACH_SUCCESS_NO_CONTRACT_NAMEZENABLE_BY_DEFAULT_TMPLZENABLE_REBOOT_REQUIRED_TMPLZENABLE_BY_DEFAULT_MANUAL_TMPLZDETACH_SUCCESSZDETACH_AUTOMATION_FAILUREZREFRESH_CONTRACT_ENABLEZREFRESH_CONTRACT_SUCCESSZREFRESH_CONTRACT_FAILUREZREFRESH_CONFIG_SUCCESSZREFRESH_CONFIG_FAILUREZREFRESH_MESSAGES_SUCCESSZREFRESH_MESSAGES_FAILUREZUPDATE_CHECK_CONTRACT_FAILUREZUPDATE_MOTD_NO_REQUIRED_CMDZINCOMPATIBLE_SERVICEZREQUIRED_SERVICEZDEPENDENT_SERVICEZDISABLING_DEPENDENT_SERVICEZSECURITY_APT_NON_ROOTZCONTRACT_EXPIRES_SOON_MOTDZ"CONTRACT_EXPIRED_GRACE_PERIOD_MOTDZCONTRACT_EXPIRED_MOTD_PKGSZCONTRACT_EXPIRED_MOTD_NO_PKGSZCONTRACT_EXPIRES_SOON_APT_NEWSZ&CONTRACT_EXPIRED_GRACE_PERIOD_APT_NEWSZCONTRACT_EXPIRED_APT_NEWSZAPT_PROXY_CONFIG_HEADERZSETTING_SERVICE_PROXYZERROR_USING_PROXYZ!PROXY_DETECTED_BUT_NOT_CONFIGUREDZFIPS_BLOCK_ON_CLOUDZ
UNATTACHEDZ VALID_SERVICE_FAILURE_UNATTACHEDZINVALID_SERVICE_OP_FAILURErZ!MIXED_SERVICES_FAILURE_UNATTACHEDZ"FAILED_DISABLING_DEPENDENT_SERVICEZDEPENDENT_SERVICE_NOT_FOUNDZDEPENDENT_SERVICE_STOPS_DISABLEZERROR_ENABLING_REQUIRED_SERVICEZREQUIRED_SERVICE_STOPS_ENABLEZ!INCOMPATIBLE_SERVICE_STOPS_ENABLEZSERVICE_NOT_CONFIGUREDZSERVICE_IS_ACTIVEZNO_APT_URL_FOR_SERVICEZALREADY_DISABLEDZALREADY_ENABLEDZENABLED_FAILEDZ
UNENTITLEDZSERVICE_NOT_ENTITLEDZINAPPLICABLE_KERNEL_VERZINAPPLICABLE_KERNELZINAPPLICABLE_SERIESZINAPPLICABLE_ARCHZ"NO_ENTITLEMENT_AFFORDANCES_CHECKEDZNOT_SETTING_PROXY_INVALID_URLZNOT_SETTING_PROXY_NOT_WORKINGZATTACH_INVALID_TOKENZ$MAGIC_ATTACH_TOKEN_ALREADY_ACTIVATEDZMAGIC_ATTACH_EXPIRED_TOKENZMAGIC_ATTACH_TOKEN_ERRORZMAGIC_ATTACH_INVALID_EMAILZMAGIC_ATTACH_UNAVAILABLEZMAGIC_ATTACH_INVALID_PARAMZREQUIRED_SERVICE_NOT_FOUNDZ-UNEXPECTED_CONTRACT_TOKEN_ON_ATTACHED_MACHINEZAPT_UPDATE_INVALID_REPOZAPT_INSTALL_FAILEDZAPT_UPDATE_INVALID_URL_CONFIGZAPT_PROCESS_CONFLICTr
ZAPT_UPDATE_PROCESS_CONFLICTZAPT_UPDATE_FAILEDZAPT_INSTALL_PROCESS_CONFLICTZAPT_INSTALL_INVALID_REPOZSNAPD_NOT_PROPERLY_INSTALLEDZCANNOT_INSTALL_SNAPDZ&SSL_VERIFICATION_ERROR_CA_CERTIFICATESZ%SSL_VERIFICATION_ERROR_OPENSSL_CONFIGZMISSING_APT_URL_DIRECTIVEZALREADY_ATTACHEDZCONNECTIVITY_ERRORZNONROOT_USERZERROR_INSTALLING_LIVEPATCHZAPT_POLICY_FAILEDZATTACH_FORBIDDEN_EXPIREDZATTACH_FORBIDDEN_NOT_YETZATTACH_FORBIDDEN_NEVERZATTACH_FORBIDDENZATTACH_EXPIRED_TOKENZATTACH_TOKEN_ARG_XOR_CONFIGZATTACH_REQUIRES_TOKENZATTACH_FAILUREZATTACH_FAILURE_DEFAULT_SERVICESZ$INVALID_CONTRACT_DELTAS_SERVICE_TYPEZ	LOCK_HELDZLOCK_HELD_ERRORZUNEXPECTED_ERRORZATTACH_CONFIG_READ_ERRORZJSON_FORMAT_REQUIRE_ASSUME_YESZLIVEPATCH_NOT_ENABLEDZ$LIVEPATCH_ERROR_INSTALL_ON_CONTAINERZ!LIVEPATCH_ERROR_WHEN_FIPS_ENABLEDZFIPS_REBOOT_REQUIREDZFIPS_SYSTEM_REBOOT_REQUIREDZ$FIPS_ERROR_WHEN_FIPS_UPDATES_ENABLEDZFIPS_PROC_FILE_ERRORZ)FIPS_ERROR_WHEN_FIPS_UPDATES_ONCE_ENABLEDZFIPS_UPDATES_INVALIDATES_FIPSZFIPS_INVALIDATES_FIPS_UPDATESZLIVEPATCH_INVALIDATES_FIPSZREALTIME_FIPS_INCOMPATIBLEZ"REALTIME_FIPS_UPDATES_INCOMPATIBLEZREALTIME_LIVEPATCH_INCOMPATIBLEZREALTIME_BETA_FLAG_REQUIREDZREALTIME_PROMPTZREALTIME_PRE_DISABLE_PROMPTZ#REALTIME_ERROR_INSTALL_ON_CONTAINERZ"GCP_SERVICE_ACCT_NOT_ENABLED_ERRORZLOG_CONNECTIVITY_ERROR_TMPLZ$LOG_CONNECTIVITY_ERROR_WITH_URL_TMPLZSETTING_SERVICE_PROXY_SCOPEZWARNING_APT_PROXY_SETUPZWARNING_APT_PROXY_OVERWRITEZWARNING_DEPRECATED_APT_HTTPZWARNING_DEPRECATED_APT_HTTPSZERROR_PROXY_CONFIGURATIONZ!AVAILABILITY_FROM_UNKNOWN_SERVICEZNOTICE_FIPS_MANUAL_DISABLE_URLZ&NOTICE_WRONG_FIPS_METAPACKAGE_ON_CLOUDZ
PROMPT_YES_NOZPROMPT_FIPS_PRE_ENABLEZPROMPT_FIPS_UPDATES_PRE_ENABLEZ PROMPT_FIPS_CONTAINER_PRE_ENABLEZPROMPT_FIPS_PRE_DISABLEZPROMPT_ENTER_TOKENZPROMPT_EXPIRED_ENTER_TOKENZPROMPT_UA_SUBSCRIPTION_URLZNOTICE_REFRESH_CONTRACT_WARNINGZAPI_BAD_ARGS_FORMATZAPI_INVALID_ENDPOINTZAPI_UNKNOWN_ARGZAPI_MISSING_ARGZAPI_NO_ARG_FOR_ENDPOINTZINVALID_FILE_FORMATZKERNEL_PARSE_ERRORZWARN_NEW_VERSION_AVAILABLEZINVALID_PRO_IMAGEZ ENABLE_ACCESS_ONLY_NOT_SUPPORTEDZMISSING_DISTRO_INFO_FILEZ"MISSING_SERIES_IN_DISTRO_INFO_FILEZNO_EOL_DATA_FOR_SERIESZSS_SUMMARY_TOTALZSS_SUMMARY_ARCHIVEZSS_SUMMARY_THIRD_PARTY_SNZSS_SUMMARY_THIRD_PARTY_PLZSS_SUMMARY_UNAVAILABLEZSS_HELP_CALLZSS_INTERIM_SUPPORTZSS_LTS_SUPPORTZSS_IS_ATTACHEDZSS_THIRD_PARTYZSS_UNAVAILABLEZSS_NO_SECURITY_COVERAGEZSS_SERVICE_ADVERTISEZSS_SERVICE_ADVERTISE_COUNTSZSS_SERVICE_ENABLEDZSS_SERVICE_ENABLED_COUNTSZSS_SERVICE_COMMANDZ
SS_LEARN_MOREZSS_POLICY_HINTZSS_NO_THIRD_PARTYZSS_NO_UNAVAILABLEZSS_NO_INTERIM_PRO_SUPPORTZSS_SERVICE_HELPZSS_BOLD_PACKAGESZENTITLEMENT_NOT_FOUNDZTRY_UBUNTU_PRO_BETAZINVALID_STATE_FILEZENTITLEMENTS_NOT_ENABLED_ERRORZAUTO_ATTACH_DISABLED_ERRORZAUTO_ATTACH_RUNNINGZAUTO_ATTACH_RETRY_NOTICE_PREFIXZAUTO_ATTACH_RETRY_NOTICEZ&AUTO_ATTACH_RETRY_TOTAL_FAILURE_NOTICEZ$RETRY_ERROR_DETAIL_INVALID_PRO_IMAGEZ(RETRY_ERROR_DETAIL_NON_AUTO_ATTACH_IMAGEZRETRY_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_URL_ERROR_GENERICZRETRY_ERROR_DETAIL_UNKNOWNZ ERROR_PARSING_VERSION_OS_RELEASEZMISSING_SERIES_ON_OS_RELEASEZINCORRECT_TYPE_ERROR_MESSAGEZ)INCORRECT_LIST_ELEMENT_TYPE_ERROR_MESSAGEZ"INCORRECT_FIELD_TYPE_ERROR_MESSAGEZ"INCORRECT_ENUM_VALUE_ERROR_MESSAGEZLIVEPATCH_KERNEL_NOT_SUPPORTEDZ*LIVEPATCH_KERNEL_NOT_SUPPORTED_DESCRIPTIONZ)LIVEPATCH_KERNEL_NOT_SUPPORTED_UNATTACHEDZINVALID_LOCK_FILEZMISSING_YAML_MODULEZBROKEN_YAML_MODULEZFIX_CANNOT_INSTALL_PACKAGEZERROR_PARSING_APT_SOURCE_FILESZERROR_RUNNING_CMDZ(UNATTENDED_UPGRADES_SYSTEMD_JOB_DISABLEDZ(UNATTENDED_UPGRADES_CFG_LIST_VALUE_EMPTYZ(UNATTENDED_UPGRADES_CFG_VALUE_TURNED_OFFZUSER_CONFIG_MIGRATION_MIGRATINGZ0USER_CONFIG_MIGRATION_WARNING_UACLIENT_CONF_LOADZ3USER_CONFIG_MIGRATION_WARNING_NEW_USER_CONFIG_WRITEZ5USER_CONFIG_MIGRATION_WARNING_NEW_UACLIENT_CONF_WRITErrrr�<module>s�
��������������������������	�����	����	�������������������	�������������������
���
�����������������
������	�������������������������	���
�
���������������������������������
��
������������	���������