← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1997514] Re: Attaching an Ubuntu Pro key fails when snapd is withheld

 

This bug was fixed in the package ubuntu-advantage-tools -
27.13.1~20.04.1

---------------
ubuntu-advantage-tools (27.13.1~20.04.1) focal; urgency=medium

  * Backport new upstream release: (LP: #2003018) to focal

ubuntu-advantage-tools (27.13.1~23.04.1) lunar; urgency=medium

  * apt: better isolate apt esm cache by only fetching necessary
    configuration from the system apt

ubuntu-advantage-tools (27.13~23.04.1) lunar; urgency=medium

  * d/bash-completion:
    - enable autocomplete for the 'pro' command (GH: #2280)
  * d/control:
    - update the package description
  * d/postinst:
    - remove unauthenticated esm repos from Xenial systems (LP: #1990378)
  * New upstream release 27.13 (LP: #2003018)
    - apt:
      + remove logic which added repositories and pinned them to 'never' to
        enable access to esm package lists
      + add functionality to create and update a local apt esm cache with
        the lists for esm-infra and esm-apps
    - apt-hook: update the cpp hook to use the local esm apt cache
    - apt-news:
      + fetch and display APT News in apt upgrade
      + show contract expiration notices in the apt news output
    - attach: support attaching without being able to install snapd
      (LP: #1997514)
    - cli:
      + do not show invalid subcommands in autocomplete (GH: #2279)
      + add support for attaching through the web portal, without a token
    - config: add apt_news_url option
    - docs: reorganize documentation and correct information
    - esm-apps: release the service as GA
    - jobs:
      + remove the update_status job
      + remove unused job which checks for the system EOL
    - messaging: do not fail if the apt-hook executable is not present
      (LP: #1994480)
    - motd: announce esm-apps as GA
    - security-status:
      + use the local esm cache to report updates when the services are
        disabled
      + redesign output to properly show support (LP: #2002407)
    - services: add new service to update the local esm caches
    - ros: release the service as GA
    - bug fixes:
      + report reboot_required even if 'livepatch status' fails
      + do not create unexpected environment variables when the autocomplete
        script runs
      + contract requests do not cause 'pro status' to fail
      + remove auto-attach motd message if any failure happens
      + log when 'cloud-id' fails
      + always honor the metering job timer config
      + write files atomically

 -- Lucas Moura <lucas.moura@xxxxxxxxxxxxx>  Mon, 23 Jan 2023 12:28:43
-0300

** Changed in: ubuntu-advantage-tools (Ubuntu Bionic)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1997514

Title:
  Attaching an Ubuntu Pro key fails when snapd is withheld

Status in ubuntu-advantage-tools package in Ubuntu:
  Fix Released
Status in ubuntu-advantage-tools source package in Xenial:
  Fix Released
Status in ubuntu-advantage-tools source package in Bionic:
  Fix Released
Status in ubuntu-advantage-tools source package in Focal:
  Fix Released
Status in ubuntu-advantage-tools source package in Jammy:
  Fix Released
Status in ubuntu-advantage-tools source package in Kinetic:
  Fix Released

Bug description:
  [Impact]
  This bug affects users who hold the snapd package so it is not installed.
  When trying to attach, they'll see a failure because snapd cannot be installed.

  snapd is required for livepatch. When it is absent, we try to install
  it. If we cannot, then the client should perform a partial attach -
  not enabling Livepatch, but still enabling esm, for instance - instead
  of failing completely.

  [Test Case]
  - On a LTS system compatible with Livepatch, hold the snapd package in apt with a negative pin in a preferences file
  - uninstall snapd, if present
  - try to attach, see it fail
  - install ubuntu-advantage-tools >= 27.13
  - try to attach, verify that it works, but Livepatch is disabled
  - try to enable Livepatch, see that it can't because snapd cannot be installed
  - unhold snapd
  - enable Livepatch, and check that it works

  [Regression Potential]
  If snapd is not installed for any other reason, attach will also skip enabling Livepatch and try to proceed. This happens to be acceptable behavior, and even intended, as a complete fail would be worse. Once snapd can be installed again, Livepatch enablement will be back to normal.

  [Original Description]
  My system report error
  I am not using snap
  I am not able to use the ubuntu pro advantage without snap ?
  and how do I know what kernel is better for my pc ?

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: ubuntu-advantage-tools 27.11.3~22.04.1
  ProcVersionSignature: Ubuntu 5.15.0-53.59-generic 5.15.64
  Uname: Linux 5.15.0-53-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Nov 23 00:21:55 2022
  InstallationDate: Installed on 2022-09-30 (54 days ago)
  InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
  SourcePackage: ubuntu-advantage-tools
  UpgradeStatus: No upgrade log present (probably fresh install)
  cloud-id.txt-error: Invalid command specified 'cloud-id'.
  jobs-status.json: {"update_messaging": {"last_run": "2022-11-23T02:28:01.210758+00:00", "next_run": "2022-11-23T08:28:01.210758+00:00"}, "update_status": {"last_run": "2022-11-23T02:28:01.210758+00:00", "next_run": "2022-11-23T14:28:01.210758+00:00"}, "metering": {"last_run": "2022-11-23T02:28:01.210758+00:00", "next_run": "2022-11-23T06:28:01.210758+00:00"}}
  livepatch-status.txt-error: Invalid command specified '/snap/bin/canonical-livepatch status'.

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