AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1371014
Accepted
Organic Marble
Organic Marble
Asked: 2021-10-23 15:46:55 +0800 CST2021-10-23 15:46:55 +0800 CST 2021-10-23 15:46:55 +0800 CST

Ubuntu Advantage 在我的(完全支持的)20.04 机器上做了什么,它每天检查两次,我可以摆脱它吗?

  • 772

这是 Ubuntu Advantage 在我的(完全支持的)18.04 机器上做什么的更新,它每天检查两次,我可以摆脱它吗?对于 20.04,因为答案不同。

回复:ubuntu-advantage-tools,看起来每 12 小时它就会醒来一次,在我的系统上寻找一些东西,没有找到它,然后就消失了。

我不记得故意安装任何称为 ubuntu 优势的东西,据我所知,它用于超过 EOL 的系统,而这个 20.04 系统绝对不是。

另外,我找不到名为 ubuntu 优势的服务或 cron 中的条目。

这个东西想做什么,它是如何运行的,我该如何摆脱它?

20.04
  • 1 1 个回答
  • 3836 Views

1 个回答

  • Voted
  1. Best Answer
    Organic Marble
    2021-10-23T15:46:55+08:002021-10-23T15:46:55+08:00

    这个很好的答案适用于 18.04。

    它告诉您删除包,这很好,因为在 18.04 上它只删除了附加包ubuntu-minimal。

    但是,在 20.04 上,它想删除更多内容,即

    • ttf-mscorefonts-installer
    • ubuntu-release-upgrader-gtk
    • update-manager
    • update-manager-core
    • update-notifier
    • update-notifier-common

    由于以下依赖树:

    $ aptitude why ubuntu-advantage-tools
    i   ttf-mscorefonts-installer Depends update-notifier-common (>= 0.119ubuntu2)
    i A update-notifier-common    Depends update-manager-core (>= 1:17.04.2)      
    i A update-manager-core       Depends ubuntu-advantage-tools           
    

    这是不可接受的,所以我们必须寻找另一种方式。就在这里。

    1. 停止并屏蔽服务

      sudo systemctl stop ua-messaging.timer
      sudo systemctl stop ua-messaging.service
      sudo systemctl stop ua-timer.timer
      sudo systemctl mask ua-messaging.timer
      sudo systemctl mask ua-messaging.service
      sudo systemctl mask ua-timer.timer
      
    2. 检查它是否有效

      systemctl status ua-messaging.service
      systemctl status ua-messaging.timer
      systemctl status ua-timer.timer
      

      您应该为每个人看到这样的状态

      $ systemctl status ua-messaging.service
      * ua-messaging.service
          Loaded: masked (Reason: Unit ua-messaging.service is masked.)
          Active: inactive (dead)
      $ systemctl status ua-messaging.timer
      * ua-messaging.timer
          Loaded: masked (Reason: Unit ua-messaging.timer is masked.)
          Active: inactive (dead) since Fri 2021-11-12 23:10:16 GMT; 1min 2s ago
         Trigger: n/a
      
      Nov 12 01:09:42 focal systemd[1]: Started Ubuntu Advantage update messaging.
      Nov 12 01:10:16 focal systemd[1]: ua-messaging.timer: Succeeded.
      Nov 12 01:10:16 focal systemd[1]: Stopped Ubuntu Advantage update messaging.
      $ systemctl status ua-timer.timer
      * ua-timer.timer
          Loaded: masked (Reason: Unit ua-timer.timer is masked.)
          Active: inactive (dead)
         Trigger: n/a
      
    3. 移除 APT 钩子(有关详细信息,请参阅此答案)

      sudo rm /etc/apt/apt.conf.d/20apt-esm-hook.conf
      

    大约一天后检查/var/log/ubuntu-advantage.log以确认它不再运行。

    • 7

相关问题

  • 如何在 18.04..20.04 上设置本地通配符 (127.0.0.1) 域解析?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve