软件更新程序要求我安装更新,但终端上没有检测到任何可升级的内容

软件更新程序要求我安装更新,但终端上没有检测到任何可升级的内容

我打开笔记本电脑,看到一个弹出窗口,通知我是否有更新,并询问我是否愿意安装。我选择不安装:

在此处输入图片描述

我打开终端并运行sudo apt-get upgrade,但它没有安装任何东西:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libmm-glib0 libqmi-proxy modemmanager
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

因此我进入仪表板并选择了软件更新程序来安装更新。

对此有任何逻辑解释吗?我的意思是为什么命令行没有检测到任何要升级的东西?

答案1

图形用户界面 (软件更新程序)可能使用 dist-upgrade 而不是 upgrade。升级选项之间的差异。

从手册(man apt-get)中,它告诉我们“升级”

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.

并在 dist-grade 部分继续说

in addition to performing the function of upgrade, also intelligently
handles changing dependencies with new versions of packages...

(摘自man apt-get

相关内容