Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Configure the Ubuntu Pro Client by editing the contract_url setting in /etc/ubuntu-advantage/uaclient.conf to point to the server:

    Code Block
    contract_url: http://vss-ubuntu-pro.eis.utoronto.ca:8484

  2. Check everything works fine with the following command:

    Code Block
    pro refresh

    output:

    Code Block
    Successfully processed your pro configuration.
    This machine is not attached to an Ubuntu Pro subscription.
    See https://ubuntu.com/pro
  3. Attach your token:

    Code Block
    pro attach [TOKEN]

    output:

    Code Block
    Enabling default service esm-apps
    Updating Ubuntu Pro: ESM Apps package lists
    Ubuntu Pro: ESM Apps enabled
    Enabling default service esm-infra
    Updating Ubuntu Pro: ESM Infra package lists
    Ubuntu Pro: ESM Infra enabled
    Enabling default service livepatch
    Unable to enable Livepatch: Failed running command '/snap/bin/canonical-livepatch enable <REDACTED>' [exit(1)]. Message: Could not retrieve client information.: failed to validate token: Get https://contracts.canonical.com/v1/resources/livepatch?token=mAgJOEWNBS19ydkRLQm50bjdCQjBydUFKVUhyazM0OTY3Y3ZoUjRLUlZVQjVDUTA4OjQ1M2MxMmM1YTUxMTRkMjE4NDFiOGEzMTc4N2MwMjgxAAI4aXMtY29udHJhY3QgY0FLX3J2REtCbnRuN0JCMHJ1QUpVSHJrMzQ5NjdjdmhSNEtSVlVCNUNRMDgAAhVpcy1yZXNvdXJjZSBsaXZlcGF0Y2gAAAYghERqv1OjwMSeB99ztJit6hphx7IBhPEfQ_qtteqj5nU: invalid token
    
    This machine is now attached to 'Ubuntu Pro'
    
    SERVICE          ENTITLED  STATUS       DESCRIPTION
    anbox-cloud      yes       disabled     Scalable Android in the cloud
    esm-apps         yes       enabled      Expanded Security Maintenance for Applications
    esm-infra        yes       enabled      Expanded Security Maintenance for Infrastructure
    fips             yes       disabled     NIST-certified FIPS crypto packages
    fips-updates     yes       disabled     FIPS compliant crypto packages with stable security updates
    livepatch        yes       disabled     Canonical Livepatch service
    ros              yes       disabled     Security Updates for the Robot Operating System
    usg              yes       disabled     Security compliance and audit tools
    
    NOTICES
    Operation in progress: pro attach
    
    For a list of all Ubuntu Pro services, run 'pro status --all'
    Enable services with: pro enable <service>
    
                    Account: University of Toronto - EIS Private Cloud
               Subscription: Ubuntu Pro
                Valid until: Sat Jun 22 19:59:59 2024 EDT

  4. Edit the following path: /etc/apt/auth.conf.d/90ubuntu-advantageand add “http://

    Code Block
    machinesed http://vss-ubuntu-pro.eis.utoronto.ca/esm-apps/ubuntu/ login bearer password ... # ubuntu-pro-client
    -i 's/machine \([^ ]*\)/machine http:\//vss-ubuntu-pro.eis.utoronto.ca/esm-infra/ubuntu/ login bearer password ... # ubuntu-pro-client\/\1/' /etc/apt/auth.conf.d/90ubuntu-advantage
  5. Update the Ubuntu repositories and ensure there are no errors related to the vss-ubuntu-pro repositories:

    Code Block
    apt-get update

    output:

    Code Block
    Hit:1 http://vss-ubuntu-pro.eis.utoronto.ca/esm-apps/ubuntu focal-apps-security InRelease
    Hit:2 http://vss-ubuntu-pro.eis.utoronto.ca/esm-apps/ubuntu focal-apps-updates InRelease
    Hit:3 http://vss-ubuntu-pro.eis.utoronto.ca/esm-infra/ubuntu focal-infra-security InRelease
    Hit:4 http://vss-ubuntu-pro.eis.utoronto.ca/esm-infra/ubuntu focal-infra-updates InRelease
    Hit:5 http://ca.archive.ubuntu.com/ubuntu focal InRelease
    Hit:6 http://ca.archive.ubuntu.com/ubuntu focal-updates InRelease
    Hit:7 http://ca.archive.ubuntu.com/ubuntu focal-backports InRelease
    Hit:8 http://ca.archive.ubuntu.com/ubuntu focal-security InRelease
    Reading package lists... Done
  6. To re-enable Landscape with the same configuration, run:

    Code Block
    sudo pro enable landscape --assume-yes

    output:

    Code Block
    One moment, checking your subscription first
    Landscape is not available for Ubuntu 22.04 LTS (Jammy Jellyfish).

...