确定命令行是否仍支持 Ubuntu 版本?

Eva*_*oll 14 support

无论如何,当不再支持 Ubuntu 的发行版时,是否可以从命令行中得知?我正在寻找这样的东西,(不使用谷歌或维基百科),

apt-release-support xenial
Run Code Online (Sandbox Code Playgroud)

或者,即使它只是告诉我我的发行版是否受支持。

Jor*_*tro 27

运行ubuntu-support-status将告诉您已安装的所有内容的支持持续多长时间,以下是我的输出作为示例:

Support status summary of 'ivory':

You have 1904 packages (75.7%) supported until April 2021 (5y)
You have 14 packages (0.6%) supported until January 2022 (5y)
You have 83 packages (3.3%) supported until April 2019 (3y)
You have 237 packages (9.4%) supported until January 2017 (9m)

You have 80 packages (3.2%) that can not/no-longer be downloaded
You have 197 packages (7.8%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
Run Code Online (Sandbox Code Playgroud)

2021 年 7 月 11 日编辑:

在较新版本的 Ubuntu 中(在 20.04 上验证)ubuntu-support-status已被替换为ubuntu-security-status

$ ubuntu-security-status
2553 packages installed, of which:
2073 receive package updates with LTS until 4/2025
 467 are receiving security updates with ESM Apps until 4/2030
  10 packages are from third parties
   3 packages are no longer available for download

Packages from third parties are not provided by the official Ubuntu
archive, for example packages from Personal Package Archives in
Launchpad.
For more information on the packages, run 'ubuntu-security-status
--thirdparty'.

Packages that are not available for download may be left over from a
previous release of Ubuntu, may have been installed directly from a
.deb file, or are from a source which has been disabled.
For more information on the packages, run 'ubuntu-security-status
--unavailable'.
Run Code Online (Sandbox Code Playgroud)

  • 如何从该软件包列表中轻松得出 Ubuntu 版本支持状态? (2认同)