如何更新所有 snap 包

如何更新所有 snap 包

我看到了这个:

44 个软件包可以更新

所以我这样做了:

enter image description here

那没有用。如何更新它所谈论的软件包?

答案1

它所谈论的包不是 snap 包,即 asudo apt full-upgrade将升级可以更新的 deb 包。

通常我会使用 来sudo apt update更新软件列表,以便它找到所有可以更新的软件包,但您的系统已经检测到 44 个可以升级的软件包。这可能值得做,sudo apt update以确保它不会很快找到更多软件包,但这是可选的。

Asudo apt upgrade将升级大多数(如果不是全部)软件包,但sudo apt full-upgrade会从软件列表中升级系统上的所有 [deb] 软件包。Snap 和其他类型的软件包使用不同的工具;这些命令适用于核心 deb 软件包。

man apt

   upgrade (apt-get(8))
       upgrade is used to install available upgrades of all packages currently installed on the system from the
       sources configured via sources.list(5). New packages will be installed if required to satisfy dependencies,
       but existing packages will never be removed. If an upgrade for a package requires the removal of an installed
       package the upgrade for this package isn't performed.

   full-upgrade (apt-get(8))
       full-upgrade performs the function of upgrade but will remove currently installed packages if this is needed
       to upgrade the system as a whole.

相关内容