disable ubuntu 24.04 esm-apps info while apt uprade

After running apt upgrade, useless info shown:

bash 复制代码
# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libavcodec60 libavutil58 libswresample4
Learn more about Ubuntu Pro at https://ubuntu.com/pro
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

how to solve:

bash 复制代码
root@hp:/home/aoy# grep pro -r /etc/apt/

# mv all the esm file to /tmp

/etc/apt/preferences.d.save/ubuntu-pro-esm-apps:# This file is used by Ubuntu Pro and supplied by the ubuntu-pro-client
/etc/apt/preferences.d.save/ubuntu-pro-esm-infra:# This file is used by Ubuntu Pro and supplied by the ubuntu-pro-client
/etc/apt/sources.list.d/ubuntu.sources.curtin.orig:##   <name>-updates   - Major bug fix updates produced after the final release of the
/etc/apt/sources.list.d/ubuntu.sources.curtin.orig:##                      newer versions of some applications which may provide useful features.
/etc/apt/sources.list.d/ubuntu.sources.curtin.orig:##   restricted  - Software that may not be under a free license, or protected by patents.
/etc/apt/preferences.d/ubuntu-pro-esm-apps:# This file is used by Ubuntu Pro and supplied by the ubuntu-pro-client
/etc/apt/preferences.d/ubuntu-pro-esm-infra:# This file is used by Ubuntu Pro and supplied by the ubuntu-pro-client
/etc/apt/apt.conf.d/50command-not-found:## This file is provided by command-not-found(1) to download
/etc/apt/apt.conf.d/50unattended-upgrades://	"${distro_id}:${distro_codename}-proposed";
/etc/apt/apt.conf.d/50unattended-upgrades:// Send email to this address for problems or packages upgrades
/etc/apt/apt.conf.d/50unattended-upgrades:// have a working mail setup on your system. A package that provides
/etc/apt/apt.conf.d/50appstream:## This file is provided by appstreamcli(1) to download DEP-11

after that , the esm info still shown

so

bash 复制代码
# cat /etc/apt/apt.conf.d/20apt-esm-hook.conf
APT::Update::Pre-Invoke {
	"[ ! -e /run/systemd/system ] || [ $(id -u) -ne 0 ] || systemctl start --no-block apt-news.service esm-cache.service || true";
};

binary::apt::AptCli::Hooks::Upgrade {
	"[ ! -f /usr/lib/ubuntu-advantage/apt-esm-json-hook ] || /usr/lib/ubuntu-advantage/apt-esm-json-hook || true";
};


# mv /etc/apt/apt.conf.d/20apt-esm-hook.conf /tmp/

after this, the info not exist, it very clear

bash 复制代码
# ps:

i try to remove the `apt-news.service esm-cache.service  `

but none of them exists




```bash


root@hp:~# systemctl  list-units | grep -i  esm
root@hp:~# systemctl  list-units | grep -i  apt
  apt-daily-upgrade.timer                                                                  loaded active waiting   Daily apt upgrade and clean activities
  apt-daily.timer                                                                          loaded active waiting   Daily apt download activities
root@hp:~# systemctl  list-units | grep -i  esm
root@hp:~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

ref

askubuntu.com/questions/1...

相关推荐
假装我不帅1 小时前
asp.net framework从webform开始创建mvc项目
后端·asp.net·mvc
神仙别闹1 小时前
基于ASP.NET+SQL Server实现简单小说网站(包括PC版本和移动版本)
后端·asp.net
计算机-秋大田1 小时前
基于Spring Boot的船舶监造系统的设计与实现,LW+源码+讲解
java·论文阅读·spring boot·后端·vue
货拉拉技术2 小时前
货拉拉-实时对账系统(算盘平台)
后端
掘金酱2 小时前
✍【瓜分额外奖金】11月金石计划附加挑战赛-活动命题发布
人工智能·后端
代码之光_19802 小时前
保障性住房管理:SpringBoot技术优势分析
java·spring boot·后端
ajsbxi3 小时前
苍穹外卖学习记录
java·笔记·后端·学习·nginx·spring·servlet
颜淡慕潇3 小时前
【K8S问题系列 |1 】Kubernetes 中 NodePort 类型的 Service 无法访问【已解决】
后端·云原生·容器·kubernetes·问题解决
尘浮生4 小时前
Java项目实战II基于Spring Boot的光影视频平台(开发文档+数据库+源码)
java·开发语言·数据库·spring boot·后端·maven·intellij-idea
尚学教辅学习资料4 小时前
基于SpringBoot的医药管理系统+LW示例参考
java·spring boot·后端·java毕业设计·医药管理