29
7月
2021
10:00

删除 Ubuntu Advantage 包

29 7月 2021 10:00

Ubuntu Linux 操作系统通常没有臃肿软件。 除了“ubuntu Advantage Tools”包之外,Canonical 开始为 Ubuntu 和 Linux Mint 分发该包。 删除不需要的包。

Ubuntu 的优势是什么

对于在企业和办公室使用Ubuntu Linux的大型企业来说,为操作系统提供全天候技术支持的能力是非常必要的。 无论是虚拟专用服务器 (VDS) 还是工作场所(桌面)。

例如,微软在购买Windows操作系统时为客户提供此类支持。 还有 Microsoft 开放协议(开放价值和开放许可证)下的高级软件包。

为了使中小型企业能够使用 Linux,Canonical 创建了 Ubuntu Advantage 计划。 以母语提供支持 - 在本例中为俄语。 在俄罗斯,“Factor group”公司负责支持( https://www.fgts.ru/ )。

为什么我要卸载 Ubuntu Advantage Tools

理由:

    1. 参与该计划是有偿的。 厘米。这里。 我不会购买或参与这个“Ubuntu Advantage”计划。
  1. 通过包依赖 ubuntu-advantage-tools 任何东西都可以安装在我的计算机上(安全漏洞)。

  2. 此 Canonical 服务包不是开源软件。

如何删除 Ubuntu Advantage Tools 软件包?

删除命令

sudo apt remove ubuntu-advantage-tools ubuntu-advantage-desktop-daemon

当你删除这两个包时,这些包会通过依赖关系被删除 apport-gtk, apturl-common, distro-info, ubuntu-minimal, ubuntu-server, ubuntu-release-upgrader-core, ubuntu-release-upgrader-gtk, update-manager, update-manager-core, update-notifier, update-notifier-common, python3-dateutil, python3-debconf, python3-distro-info python3-distupgrade, python3-update-manager

重新安装任何这些软件包(例如“ubuntu-minimal”元软件包)将导致 ubuntu-advantage-tools 软件包通过依赖关系恢复。

因此,您要么必须忍受 ubuntu-advantage-tools 的存在,要么放弃上述软件包。

软件包信息 ubuntu-advantage-tools

apt-cache 显示 ubuntu-advantage-tools
软件包:ubuntu-advantage-tools
架构:amd64
版本:27.2.2~20.04.1
优先级:重要
部分:杂项
产地:乌班图
维护者:Ubuntu 开发者 
错误:https://bugs.launchpad.net/ubuntu/+filebug
安装尺寸:3107
...
主页:https://buy.ubuntu.com

Description-zh: Ubuntu Advantage 的管理工具

Ubuntu Advantage 是工具、技术的专业包
和 Canonical 的专业知识为世界各地的组织提供帮助
管理他们的 Ubuntu 部署。
...
Ubuntu Advantage 的订阅者将找到有用的工具来访问
此包中的服务。

2021 年 11 月 8 日更新 - 尝试自发安装 Ubuntu Advantage 软件包

11 月 8 日,我注意到在下一次更新时软件包 “Ubuntu-Advantage-Tools” 尝试再次安装:

正在预配置软件包...

无法执行“/tmp/ubuntu-advantage-tools.config.LWEG0X”:权限不足,位于 /usr/share/perl/5.30/IPC/Open3.pm 第 281 行。

open2:执行 /tmp/ubuntu-advantage-tools.config.LWEG0X 配置 27.2.2~20.04.1 失败:权限不足,位于 /usr/share/perl5/Debconf/ConfModule.pm 第 59 行。

(正在读取数据库...当前已安装 623270 个文件和目录。)

准备解压.../0-ubuntu-advantage-tools_27.3~20.04.1_amd64.deb...

正在解压 ubuntu-advantage-tools (27.3~20.04.1)替换(27.2.2~20.04.1)…

...

正在配置软件包 ubuntu-advantage-tools (27.3~20.04.1)…

正在安装新版本的配置文件 /etc/logrotate.d/ubuntu-advantage-tools…

正在安装新版本的配置文件 /etc/ubuntu-advantage/help_data.yaml…

正在安装新版本的配置文件 /etc/ubuntu-advantage/uaclient.conf…

已创建符号链接 /etc/systemd/system/timers.target.wants/ua-timer.timer → /lib/systemd/system/ua-timer.timer。

已创建符号链接/etc/systemd/system/multi-user.target.wants/ua-license-check.path → /lib/systemd/system/ua-license-check.path.

我删除了它:

sudo apt-get remove ubuntu-advantage-tools

恢复已删除的软件包和 Ubuntu Advantage 工具

恢复已删除软件包的命令将通过依赖项恢复 ubuntu-advantage-tools:

sudo apt install nautilus-share apturl ubuntu-desktop-minimal software-properties-gtk ubuntu-server ubuntu-minimal update-notifier update-notifier-common update-manager ubuntu-release-upgrader-gtk update-manager-core

因此,删除 Ubuntu、Runtu LITE 和其他操作系统中包含的 ubuntu-advantage-tools 软件包会带来问题。

[标记]###彻底删除ubuntu-advantage-tools的解决方案[/mark]
(附录日期为 12/04/2023).

查看依赖关系:

aptitude -v --show-summary=first-package-and-type why ubuntu-advantage-tools
需要 ubuntu-advantage-tools 的软件包:
[取决于]友好恢复
[取决于] libreoffice-common
[取决于] ubuntu-restricted-extras
aptitude -v --show-summary=all-packages why ubuntu-advantage-tools
需要 ubuntu-advantage-tools 的软件包:
友好恢复 R: 更新管理器核心 W: ubuntu-advantage-tools
libreoffice-common R: ttf-mscorefonts-installer W:
update-notifier-common A: update-manager-core A: ubuntu-advantage-tools
ubuntu-restricted-extras R:ttf-mscorefonts-安装程序 W:
update-notifier-common Z: update-manager-core Z: ubuntu-advantage-tools
update-manager-core 依赖于 ubuntu-advantage-tools

1。 我们安装所有软件包,包括ubuntu-advantage-tools,它将通过依赖项安装

sudo aptitude install -y 更新管理器 更新管理器核心 友好恢复 libreoffice-common ttf-mscorefonts-installer 更新管理器核心 python3-debconf apport apport-gtk apport-symptoms gir1.2-snapd-1 libwhoopsie-preferences0 python3-systemd software-properties-gtk ubuntu-advantage-tools ubuntu-release-upgrader-gtk update-notifier update-notifier-common whoopsie whoopsie-preferences fonts-liberation2

  1. 删除了更新通知程序

sudo aptitude purge update-notifier update-notifier-common

  1. 更改了标志 - 删除了“自动"

sudo aptitude unmarkautoamily-recovery libreoffice-common ttf-mscorefonts-installer ubuntu-release-upgrader-gtk update-manager update-manager-core python3-debconf apport apport-gtk apport-symptoms gir1.2-snapd-1 libwhoopsie-preferences0 python3-systemd software-properties-gtk ubuntu-advantage-tools ubuntu-release-upgrader-gtk whoopsie whoopsie-首选项

  1. 主要团队

    sudo aptitude purge -y ubuntu-advantage-tools

以下软件包将被删除:

ubuntu-advantage-tools{p} ubuntu-pro-client-l10n{u}

将配置以下部分安装的软件包:
ttf-mscorefonts-安装程序更新通知程序更新通知程序-通用

更新了 0 个软件包,安装了 0 个新软件包,标记为删除 2 个软件包,以及未更新 9 个软件包。
你需要获得 0 B 档案。 解压后,将释放 1248 kB。
以下软件包具有未满足的依赖关系:
update-manager-core :取决于:ubuntu-advantage-tools 但未计划安装
以下步骤将解决依赖关系:

删除以下软件包:

1) ttf-mscorefonts-installer [3.8ubuntu2 (jammy, 现在)]
2) ubuntu-release-upgrader-gtk [1:22.04.17(jammy-更新,现在)]
3) 更新管理器 [1:22.04.10(jammy-更新,现在)]
4) update-manager-core [1:22.04.10(jammy-updates,现在)]
5) 更新通知程序 [3.192.54.6(jammy-updates,现在)]
6) update-notifier-common [3.192.54.6(jammy-updates,现在)]

