当我在终端中收到此信息时,我该如何更新?

当我在终端中收到此信息时,我该如何更新?

收到此消息后我该如何更新?'''

base-files/jammy-updates 12ubuntu4.5 amd64 [可从以下版本升级:12ubuntu4.4]
gjs/jammy-updates 1.72.4-0ubuntu0.22.04.1 amd64 [可从 1.72.0-1 升级]
libgjs0g/jammy-updates 1.72.4-0ubuntu0.22.04.1 amd64 [可从 1.72.0-1 升级]
libmm-glib0/jammy-updates 1.20.0-1~ubuntu22.04.3 amd64 [可从以下版本升级:1.20.0-1~ubuntu22.04.2]
libvkd3d1/jammy 1.3~jammy-1 i386 [可从 1.1-5 升级]
modemmanager/jammy-updates 1.20.0-1~ubuntu22.04.3 amd64 [可从以下版本升级:1.20.0-1~ubuntu22.04.2]
'''

答案1

您需要运行:

sudo apt upgrade

man apt-get

upgrade
   upgrade is used to install the newest versions of all packages
   currently installed on the system from the sources enumerated in
   /etc/apt/sources.list. Packages currently installed with new
   versions available are retrieved and upgraded; under no
   circumstances are currently installed packages removed, or packages
   not already installed retrieved and installed. New versions of
   currently installed packages that cannot be upgraded without
   changing the install status of another package will be left at
   their current version. An update must be performed first so that
   apt-get knows that new versions of packages are available

要再次列出可升级的软件包,执行以下命令sudo apt update

apt list upgradeable

答案2

您可以通过运行以下命令强制 apt 重复之前的包管理消息:

apt list --upgradable

“可从...升级”的软件包就是所谓的“分阶段更新”。分阶段更新是逐步向 Ubuntu 部分用户推出的软件更新,而不是同时向所有用户提供这些更新。在 apt 准备好正常安装这些分阶段更新之前手动升级这些分阶段更新可能会损坏您的系统,因此建议等到分阶段更新软件包准备好正常更新或通过sudo apt update && sudo apt upgrade无人值守升级进行更新,而无需手动干预。

相关内容