ວິທີການຕິດຕັ້ງ Kernel 5.0 ຫຼ້າສຸດໃນ Ubuntu


ແຕ່ລະໄລຍະ, ອຸປະກອນແລະເຕັກໂນໂລຢີ ໃໝ່ ອອກມາແລະມັນເປັນສິ່ງ ສຳ ຄັນທີ່ຈະຮັກສາລະບົບ Linux ຂອງພວກເຮົາໃຫ້ທັນສະ ໄໝ ຖ້າພວກເຮົາຕ້ອງການໃຫ້ມີປະໂຫຍດສູງສຸດ.

ຍິ່ງໄປກວ່ານັ້ນ, ການປັບປຸງລະບົບ kernel ຈະຊ່ວຍໃຫ້ພວກເຮົາສາມາດໃຊ້ປະໂຫຍດຈາກ ໜ້າ ທີ່ ໃໝ່ ຂອງ kernel ແລະມັນຍັງຊ່ວຍໃຫ້ພວກເຮົາປົກປ້ອງຕົວເອງຈາກຄວາມອ່ອນແອທີ່ພົບໃນລຸ້ນກ່ອນ ໜ້າ ນີ້.

ກຽມພ້ອມທີ່ຈະອັບເດດແກ່ນຂອງທ່ານໃນ Ubuntu ແລະ Debian ຫຼື ໜຶ່ງ ໃນອະນຸພັນຂອງພວກມັນເຊັ່ນ Linux Mint? ຖ້າເປັນດັ່ງນັ້ນ, ສືບຕໍ່ອ່ານ!

ກວດເບິ່ງເວີຊັນ Kernel ທີ່ຖືກຕິດຕັ້ງແລ້ວ

ເພື່ອຊອກຫາສະບັບຂອງແກ່ນທີ່ຕິດຕັ້ງຢູ່ໃນລະບົບຂອງພວກເຮົາພວກເຮົາສາມາດເຮັດໄດ້:

$ uname -sr

ຕໍ່ໄປນີ້ສະແດງໃຫ້ເຫັນຜົນຜະລິດຂອງ ຄຳ ສັ່ງຂ້າງເທິງນີ້ໃນ server 18.04 ຂອງ server:

Linux 4.15.0-42-generic

ການຍົກລະດັບ Kernel ໃນ Ubuntu Server

ເພື່ອຍົກລະດັບເມັດໃນ Ubuntu, ເຂົ້າໄປທີ່ http://kernel.ubuntu.com/~kernel-ppa/mainline/ ແລະເລືອກລຸ້ນທີ່ຕ້ອງການ (Kernel 5.0 ແມ່ນລ້າສຸດໃນເວລາຂຽນ) ຈາກລາຍຊື່ໂດຍກົດທີ່ມັນ .

ຕໍ່ໄປ, ດາວໂຫລດເອກະສານ .deb ສຳ ລັບສະຖາປັດຕະຍະ ກຳ ຂອງລະບົບຂອງທ່ານໂດຍໃຊ້ wget ຄຳ ສັ່ງ.

$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-image-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-image-unsigned-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb

ເມື່ອທ່ານໄດ້ດາວໂຫລດແຟ້ມແກ່ນທັງ ໝົດ ຂ້າງເທິງ, ດຽວນີ້ຕິດຕັ້ງພວກມັນດັ່ງຕໍ່ໄປນີ້:

$ sudo dpkg -i *.deb
(Reading database ... 140176 files and directories currently installed.)
Preparing to unpack linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb ...
Unpacking linux-headers-5.0.0-050000 (5.0.0-050000.201903032031) over (5.0.0-050000.201903032031) ...
Preparing to unpack linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb ...
Unpacking linux-headers-5.0.0-050000-generic (5.0.0-050000.201903032031) over (5.0.0-050000.201903032031) ...
Preparing to unpack linux-image-unsigned-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb ...
Unpacking linux-image-unsigned-5.0.0-050000-generic (5.0.0-050000.201903032031) over (5.0.0-050000.201903032031) ...
Selecting previously unselected package linux-modules-5.0.0-050000-generic.
Preparing to unpack linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb ...
Unpacking linux-modules-5.0.0-050000-generic (5.0.0-050000.201903032031) ...
Setting up linux-headers-5.0.0-050000 (5.0.0-050000.201903032031) ...
Setting up linux-headers-5.0.0-050000-generic (5.0.0-050000.201903032031) ...
Setting up linux-modules-5.0.0-050000-generic (5.0.0-050000.201903032031) ...
Setting up linux-image-unsigned-5.0.0-050000-generic (5.0.0-050000.201903032031) ...
Processing triggers for linux-image-unsigned-5.0.0-050000-generic (5.0.0-050000.201903032031) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.0.0-050000-generic
/etc/kernel/postinst.d/x-grub-legacy-ec2:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-4.15.0-42-generic
Found kernel: /boot/vmlinuz-4.15.0-29-generic
Found kernel: /boot/vmlinuz-5.0.0-050000-generic
Found kernel: /boot/vmlinuz-4.15.0-42-generic
Found kernel: /boot/vmlinuz-4.15.0-29-generic
Replacing config file /run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.0.0-050000-generic
Found initrd image: /boot/initrd.img-5.0.0-050000-generic
Found linux image: /boot/vmlinuz-4.15.0-42-generic
Found initrd image: /boot/initrd.img-4.15.0-42-generic
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
done

ເມື່ອການຕິດຕັ້ງ ສຳ ເລັດແລ້ວ, reboot ເຄື່ອງຂອງທ່ານແລະກວດສອບວ່າລຸ້ນ ໃໝ່ ກຳ ລັງໃຊ້ຢູ່:

$ uname -sr

ແລະນັ້ນແມ່ນມັນ. ດຽວນີ້ທ່ານ ກຳ ລັງໃຊ້ຮຸ່ນ kernel ໃໝ່ ກວ່າລຸ້ນທີ່ຕິດຕັ້ງໂດຍຄ່າກັບ Ubuntu.

ໃນບົດຄວາມນີ້ພວກເຮົາໄດ້ສະແດງວິທີການຍົກລະດັບ Linux Linux ໃນລະບົບ Ubuntu. ຍັງມີຂັ້ນຕອນອື່ນອີກທີ່ພວກເຮົາບໍ່ໄດ້ສະແດງຢູ່ທີ່ນີ້ຍ້ອນວ່າມັນຮຽກຮ້ອງໃຫ້ມີການລວບລວມເມັດຈາກແຫຼ່ງຂໍ້ມູນ, ເຊິ່ງບໍ່ໄດ້ຖືກແນະ ນຳ ໃຫ້ຜະລິດໃນລະບົບ Linux.

ຖ້າທ່ານຍັງສົນໃຈທີ່ຈະລວບລວມແກ່ນເປັນປະສົບການການຮຽນຮູ້, ທ່ານຈະໄດ້ຮັບ ຄຳ ແນະ ນຳ ກ່ຽວກັບວິທີເຮັດມັນຢູ່ ໜ້າ Kernel Newbies.

ໃນຖານະເປັນສະເຫມີ, ຮູ້ສຶກບໍ່ເສຍຄ່າທີ່ຈະໃຊ້ແບບຟອມຂ້າງລຸ່ມນີ້ຖ້າທ່ານມີຄໍາຖາມຫຼືຄໍາເຫັນກ່ຽວກັບບົດຄວາມນີ້.