为什么APT建议在Trusty上从4.4.0升级内核3.13?


8

APT让我不时感到震惊。两周前,我进行了apt update跟踪,apt upgrade即使我使用的是4.4,也获得了3.13内核。我忽略了这一点。一周后,我重新运行了更新和升级,建议不要升级。今天,3.13的建议又回来了。这是怎么回事,如何防止建议使用这些复古内核?

lsb_release -d
Description:    Ubuntu 14.04.5 LTS

uname -a
Linux cahl 4.4.0-78-generic #99~14.04.2-Ubuntu SMP Thu Apr 27 18:49:46 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  flow-tools libdbi1 librrd4 linux-headers-3.13.0-112
  linux-headers-3.13.0-112-generic linux-headers-3.13.0-119
  linux-headers-3.13.0-119-generic linux-headers-3.13.0-121
  linux-headers-3.13.0-121-generic linux-headers-3.13.0-123
  linux-headers-3.13.0-123-generic linux-headers-3.13.0-125
  linux-headers-3.13.0-125-generic linux-headers-4.4.0-79
  linux-headers-4.4.0-79-generic linux-headers-4.4.0-81
  linux-headers-4.4.0-81-generic linux-headers-4.4.0-83
  linux-headers-4.4.0-83-generic linux-headers-4.4.0-87
  linux-headers-4.4.0-87-generic linux-image-3.13.0-112-generic
  linux-image-3.13.0-119-generic linux-image-3.13.0-121-generic
  linux-image-3.13.0-123-generic linux-image-3.13.0-125-generic
  linux-image-4.4.0-79-generic linux-image-4.4.0-81-generic
  linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic
  linux-image-extra-3.13.0-112-generic linux-image-extra-3.13.0-119-generic
  linux-image-extra-3.13.0-121-generic linux-image-extra-3.13.0-123-generic
  linux-image-extra-3.13.0-125-generic linux-image-extra-4.4.0-79-generic
  linux-image-extra-4.4.0-81-generic linux-image-extra-4.4.0-83-generic
  linux-image-extra-4.4.0-87-generic linux-tools-3.13.0-112
  linux-tools-3.13.0-112-generic linux-tools-3.13.0-119
  linux-tools-3.13.0-119-generic linux-tools-3.13.0-121
  linux-tools-3.13.0-121-generic linux-tools-3.13.0-123
  linux-tools-3.13.0-123-generic linux-tools-3.13.0-125
  linux-tools-3.13.0-125-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  linux-headers-3.13.0-126 linux-headers-3.13.0-126-generic
  linux-image-3.13.0-126-generic linux-image-extra-3.13.0-126-generic
  linux-tools-3.13.0-126 linux-tools-3.13.0-126-generic
The following packages will be upgraded:
  linux-generic linux-headers-generic linux-image-generic linux-libc-dev
  linux-tools-common linux-tools-generic
6 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 62.8 MB of archives.
After this operation, 274 MB of additional disk space will be used.
Do you want to continue? [Y/n]

ls /etc/apt/sources.list.d/
chris-lea-node_js-trusty.list       george-edison55-cmake-3_x-trusty.list       insync.list.save                      ubuntu-toolchain-r-test-trusty.list.save  webupd8team-java-trusty.list
chris-lea-node_js-trusty.list.save  george-edison55-cmake-3_x-trusty.list.save  jtaylor-ipython-trusty.list           ubuntu-x-swat-x-updates-trusty.list.BAK   webupd8team-java-trusty.list.save
cuda-8-0-local-ga2.list             google-chrome.list                          jtaylor-ipython-trusty.list.save      ubuntu-x-swat-x-updates-trusty.list.save  webupd8team-y-ppa-manager-trusty.list
cuda.list                           google-chrome.list.save                     michael-astrapi-ppa-trusty.list.save  virtualbox.list                           webupd8team-y-ppa-manager-trusty.list.save

Answers:


13

您使用的是HWE内核版本,但仍然有一个指向3.13内核的meta包。Ubuntu 14.04最初以3.13内核发布。

现在,您将获得3.13和4.4内核的更新。

如果您不想获得3.13更新,请通过运行以下命令删除元软件包

sudo apt-get remove linux-image-generic linux-headers-generic linux-tools-generic

您将通过linux-image-generic-lts-xeniallinux-headers-generic-lts-xenialmeta packs 获得4.4内核的更新。

如果愿意,您也可以删除所有3.13映像,标题和工具包。


感谢您的回答。它解决了问题。后续问题,从可移动列表中可以看到我有“ 4.4.0-87”内核映像和标头,但是我当前的内核是4.4.0-78,它似乎是较低的版本,没有更新建议。知道为什么不存在更高版本的内核以及为什么它或更高版本的内核未通过apt升级建议给我吗?再次感谢。
larkin

如果答案有帮助,请接受。如果您还有其他问题,可以提出。如何提问
Pilot6 '17

您的意思是“ linux-headers-generic-lts-xenialan xlinus吗?
wha7ever

确实,thnx。我修好了它。
飞行员
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.