Public bug reported:

it happened just after installing ua

$ sudo ua status
SERVICE       ENTITLED  STATUS    DESCRIPTION
cc-eal        yes       disabled  Common Criteria EAL2 Provisioning Packages
cis           yes       disabled  Security compliance and audit tools
esm-infra     yes       disabled  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

Enable services with: ua enable <service>

(...)
Technical support level: essential
$ sudo ua enable esm-infra
One moment, checking your subscription first
Unexpected error(s) occurred.
For more details, see the log: /var/log/ubuntu-advantage.log
To file a bug run: ubuntu-bug ubuntu-advantage-tools
$  sudo tail /var/log/ubuntu-advantage.log
  File "/usr/lib/python3/dist-packages/uaclient/util.py", line 373, in 
is_active_esm
    if not is_lts(series):
  File "/usr/lib/python3/dist-packages/uaclient/util.py", line 366, in is_lts
    out, _err = subp(["/usr/bin/ubuntu-distro-info", "--supported-esm"])
  File "/usr/lib/python3/dist-packages/uaclient/util.py", line 677, in subp
    out, err = _subp(args, rcs, capture, timeout, env=env)
  File "/usr/lib/python3/dist-packages/uaclient/util.py", line 634, in _subp
    stderr=err.decode("utf-8"),
uaclient.util.ProcessExecutionError: Failed running command 
'/usr/bin/ubuntu-distro-info --supported-esm' [exit(1)]. Message: 
ubuntu-distro-info: unrecognized option `--supported-esm'

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ubuntu-advantage-tools 27.6~16.04.1
ProcVersionSignature: Ubuntu 4.4.0-1122.136-aws 4.4.249
Uname: Linux 4.4.0-1122-aws x86_64
NonfreeKernelModules: lkp_Ubuntu_4_4_0_1122_136_aws_83
ApportVersion: 2.20.1-0ubuntu2.30
Architecture: amd64
Date: Tue Mar 22 21:17:27 2022
Ec2AMI: ami-056fd791b93b23ca1
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-west-2a
Ec2InstanceType: i3.metal
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ubuntu-advantage-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images xenial

** Description changed:

  it happened just after installing ua
+ 
+ $ sudo ua status
+ SERVICE       ENTITLED  STATUS    DESCRIPTION
+ cc-eal        yes       disabled  Common Criteria EAL2 Provisioning Packages
+ cis           yes       disabled  Security compliance and audit tools
+ esm-infra     yes       disabled  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
+ 
+ Enable services with: ua enable <service>
+ 
+ (...)
+ Technical support level: essential
+ $ sudo ua enable esm-infra
+ One moment, checking your subscription first
+ Unexpected error(s) occurred.
+ For more details, see the log: /var/log/ubuntu-advantage.log
+ To file a bug run: ubuntu-bug ubuntu-advantage-tools
+ $  sudo tail /var/log/ubuntu-advantage.log
+   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 373, in 
is_active_esm
+     if not is_lts(series):
+   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 366, in is_lts
+     out, _err = subp(["/usr/bin/ubuntu-distro-info", "--supported-esm"])
+   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 677, in subp
+     out, err = _subp(args, rcs, capture, timeout, env=env)
+   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 634, in _subp
+     stderr=err.decode("utf-8"),
+ uaclient.util.ProcessExecutionError: Failed running command 
'/usr/bin/ubuntu-distro-info --supported-esm' [exit(1)]. Message: 
ubuntu-distro-info: unrecognized option `--supported-esm'
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: ubuntu-advantage-tools 27.6~16.04.1
  ProcVersionSignature: Ubuntu 4.4.0-1122.136-aws 4.4.249
  Uname: Linux 4.4.0-1122-aws x86_64
  NonfreeKernelModules: lkp_Ubuntu_4_4_0_1122_136_aws_83
  ApportVersion: 2.20.1-0ubuntu2.30
  Architecture: amd64
  Date: Tue Mar 22 21:17:27 2022
  Ec2AMI: ami-056fd791b93b23ca1
  Ec2AMIManifest: (unknown)
  Ec2AvailabilityZone: us-west-2a
  Ec2InstanceType: i3.metal
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  ProcEnviron:
-  TERM=xterm-256color
-  PATH=(custom, no user)
-  LANG=en_US.UTF-8
+  TERM=xterm-256color
+  PATH=(custom, no user)
+  LANG=en_US.UTF-8
  SourcePackage: ubuntu-advantage-tools
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1965989

Title:
  sudo ua enable esm-infra doesn't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1965989/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to