我今天注意到我的系统表现得很奇怪。虽然更新管理器(GUI 应用程序)显示选择了 14 个更新,将下载 52 Mb,该apt-get upgrade
命令仅通知我需要下载并安装 1 个更新。
更新管理器 Gui (输出) 可以在这里找到:
CLIapt-get upgrade
输出如下:
fokis@fokis-netbook:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
ginn libgrip0 linux-generic linux-headers-generic linux-headers-generic-pae
linux-image-generic
The following packages will be upgraded:
linux-libc-dev
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 866 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
笔记: 我apt-get update
之前已经apt-get upgrade
在命令行运行过。
我做错了什么?
答案1
从 CLI 输出中,您可以看到一些软件包已被保留,例如新的内核版本/标头。更新管理器默认安装它们,apt-get
需要dist-upgrade
参数在其升级中包含这些包。
从技术上讲,apt-get upgrade
不会安装任何新的软件包,例如linux-image-...
,而则会。有关和dist-upgrade
之间的差异的更多信息upgrade
dist-upgrade
看这里。