答案1
您看到的消息是因为update-notifier
某种原因没有/var/lib/update-notifier/updates-available
使用启用 esm-apps 的正确信息更新文件。
为了让它显示应用程序已启用,您可以按照 3 个步骤进行操作。
esm-app
通过运行禁用sudo pro disable esm-apps
updates-available
通过运行删除文件sudo rm /var/lib/update-notifier/updates-available
esm-apps
通过运行重新启用sudo pro enable esm-apps
,现在当您重新登录时它应该显示已启用。
例子:
terrance@terrance-ubuntu:~$ ssh intrepid
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 6.2.0-37-generic x86_64)
System information as of Fri Dec 1 10:01:23 PM MST 2023
System load: 0.49 Processes: 250
Usage of /: 77.0% of 454.44GB Users logged in: 0
Memory usage: 5% IPv4 address for bond0: 10.0.0.220
Swap usage: 0% IPv4 address for tun0: 10.8.0.1
Expanded Security Maintenance for Applications is enabled.
0 updates can be applied immediately.
You have new mail.
Last login: Fri Dec 1 22:00:56 2023 from 10.0.0.100
terrance@Intrepid:~$ sudo pro disable esm-apps
Updating package lists
terrance@Intrepid:~$ exit
terrance@terrance-ubuntu:~$ ssh intrepid
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 6.2.0-37-generic x86_64)
System information as of Fri Dec 1 10:07:32 PM MST 2023
System load: 0.42 Processes: 246
Usage of /: 77.0% of 454.44GB Users logged in: 0
Memory usage: 5% IPv4 address for bond0: 10.0.0.220
Swap usage: 0% IPv4 address for tun0: 10.8.0.1
Expanded Security Maintenance for Applications is enabled.
0 updates can be applied immediately.
You have new mail.
Last login: Fri Dec 1 22:01:24 2023 from 10.0.0.100
terrance@Intrepid:~$ sudo pro status
SERVICE ENTITLED STATUS DESCRIPTION
anbox-cloud yes disabled Scalable Android in the cloud
esm-apps yes disabled Expanded Security Maintenance for Applications
terrance@Intrepid:~$ sudo rm /var/lib/update-notifier/updates-available
terrance@Intrepid:~$ sudo apt update
Ign:1 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Ign:2 http://download.webmin.com/download/repository sarge InRelease
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy InRelease . . . . . .
terrance@Intrepid:~$ cat /var/lib/update-notifier/updates-available
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
56 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm
terrance@Intrepid:~$ sudo rm /var/lib/update-notifier/updates-available
terrance@Intrepid:~$ sudo pro enable esm-apps
One moment, checking your subscription first
Updating Ubuntu Pro: ESM Apps package lists
Ubuntu Pro: ESM Apps enabled
terrance@Intrepid:~$ cat /var/lib/update-notifier/updates-available
Expanded Security Maintenance for Applications is enabled.
0 updates can be applied immediately.