Update Manager(gui)和apt-get(cli)之间要更新的软件包不匹配

Modified on: Sat, 09 Jun 2018 17:56:23 +0800

我注意到我的系统今天很奇怪。虽然更新管理器(gui应用程序)声明已选择 14个更新,并且将下载52 Mb,但 apt-get upgrade命令只通知我要下载并安装 1更新

可以在此处找到Update Manager Gui(输出):

和cli apt-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

我做错了什么?

最佳答案

在CLI输出中,您可以看到某些软件包已被保留,例如新的内核版本/标头。虽然 update-manager 默认安装它们,但apt-get需要dist-upgrade参数在其升级中包含此类软件包。

从技术上讲,apt-get upgrade不会安装任何包,例如linux-image-...,而dist-upgrade将会。有关upgradedist-upgrade 见这里


相关问答

添加新评论