Liveptach 服务无法获得授权

Liveptach 服务无法获得授权

我无法通过 gnome-control-center 的“在线帐户”选项卡登录我的 Ubuntu 帐户,因为它引发错误“连接 Ubuntu 单点登录服务器时出错:\n 出现问题,请重试”

当我尝试启用 livepatch ( ua enable livepatch) 时失败:

One moment, checking your subscription first
Stderr: Could not retrieve client information.: GET request to "https://livepatch.canonical.com/v1/client/{...}/info" failed

Stdout:
Unable to enable Livepatch: Failed running command '/snap/bin/canonical-livepatch enable <REDACTED>' [exit(1)]. Message: Could not retrieve client information.: GET request to "https://livepatch.canonical.com/v1/client/{...}/info" failed

Unable to determine current instance-id

当我尝试启用 livepatch( canonical-livepatch enable <TOKEN>)时

failed to register client: POST request to "https://livepatch.canonical.com/v1/client/{...}" failed

请注意,我正在运行基于 Ubuntu 22.04 LTS (AMD64) 的机器。另外请注意,我尝试过

  1. Canonical livepatch 服务已停止工作
  2. 当我尝试启用令牌时,规范实时补丁失败
  3. Canonical Livepatch 内部错误
  4. Canonical Livepatch 在启动时遇到内部错误
  5. 无法在 Ubuntu 20.04.1 LTS 上启用 Canonical Livepatch
  6. 登录 Ubuntu One 获取 Livepatch
  7. https://ubuntuforums.org/showthread.php?t=2420465
  8. 无法在 22.04 上启用 Livepatch 服务
  9. Ubuntu 单点登录帐户停留在“正在连接……”
  10. ubuntu 20.04 无法登录 ubuntu 单点登录帐户“出现错误,请重试”

但都没有用!!


系统规格

  • 操作系统:Ubuntu 22.04
  • 生命周期:LTS
  • 架构:AMD64
  • 规范-livepatch:v10.2.3
  • ubuntu-advantage-desktop-daemon:v1.9~22.04.1
  • ubuntu-advantage-pro:v27.8~22.04.1
  • ubuntu-advantage-tools:v27.8~22.04.1
  • 内核版本(uname -a):5.15.0-37

答案1

谢谢大家...在我尝试了 ubuntu 论坛问题中推荐的命令后,它又起作用了(https://ubuntuforums.org/showthread.php?t=2475854&p=14099828#post14099828

sudo snap run canonical-livepatch disable
sudo snap remove canonical-livepatch
sudo rm /etc/machine-id /var/lib/dbus/machine-id
sudo systemd-machine-id-setup
sudo dbus-uuidgen --ensure=/etc/machine-id
sudo canonical-livepatch enable [unique token]
sudo snap forget [snapshot ID]
sudo snap install canonical-livepatch
sudo snap save

相关内容