I read your tutorial about compiling a stable version of the Linux kernel on a Ubuntu/Debian Linux. I wanted to install the same using apt- get command. How can I install the latest (mainline) Linux kernel on Ubuntu Linux? Installing a brand new kernel on server or desktop is not recommended. The latest version might be buggy and can crash your system. However, if you need the latest version try the following instructions. ![]() Method #1: Search and install the latest stable version. I tested this method on the following version of Ubuntu: $ lsb_release - a. No LSB modules are available. Distributor ID: Ubuntu. Description: Ubuntu 1. I read your tutorial about compiling a stable version of the Linux kernel on a Ubuntu/Debian Linux. I wanted to install the same using apt-get command.LTS. Codename: xenial. To find out your current version of Linux kernel, run: $ uname - mrs. Linux 4. 4. 0- 8. To find out the latest version of Linux kernel type: $ apt- cache search linux- generic. Sample outputs: linux- generic - Complete Generic Linux kernel and headers. Complete Generic Linux kernel and headers (dummy transitional package). Complete Generic Linux kernel and headers (dummy transitional package). Complete Generic Linux kernel and headers (dummy transitional package). Complete Generic Linux kernel and headers (dummy transitional package). Linux kernel image for version 4. SMP. linux- image- extra- 4. Linux kernel extra modules for version 4. SMP. linux- generic- hwe- 1. Complete Generic Linux kernel and headers. Complete Generic Linux kernel and headers.
![]() ![]() Official CD/DVD images of the stable release. To install Debian on a machine without an Internet connection, it's possible to use CD images (650 MB each) or DVD. Linux kernel image for version 4. SMP. linux- image- 4. Linux kernel image for version 4. SMP. linux- image- 4. Linux kernel image for version 4. SMP. linux- image- 4. Linux kernel image for version 4. SMP. linux- image- 4. Linux kernel image for version 4. SMP. linux- image- 4. Linux kernel image for version 4. SMP. linux- image- 4. Linux kernel image for version 4. SMP. linux- image- 4. Linux kernel image for version 4. SMPThe highest possible version is 4. To install it just type the following apt- get command/apt command: $ sudo apt install linux- image- 4. OR$ sudo apt- get install linux- image- 4. Sample outputs: Reading package lists.. Done. Building dependency tree. Reading state information.. Done. The following packages were automatically installed and are no longer required. Use 'apt autoremove' to remove them. Suggested packages. The following NEW packages will be installed. Need to get 0 B/2. MB of archives. After this operation, 7. MB of additional disk space will be used. Selecting previously unselected package linux- image- 4. Reading database .. Preparing to unpack ../linux- image- 4. Unpacking linux- image- 4. Setting up linux- image- 4. Running depmod. update- initramfs: deferring update (hook will be called later). Examining /etc/kernel/postinst. Generating /boot/initrd. W: mdadm: /etc/mdadm/mdadm. Searching for GRUB installation directory .. Searching for default file .. Testing for an existing GRUB menu. Searching for splash image .. Found kernel: /vmlinuz- 4. Found kernel: /vmlinuz- 4. Found kernel: /vmlinuz- 4. Found kernel: /vmlinuz- 4. Found kernel: /vmlinuz- 4. Replacing config file /run/grub/menu. Updating /boot/grub/menu. Reading package lists.. Done. Building dependency tree. Reading state information.. Done. The following packages were automatically installed and are no longer required. Use 'apt autoremove' to remove them. Suggested packages. The following NEW packages will be installed. Need to get 0 B/2. MB of archives. After this operation, 7. MB of additional disk space will be used. Selecting previously unselected package linux- image- 4. Reading database .. Preparing to unpack ../linux- image- 4. Unpacking linux- image- 4. Setting up linux- image- 4. Running depmod. update- initramfs: deferring update (hook will be called later). Examining /etc/kernel/postinst. Generating /boot/initrd. W: mdadm: /etc/mdadm/mdadm. Searching for GRUB installation directory .. Searching for default file .. Testing for an existing GRUB menu. Searching for splash image .. Found kernel: /vmlinuz- 4. Found kernel: /vmlinuz- 4. Found kernel: /vmlinuz- 4. Found kernel: /vmlinuz- 4. Found kernel: /vmlinuz- 4. Replacing config file /run/grub/menu. Updating /boot/grub/menu. You must reboot the Linux server, run: $ rm *. Verify new version: $ uname - mrs. Linux 4. 1. 0. 0- 2. Method #2: Install mainline kernel version v. First, if one is using select proprietary or out- of- tree modules (ex. If you do not uninstall these modules first, then the upstream kernel more than likely will not boot. First visit kernel. Fig. 0. 1: Note down kernel version. Next visit the following url and search for the Linux kernel version 4. Fig. 0. 2: Downloading the latest build of mainline kernel. Use the wget command to grab the files: $ wget http: //kernel. To verify the mainline build binaries, run: $ wget http: //kernel. CHECKSUMS$ sha. 25. CHECKSUMSSample outputs: linux- headers- 4. OK. linux- image- 4. OK. sha. 25. 6sum: WARNING: 2. You must see OK for all downloaded . Next, you need to install . You must reboot the Linux server, run: $ sudo reboot. Verify new version: $ uname - mrs. Linux 4. 1. 2. 3- 0. A note about updating mainline kernel. You must visit and download the latest version from the following url: http: //kernel. For example, download v. CHECKSUMS$ sha. 25. CHECKSUMS$ sudo dpkg - i *. Posted by: Vivek Gite The author is the creator of nix. Craft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |