-->

DEVOPSZONES

  • Recent blogs

    How to Upgrade the Kernel in ubuntu or Linux mint

    How to Upgrade the Kernel in Ubuntu or Linux mint


    Why Upgrade?


    We need to upgrade the kernel for various reasons.
    1. To mitigate the vulnerabilities or bugs in the current Kernel.
    2. To Update system drivers, as the new kernel, contains the latest drivers of your machine.

    As Linux mint is based on Ubuntu, we follow the same steps as in Ubuntu.

    There are 2 ways to upgrade the Kernel.

    1. The Terminal way.


    To do it from command line:

    a. Download the kernal files and upgrade. Visit https://kernel.ubuntu.com/~kernel-ppa/mainline/ to choose a kernal version. If you want to download 4.20.12, try the steps First download the files

    wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.12/linux-headers-4.20.12-042012_4.20.12-042012.201902230431_all.deb
    wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.12/linux-headers-4.20.12-042012-generic_4.20.12-042012.201902230431_amd64.deb
    wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.12/linux-image-unsigned-4.20.12-042012-generic_4.20.12-042012.201902230431_amd64.deb
    wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.12/linux-modules-4.20.12-042012-generic_4.20.12-042012.201902230431_amd64.deb


    b. Now Install

    dpkg -i *.deb

    c. Reboot the server.

    The UKUU Method:


    In this method, we are going to use the UKUU kernel update utility tool to upgrade the kernel. UKUU stands for  “Ubuntu Kernel Upgrade Utility”. UKUU can be used to remove old kernels. UUKU notifies you when there is a new kernel update is available.

    1. Add the PPA for UUKU to the repository and then update the repository.

    apt-add-repository -y ppa:teejee2008/ppa
    apt-get update

    2. Install UUKU using the following command.

    apt-get install ukuu
    3.  Now Just select the kernel and press Install.





    4. Reboot your system to use the new kernel.

    reboot

    5. Once system is up check the installed kernel version.

    uname -sr
    manas@unisonunix:~$ uname -sr
    Linux 4.20.12-042012-generic
    manas@unisonunix:~$

    No comments