When we first select the server image, we may seldom manage the image version after the subsequent software deployment. However, with the subsequent patch of the image system and the security needs of the upgrade, we need to upgrade the kernel and image to ensure the security of the server.
1. Open terminal
Here we use SSH tool to open the server remote.
2. Update Package List
Run the following command to update the list of software packages to ensure that the latest available kernel version information is obtained:
sudo apt update
3. View available kernel versions
Run the following command to view the available kernel versions:
apt search linux-image
4. Install the latest kernel version
Run the following command to install the latest kernel version, where<version>is the kernel version number you want to install:
sudo apt install linux-image-<version>
5. Update GRUB boot menu
Run the following command to update the GRUB boot menu so that the system recognizes the newly installed kernel:
6. Restart the system
After completing the above steps, restart your system to apply the new kernel version:
Please note that updating the kernel may take some time and computing resources, and will take effect after the system restarts. Make sure you back up important data and understand the risks before doing so.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge