APT 有时会让我感到震惊。两周前我进行了跟踪apt update
,apt upgrade
并被推荐使用 3.13 内核,尽管我使用的是 4.4 内核。我忽略了这一点。一周后我重新运行更新和升级,没有升级建议。今天,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
答案1
您使用的是 HWE 内核版本,但仍有一个指向 3.13 内核的元包。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-xenial
您将通过元包获得 4.4 内核的更新linux-headers-generic-lts-xenial
。
如果愿意,您还可以删除所有 3.13 图像、标题和工具包。