保留以下未解决的依赖关系:

7)Friendly-recovery推荐update-manager-core
8) ubuntu-restricted-extras 推荐 ttf-mscorefonts-installer

当你按下一个键时 将添加软件包 ubuntu-pro-client-l10n、ubuntu-advantage-tools 和Friendly-recovery:

正在卸载 ttf-mscorefonts-installer (3.8ubuntu2) ...
更新通知程序 (3.192.54.6) 已删除...
Update-notifier-common (3.192.54.6) 已删除...
正在卸载 ubuntu-pro-client-l10n (30~22.04) ...
更新管理器已删除 (1:22.04.10) ...
正在卸载 ubuntu-release-upgrader-gtk (1:22.04.17) ...
Update-manager-core 已删除 (1:22.04.10) ...

5) 仅在 Linux 中,必须在“启动”应用程序中禁用 Cinnamon “xapp-sn-观察者”,没有更新管理器就无法运行。

ubuntu-advantage-tools 软件包已成功删除。

! 更新系统软件包必须从终端手动完成: sudo apt-get update && sudo apt-get Upgrade,因为带有图形界面“update-manager”的程序已被删除。

禁止启动和停止Ubuntu-Advantage服务

如果操作系统是最近安装的,则默认运行 ubuntu-advantage 服务。

检查:

sudo systemctl --type=service --state=running
systemctl list-units --all --type=service

禁用和停止 ubuntu-advantage.service:

sudo systemctl 禁用 ubuntu-advantage.service
sudo systemctl stop ubuntu-advantage.service

本文最后修改时间: 10/08/2024。



相关出版物