report availability of Ubuntu Advantage ESM services on unattached machines

Bug #1939732 reported by Chad Smith
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned
Impish
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

  * Error messages emitted to software-properties-gtk console "[Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/status.json'" due to incorrect expectation that status.json file is written when non-root runs `ua status`
  * This logic results in multiple `ua status` calls which each result in a network-egress to https://contracts.canonical.com on unattached machines which could result in delays in rendering the GTK dialogs while awaiting a response.

[Test Case]
1. Install latest version of software-properties-gtk from -proposed
cat > setup_proposed.sh <<EOF
#!/bin/bash
mirror=http://archive.ubuntu.com/ubuntu
echo deb \$mirror \$(lsb_release -sc)-proposed main | tee /etc/apt/sources.list.d/proposed.list
apt-get update -q
apt-get install -qy software-properties-gtk software-properties-common python3-software-properties
EOF

IP=`uvt-kvm ip ${DESKTOP_VM}`
scp setup_proposed.sh ubuntu@$IP:.
ssh ubuntu@$IP -- sudo bash ./setup_proposed.sh

2. run software-properties-gtk on the commandline
ssh ubuntu@$IP -- software-properties-gtk

# Validate no error messages on launch
3. Click Updates tab and validate
Basic Security Maintenance "Extend..."
Active until 04/23/2025

(Extend.. is a link that will spawn a browser to ubuntu.com/security/esm)

4. Click Cancel button

5. Attach to a UA contract and re-run Software and updates UX
ssh ubuntu@$IP -- sudo ua attach $MY_TOKEN
ssh ubuntu@$IP -- software-properties-gtk
# validate no error messages

6. Click Updates tab and validate:
Extended Security Maintenance
Active until 12/31/1999

# Note no "Extend..." text or link

[Where problems could occur]
 * invalid parsing of UA contract information or missing /var/lib/ubuntu-advantage/status.json will print messages to the console in the event of errors or warnings.
 * failures and tracebacks in this code will result in invalid representation of system defaults in the Updates tab about whether or not a machine is attached to a contract or whether the contract is expired.
 * Other than user-facing documentation about the state of the UA subscription this does not prevent the dialogs from functioning.
 * limited network environments could have a delay of UX rendering due to `ua status` calls timing out on attempts to reach contracts.canonical.com

[Original Description]

Release: bionic/focal
Version: 0.96.24.32 (bionic)

Issue:
Software & Updates GTK UI doesn't report availability of Ubuntu Advantage ESM Infra or ESM Apps services on unattached machines

Steps to repropduce:

Launch software-properties-gtk from the commandline.
See unexpected errors on the terminal

 No ua status file written:
[Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/status.json'

Navigation to the "Updates" tab
See only:
Basic Security Maintenance
04/26/2023

Expected results:
See no error messages on terminal
See a link to the right of Basic Security Maintenance on the "Updates" tab that points to ESM info
Basic Security Maintenance Extend...(links to ubuntu.com/security/esm)

Chad Smith (chad.smith)
description: updated
Changed in software-properties (Ubuntu):
status: New → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Chad, or anyone else affected,

Accepted software-properties into impish-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software-properties/0.99.13.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-impish to verification-done-impish. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-impish. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in software-properties (Ubuntu Impish):
status: New → Fix Committed
tags: added: verification-needed verification-needed-impish
Chad Smith (chad.smith)
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Chad, or anyone else affected,

Accepted software-properties into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software-properties/0.99.10.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-hirsute to verification-done-hirsute. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-hirsute. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in software-properties (Ubuntu Hirsute):
status: New → Fix Committed
tags: added: verification-needed-hirsute
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Chad, or anyone else affected,

Accepted software-properties into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software-properties/0.99.9.8 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in software-properties (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed-focal
Chad Smith (chad.smith)
description: updated
Chad Smith (chad.smith)
description: updated
Revision history for this message
Chad Smith (chad.smith) wrote :
Download full text (3.2 KiB)

# Focal desktop results: SUCCESS

1. # install proposed

$ cat > setup_proposed.sh <<EOF
#!/bin/bash
mirror=http://archive.ubuntu.com/ubuntu
echo deb \$mirror \$(lsb_release -sc)-proposed main | tee /etc/apt/sources.list.d/proposed.list
apt-get update -q
apt-get install -qy software-properties-gtk software-properties-common python3-software-properties
EOF
$ IP=`uvt-kvm ip ubuntu20.04`
$ scp setup_proposed.sh csmith@$IP:.

csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ lsb_release -sc
focal
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ apt policy software-properties-gtk
software-properties-gtk:
  Installed: 0.99.9.8
  Candidate: 0.99.9.8
  Version table:
 *** 0.99.9.8 500
        500 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-proposed/main i386 Packages
        100 /var/lib/dpkg/status
     0.98.9.5 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages
     0.98.9.2 500
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages
     0.98.9 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu focal/main i386 Packages
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ [ -f /var/lib/ubuntu-advantage-tools/status.json ] && echo "status.json PRESENT" || echo "status.json ABSENT"
status.json ABSENT
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ software-properties-gtk
# no errors
3. Updates tab in "Software & Updates" dialog
Basic Security Maintenance Extended... # Link goes to https://ubuntu.com/security/esm
Active until 04/23/2025

4. Cancel button
# no errors on software-properties-gtk console
5. Attach and validate
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ sudo ua attach <REDACTED>
[sudo] password for csmith:
Enabling default service esm-apps
Updating package lists
UA Apps: ESM enabled
Enabling default service esm-infra
Updating package lists
UA Infra: ESM enabled
Enabling default service livepatch
Canonical livepatch enabled.
This machine is now attached to 'server-team-ua-client-ci-uaa'

SERVICE ENTITLED STATUS DESCRIPTION
cis yes disabled Center for Internet Security Audit Tools
esm-apps yes enabled UA Apps: Extended Security Maintenance (ESM)
esm-infra yes enabled UA Infra: Extended Security Maintenance (ESM)
fips yes disabled NIST-certified core packages
fips-updates yes disabled NIST-certified core packages with priority security updates
livepatch yes enabled Canonical Livepatch service

NOTICES
Operation in progress: ua attach

Enable services with: ua enable <service>

                Account: UA Client Test
           Subscription: server-team-ua-client-ci-uaa
            Valid until: 9999-12-31 00:00:00+00:00
Technical support level: essential
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ software-properties-gtk
# no token expiry error messages
6. Click Updates tab and validate:
Extended Security Maintena...

Read more...

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Chad Smith (chad.smith) wrote :

# Impish desktop results: SUCCESS
# Note non-LTS doesn't have ESM-infra of ESM-Apps support/availability so no Extend... link should be present on Updates tab

1. # install proposed

$ cat > setup_proposed.sh <<EOF
#!/bin/bash
mirror=http://archive.ubuntu.com/ubuntu
echo deb \$mirror \$(lsb_release -sc)-proposed main | tee /etc/apt/sources.list.d/proposed.list
apt-get update -q
apt-get install -qy software-properties-gtk software-properties-common python3-software-properties
EOF
$ IP=`uvt-kvm ip ubuntuimpish`
$ scp setup_proposed.sh csmith@$IP:.
$ ssh csmith@$IP
csmith@csmith-Standard-PC-i440FX-PIIX-1996:~$ lsb_release -sc
impish
csmith@csmith-Standard-PC-i440FX-PIIX-1996:~$ apt policy software-properties-gtk
software-properties-gtk:
  Installed: 0.99.13.1
  Candidate: 0.99.13.1
  Version table:
 *** 0.99.13.1 500
        500 http://archive.ubuntu.com/ubuntu impish-proposed/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu impish-proposed/main i386 Packages
        100 /var/lib/dpkg/status
     0.99.13 500
        500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu impish/main i386 Packages
csmith@csmith-Standard-PC-i440FX-PIIX-1996:~$ [ -f /var/lib/ubuntu-advantage/status.json ] && echo "status.json PRESENT" || echo "status.json ABSENT"
status.json ABSENT

csmith@csmith-Standard-PC-i440FX-PIIX-1996:~$ sofware-properties-gtk
# Success NO error messages

3. Updates tab in "Software & Updates" dialog
# Success no "Extend..." link
Basic Security Maintenance
Active until 07/14/2022

4. Close button
# no errors on software-properties-gtk console

5. Attach and validate
csmith@csmith-Standard-PC-i440FX-PIIX-1996:~$ sudo ua attach <REDACTED>

This machine is now attached to 'server-team-ua-client-ci-uaa'

SERVICE ENTITLED STATUS DESCRIPTION
cis yes n/a Center for Internet Security Audit Tools
esm-infra yes n/a UA Infra: Extended Security Maintenance (ESM)
fips yes n/a NIST-certified core packages
fips-updates yes n/a NIST-certified core packages with priority security updates
livepatch yes n/a Canonical Livepatch service

NOTICES
Operation in progress: ua attach

Enable services with: ua enable <service>

                Account: UA Client Test
           Subscription: server-team-ua-client-ci-uaa
            Valid until: 9999-12-31 00:00:00+00:00
Technical support level: essential

csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ software-properties-gtk
# no token expiry error messages
6. Click Updates tab and validate:
# Success Basic Security Maintenance because no ESM available or active on non-LTS
Basic Security Maintenance
Active until 07/14/2022

tags: added: verification-done-impish
removed: verification-needed-impish
Revision history for this message
Chad Smith (chad.smith) wrote :
Download full text (6.0 KiB)

# Hirsute desktop results: SUCCESS non-LTS has neither ESM-Infra nor ESM-Apps support or availability.
# so 1. it will not expose "Extend..." links to provide ESM information in Updates tab
# and 2. When attached no ESM information will be represented in Updates tab

1. # install proposed

$ cat > setup_proposed.sh <<EOF
#!/bin/bash
mirror=http://archive.ubuntu.com/ubuntu
echo deb \$mirror \$(lsb_release -sc)-proposed main | tee /etc/apt/sources.list.d/proposed.list
apt-get update -q
apt-get install -qy software-properties-gtk software-properties-common python3-software-properties
EOF'
$ IP=`uvt-kvm ip ubuntuhirsute`
$ scp setup_proposed.sh csmith@$IP:.
$ ssh csmith@$IP
csmith@csmith-Standard-PC-i440FX-PIIX-1996:~$ lsb_release -sc
hirsute
csmith@csmith-Standard-PC-i440FX-PIIX-1996:~$ sudo bash ./setup_proposed.sh
[sudo] password for csmith:
deb http://archive.ubuntu.com/ubuntu hirsute-proposed main
Hit:1 http://us.archive.ubuntu.com/ubuntu hirsute InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu hirsute-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu hirsute-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu hirsute-security InRelease
Get:5 http://archive.ubuntu.com/ubuntu hirsute-proposed InRelease [269 kB]
Get:6 http://archive.ubuntu.com/ubuntu hirsute-proposed/main amd64 Packages [61.4 kB]
Get:7 http://archive.ubuntu.com/ubuntu hirsute-proposed/main i386 Packages [20.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu hirsute-proposed/main Translation-en [18.2 kB]
Get:9 http://archive.ubuntu.com/ubuntu hirsute-proposed/main amd64 DEP-11 Metadata [6,228 B]
Get:10 http://archive.ubuntu.com/ubuntu hirsute-proposed/main DEP-11 48x48 Icons [6,469 B]
Get:11 http://archive.ubuntu.com/ubuntu hirsute-proposed/main DEP-11 64x64 Icons [10.0 kB]
Get:12 http://archive.ubuntu.com/ubuntu hirsute-proposed/main DEP-11 64x64@2 Icons [29 B]
Get:13 http://archive.ubuntu.com/ubuntu hirsute-proposed/main amd64 c-n-f Metadata [1,712 B]
Fetched 393 kB in 2s (230 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
  python3-software-properties software-properties-common
  software-properties-gtk
3 upgraded, 0 newly installed, 0 to remove and 235 not upgraded.
Need to get 112 kB of archives.
After this operation, 15.4 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu hirsute-proposed/main amd64 software-properties-common all 0.99.10.2 [13.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu hirsute-proposed/main amd64 software-properties-gtk all 0.99.10.2 [65.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu hirsute-proposed/main amd64 python3-software-properties all 0.99.10.2 [32.1 kB]
Fetched 112 kB in 1s (101 kB/s)
(Reading database ... 168161 files and directories currently installed.)
Preparing to unpack .../software-properties-common_0.99.10.2_all.deb ...
Unpacking software-properties-common (0.99.10.2) over (0.99.10) ...
Preparing to unpack .../software-properties-gtk_0.99.10.2_all.deb ...
Unpacking software-properties-gtk (0.99.10.2) over (0.99.10) ...
Preparing to unpack .../python3-software-properties_0.99.10.2_all.deb...

Read more...

tags: added: verification-done-hirsute
removed: verification-needed-hirsute
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.99.15

---------------
software-properties (0.99.15) jammy; urgency=medium

  * utils: prefer /var/lib/ubuntu-advantage/status.json over ua status
    - Handle absent /var/lib/ubuntu-advantage/status.json for non-root
      users (LP: #1939732)
    - print unexcepted errors and if _schema_version not equal to 0.1

 -- Chad Smith <email address hidden> Fri, 29 Oct 2021 15:46:58 -0600

Changed in software-properties (Ubuntu):
status: Fix Committed → Fix Released
Chad Smith (chad.smith)
Changed in software-properties (Ubuntu Bionic):
status: New → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Chad, or anyone else affected,

Accepted software-properties into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software-properties/0.96.24.32.18 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-bionic
removed: verification-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.99.13.1

---------------
software-properties (0.99.13.1) impish; urgency=medium

  * utils: prefer /var/lib/ubuntu-advantage/status.json over ua status
    - Handle absent /var/lib/ubuntu-advantage/status.json for non-root
      users (LP: #1939732)
    - print unexcepted errors and if _schema_version not equal to 0.1

 -- Chad Smith <email address hidden> Mon, 01 Nov 2021 11:42:27 -0600

Changed in software-properties (Ubuntu Impish):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for software-properties has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.99.10.2

---------------
software-properties (0.99.10.2) hirsute; urgency=medium

  * utils: prefer /var/lib/ubuntu-advantage/status.json over ua status
    - Handle absent /var/lib/ubuntu-advantage/status.json for non-root
      users (LP: #1939732)
    - print unexcepted errors and if _schema_version not equal to 0.1

software-properties (0.99.10.1) hirsute; urgency=medium

  * Show ESM support status (LP: #1920836)

 -- Chad Smith <email address hidden> Fri, 29 Oct 2021 16:35:58 -0600

Changed in software-properties (Ubuntu Hirsute):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.99.9.8

---------------
software-properties (0.99.9.8) focal; urgency=medium

  [ Corey Bryant ]
  * cloudarchive: Enable support for the Yoga Ubuntu Cloud Archive on
    20.04 (LP: #1948806).

  [ Chad Smith ]
  * utils: prefer /var/lib/ubuntu-advantage/status.json over ua status
    - Handle absent /var/lib/ubuntu-advantage/status.json for non-root
      users (LP: #1939732)
    - print unexcepted errors and if _schema_version not equal to 0.1

software-properties (0.99.9.7) focal; urgency=medium

  * Show Ubuntu Pro banner on Livepatch page (LP: #1934439)

software-properties (0.99.9.6) focal; urgency=medium

  * Show ESM support status (LP: #1920836)

 -- Corey Bryant <email address hidden> Tue, 26 Oct 2021 08:27:56 -0400

Changed in software-properties (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Chad Smith (chad.smith) wrote :
Download full text (7.7 KiB)

# Success testing on Bionic Desktop installer
1. Validate current behavior from bionic-updates
csmith@downtown:~$ IP=`uvt-kvm ip ubuntu18.04`
csmith@downtown:~$ ssh csmith@$IP
Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-84-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage

8 updates can be applied immediately.
8 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

New release '20.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2023.
Last login: Thu Nov 18 14:29:55 2021 from 192.168.122.1
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ cat > setup_proposed.sh <<EOF
> #!/bin/bash
> mirror=http://archive.ubuntu.com/ubuntu
> echo deb \$mirror \$(lsb_release -sc)-proposed main | tee /etc/apt/sources.list.d/proposed.list
> apt-get update -q
> apt-get install -qy software-properties-gtk software-properties-common python3-software-properties
> EOF
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ lsb_release -sc
bionic
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ apt policy software-properties-gtk
software-properties-gtk:
  Installed: 0.96.24.32.14
  Candidate: 0.96.24.32.14
  Version table:
 *** 0.96.24.32.14 500
        500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages
        100 /var/lib/dpkg/status
     0.96.24.32.1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu bionic/main i386 Packages
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ [ -f /var/lib/ubuntu-advantage-tools/status.json ] && echo "status.json PRESENT" || echo "status.json ABSENT"
status.json ABSENT
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ software-properties-gtk
# no error messages
# Updates tab on Bionic does not currently report any ESM, support expiry info

2. Install -proposed software-properties, click Updates tab show the correct expiry for Bionic on unattached
csmith@csmith-Standard-PC-Q35-ICH9-2009:~$ sudo bash ./setup_proposed.sh
deb http://archive.ubuntu.com/ubuntu bionic-proposed main
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1,378 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2,303 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [114 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages [80.6 kB]
Get:10 http://archive.ub...

Read more...

tags: added: verification-done verification-done-bionic
removed: verification-needed verification-needed-bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.96.24.32.18

---------------
software-properties (0.96.24.32.18) bionic; urgency=medium

  [ Chad Smith ]
  * utils: prefer /var/lib/ubuntu-advantage/status.json over ua status
    - Handle absent /var/lib/ubuntu-advantage/status.json for non-root
      users (LP: #1939732)
    - print unexpected errors and if _schema_version not equal to 0.1

software-properties (0.96.24.32.17) bionic; urgency=medium

  * Show Ubuntu Pro banner on Livepatch page (LP: #1934439)

 -- Robert Ancell <email address hidden> Fri, 05 Nov 2021 16:44:17 +1300

Changed in software-properties (Ubuntu Bionic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.