เอา Kernel เก่าของ Ubuntu ออก

เวลาอัพเดท kernel ใหม่ Ubuntu จะเก็บ kernel เก่า ๆ ไว้ด้วย เผื่อมีปัญหากับ kernel ใหม่จะได้ใช้ kernel เก่าแทน แต่การอัพเดทหลาย ๆ ครั้งเข้า ทำให้รายการของ kernel ใน grub ยาวเหยียด

ถึงแม้จะแก้ไขใน menu.lst ของ grub ได้ แต่ตอนอัพเดทใหม่ มันก็สร้างขึ้นมาใหม่ตลอด งั้นเอาออกไปเลยดีกว่า

โดย package ที่จะต้องเอาออกก็คือ

  • linux-image-หมายเลขรุ่น-generic
  • linux-restricted-modules-หมายเลขรุ่น-generic
  • linux-headers-หมายเลขรุ่น
  • linux-headers-หมายเลขรุ่น-generic

วิธีเอาออกก็เปิด Synaptic Package Manager ขึ้นมา แล้วค้นหา linux-image- และ linux-headers- หากจำไม่ได้ว่าหมายเลขรุ่นของ kernel อันไหนที่จะเอาออก

Note: อย่าเอา kernel ล่าสุดออกเป็นอันขาด และควรจะเว้น kernel เก่าไว้สักรุ่นเผื่อ kernel ล่าสุดมีปัญหา

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can enable syntax highlighting of source code with the following tags: [code], [blockcode].
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.

More information about formatting options