티스토리 뷰

 Ubuntu 18.04 커널 업데이트 방법

https://www.kernel.org/

uname -r

커널 버전은 5.4.0-109- generic 로 보이네요

apt-get install    linux-image-5.4.0-1072-aws   -o Dpkg::Options::="--force-confnew" --force-yes -fuy 

이제 apt-cache 명령어로 설치할 커널을 찾아봅시다.


혹여나나 찾을수 없을경우엔...
wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux-aws-5.4/linux-modules-extra-5.4.0-1072-aws_5.4.0-1072.77~18.04.1_amd64.deb
쉘로 짠다면

#!/bin/bash

uname -r
apt-cache search linux-image-5.4
sed -i 's/0/1/g' /etc/apt/apt.conf.d/20auto-upgrades;
cat /etc/apt/apt.conf.d/20auto-upgrades
apt update
apt install linux-image-5.4.0-1072-aws

#grub 화면 안띄우기 옵션
unset UCF_FORCE_CONFFOLD
export UCF_FORCE_CONFFNEW=YES
ucf --purge /boot/grub/menu.lst
export DEBIAN_FRONTEND=noninteractive

apt-get install    linux-image-5.4.0-1072-aws   -o Dpkg::Options::="--force-confnew" --force-yes -fuy 
reboot
apt-cache search linux-image-5.4

이 중에 설치할 커널을 선택 후 아래 apt 명령어로 설치해줍니다.

apt-get install  linux-image-5.4.0-1072-aws

y를 눌러 계속 진행합니다.

소요 시간은 약 1분 내외로 진행 됩니다.

 

커널 업데이트 확인 

 

지금까지 커널 업데이트 방법이였습니다. 

 

 

감사합니다. 

 

 

댓글