设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 手机 数据 公司
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

UKTools:安装最新Linux内核的简便方法(4)

发布时间:2018-08-13 03:09 所属栏目:117 来源:Prakash Subramanian
导读:要移除旧内核,运行以下命令: $ do-kernel-purge Ubuntu Kernel Purge - by Caio Oliveira This script will only keep three versions: the first and the last two, others will be purge ---Current version: L

要移除旧内核,运行以下命令:

  1. $ do-kernel-purge
  2.  
  3. Ubuntu Kernel Purge - by Caio Oliveira
  4.  
  5. This script will only keep three versions: the first and the last two, others will be purge
  6.  
  7. ---Current version:
  8. Linux Kernel 4.16.7-041607 Generic (linux-image-4.16.7-041607-generic)
  9.  
  10. ---Versions to remove:
  11. 4.13.0-16
  12. 4.13.0-17
  13. 4.13.0-32
  14. 4.13.0-36
  15. 4.13.0-37
  16.  
  17. ---Do you want to remove the old kernels/headers versions? (Y/n): y
  18. Reading package lists... Done
  19. Building dependency tree
  20. Reading state information... Done
  21. The following packages were automatically installed and are no longer required:
  22. linux-headers-4.13.0-17 linux-headers-4.13.0-17-generic linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-headers-4.13.0-37
  23. linux-headers-4.13.0-37-generic linux-image-4.13.0-17-generic linux-image-4.13.0-32-generic linux-image-4.13.0-36-generic linux-image-4.13.0-37-generic linux-image-extra-4.13.0-17-generic
  24. linux-image-extra-4.13.0-32-generic linux-image-extra-4.13.0-36-generic linux-image-extra-4.13.0-37-generic
  25. Use 'sudo apt autoremove' to remove them.
  26. The following packages will be REMOVED:
  27. linux-headers-4.13.0-16* linux-headers-4.13.0-16-generic* linux-image-4.13.0-16-generic* linux-image-extra-4.13.0-16-generic*
  28. 0 upgraded, 0 newly installed, 4 to remove and 71 not upgraded.
  29. After this operation, 318 MB disk space will be freed.
  30. (Reading database ... 465582 files and directories currently installed.)
  31. Removing linux-headers-4.13.0-16-generic (4.13.0-16.19) ...
  32. Removing linux-headers-4.13.0-16 (4.13.0-16.19) ...
  33. Removing linux-image-extra-4.13.0-16-generic (4.13.0-16.19) ...
  34. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-16-generic /boot/vmlinuz-4.13.0-16-generic
  35. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-16-generic /boot/vmlinuz-4.13.0-16-generic
  36. update-initramfs: Generating /boot/initrd.img-4.13.0-16-generic
  37. run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-16-generic /boot/vmlinuz-4.13.0-16-generic
  38. run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-16-generic /boot/vmlinuz-4.13.0-16-generic
  39. run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-16-generic /boot/vmlinuz-4.13.0-16-generic
  40. Generating grub configuration file ...
  41. Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
  42. Found linux image: /boot/vmlinuz-4.16.7-041607-generic
  43. Found initrd image: /boot/initrd.img-4.16.7-041607-generic
  44. Found linux image: /boot/vmlinuz-4.13.0-39-generic
  45. Found initrd image: /boot/initrd.img-4.13.0-39-generic
  46. Found linux image: /boot/vmlinuz-4.13.0-38-generic
  47. Found initrd image: /boot/initrd.img-4.13.0-38-generic
  48. Found linux image: /boot/vmlinuz-4.13.0-37-generic
  49. Found initrd image: /boot/initrd.img-4.13.0-37-generic
  50. Found linux image: /boot/vmlinuz-4.13.0-36-generic
  51. Found initrd image: /boot/initrd.img-4.13.0-36-generic
  52. Found linux image: /boot/vmlinuz-4.13.0-32-generic
  53. Found initrd image: /boot/initrd.img-4.13.0-32-generic
  54. Found linux image: /boot/vmlinuz-4.13.0-17-generic
  55. Found initrd image: /boot/initrd.img-4.13.0-17-generic
  56. Found linux image: /boot/vmlinuz-4.13.0-16-generic
  57. Found initrd image: /boot/initrd.img-4.13.0-16-generic
  58. Found memtest86+ image: /boot/memtest86+.elf
  59. Found memtest86+ image: /boot/memtest86+.bin
  60. done
  61. Removing linux-image-4.13.0-16-generic (4.13.0-16.19) ...
  62. Examining /etc/kernel/postrm.d .
  63. run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-16-generic /boot/vmlinuz-4.13.0-16-generic
  64. update-initramfs: Deleting /boot/initrd.img-4.13.0-16-generic
  65. run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-16-generic /boot/vmlinuz-4.13.0-16-generic
  66. Generating grub configuration file ...
  67. Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
  68. Found linux image: /boot/vmlinuz-4.16.7-041607-generic
  69. Found initrd image: /boot/initrd.img-4.16.7-041607-generic
  70. Found linux image: /boot/vmlinuz-4.13.0-39-generic
  71. Found initrd image: /boot/initrd.img-4.13.0-39-generic
  72. Found linux image: /boot/vmlinuz-4.13.0-38-generic
  73. Found initrd image: /boot/initrd.img-4.13.0-38-generic
  74. Found linux image: /boot/vmlinuz-4.13.0-37-generic
  75. Found initrd image: /boot/initrd.img-4.13.0-37-generic
  76. Found linux image: /boot/vmlinuz-4.13.0-36-generic
  77. Found initrd image: /boot/initrd.img-4.13.0-36-generic
  78. Found linux image: /boot/vmlinuz-4.13.0-32-generic
  79. Found initrd image: /boot/initrd.img-4.13.0-32-generic
  80. Found linux image: /boot/vmlinuz-4.13.0-17-generic
  81. Found initrd image: /boot/initrd.img-4.13.0-17-generic
  82. Found memtest86+ image: /boot/memtest86+.elf
  83. Found memtest86+ image: /boot/memtest86+.bin
  84. done
  85. (Reading database ... 430635 files and directories currently installed.)
  86. Purging configuration files for linux-image-extra-4.13.0-16-generic (4.13.0-16.19) ...
  87. Purging configuration files for linux-image-4.13.0-16-generic (4.13.0-16.19) ...
  88. Examining /etc/kernel/postrm.d .
  89. run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-16-generic /boot/vmlinuz-4.13.0-16-generic
  90. run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-16-generic /boot/vmlinuz-4.13.0-16-generic
  91. Reading package lists... Done
  92. Building dependency tree
  93. Reading state information... Done
  94. .
  95. .
  96. .
  97. .
  98. Reading package lists... Done
  99. Building dependency tree
  100. Reading state information... Done
  101. The following packages will be REMOVED:
  102. linux-headers-4.13.0-37* linux-headers-4.13.0-37-generic* linux-image-4.13.0-37-generic* linux-image-extra-4.13.0-37-generic*
  103. 0 upgraded, 0 newly installed, 4 to remove and 71 not upgraded.
  104. After this operation, 321 MB disk space will be freed.
  105. (Reading database ... 325772 files and directories currently installed.)
  106. Removing linux-headers-4.13.0-37-generic (4.13.0-37.42) ...
  107. Removing linux-headers-4.13.0-37 (4.13.0-37.42) ...
  108. Removing linux-image-extra-4.13.0-37-generic (4.13.0-37.42) ...
  109. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
  110. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
  111. update-initramfs: Generating /boot/initrd.img-4.13.0-37-generic
  112. run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
  113. run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
  114. run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
  115. Generating grub configuration file ...
  116. Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
  117. Found linux image: /boot/vmlinuz-4.16.7-041607-generic
  118. Found initrd image: /boot/initrd.img-4.16.7-041607-generic
  119. Found linux image: /boot/vmlinuz-4.13.0-39-generic
  120. Found initrd image: /boot/initrd.img-4.13.0-39-generic
  121. Found linux image: /boot/vmlinuz-4.13.0-38-generic
  122. Found initrd image: /boot/initrd.img-4.13.0-38-generic
  123. Found linux image: /boot/vmlinuz-4.13.0-37-generic
  124. Found initrd image: /boot/initrd.img-4.13.0-37-generic
  125. Found memtest86+ image: /boot/memtest86+.elf
  126. Found memtest86+ image: /boot/memtest86+.bin
  127. done
  128. Removing linux-image-4.13.0-37-generic (4.13.0-37.42) ...
  129. Examining /etc/kernel/postrm.d .
  130. run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
  131. update-initramfs: Deleting /boot/initrd.img-4.13.0-37-generic
  132. run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
  133. Generating grub configuration file ...
  134. Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
  135. Found linux image: /boot/vmlinuz-4.16.7-041607-generic
  136. Found initrd image: /boot/initrd.img-4.16.7-041607-generic
  137. Found linux image: /boot/vmlinuz-4.13.0-39-generic
  138. Found initrd image: /boot/initrd.img-4.13.0-39-generic
  139. Found linux image: /boot/vmlinuz-4.13.0-38-generic
  140. Found initrd image: /boot/initrd.img-4.13.0-38-generic
  141. Found memtest86+ image: /boot/memtest86+.elf
  142. Found memtest86+ image: /boot/memtest86+.bin
  143. done
  144. (Reading database ... 290810 files and directories currently installed.)
  145. Purging configuration files for linux-image-extra-4.13.0-37-generic (4.13.0-37.42) ...
  146. Purging configuration files for linux-image-4.13.0-37-generic (4.13.0-37.42) ...
  147. Examining /etc/kernel/postrm.d .
  148. run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
  149. run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
  150.  
  151. Thanks for using this script!!!

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读