记录一下Ubuntu24.04上进行apt upgrade时提示信息包含esm-apps的问题,然后通过移除20apt-esm-hook.conf去掉该提示信息。

问题

sudo apt upgrade结果中会出现以下信息:

Get more security updates through Ubuntu Pro with 'esm-apps' enabled:

  libcjson1 libpostproc57 libavcodec60 libavutil58 libswscale7 libswresample4

  libavformat60 libavfilter9

Learn more about Ubuntu Pro at https://ubuntu.com/pro

解决方法

移除/etc/apt/apt.conf.d目录下的20apt-esm-hook.conf

blduan@ubuntu24:/etc/apt/apt.conf.d$ ls
01-vendor-ubuntu  01autoremove  20apt-esm-hook.conf  20auto-upgrades  20packagekit  50appstream  50command-not-found  50unattended-upgrades  70debconf  99needrestart