본문 바로가기

programming/Linux

우분투 커널 5.0 업그레이드 [How to upgrade linux Kernel 5.0 on ubuntu 18.04 LTS with ukuu]

 

해당 kernel upgrade는 간단하고 빠른 설치방법입니다. kernel source를 편집하거나 kernel source에서 모듈을 추가하거나 안정적인 동작을 원하시는 분들은 kernel complie을 통한 kernel upgrade를 추천해드립니다. 

2019/05/31 - [프로그래밍/Linux] - How to upgrade linux Kernel 5.0~ on ubuntu 18.04 LTS withkernel compile

 

How to upgrade linux Kernel 5.0~ on ubuntu 18.04 LTS withkernel compile

전에 작성한 ukuu를 사용한 방법보다 추천하는 방법이다. 이유는 kernel source를 직접 다룰수 있고 커널에 필요한 모듈이 있으면 source해당 디렉토리에서 make하고 바로 insmod 할 수 있기 때문이다. 커널 소스..

jjudrgn.tistory.com


다운로드 >> Download here >>

https://launchpad.net/~teejee2008/+archive/ubuntu/ppa/+packages?batch=75&memo=75&start=75

[if your server is 64 bit, click the amd64 file] 

위 사이트에 들어가서 ukuu를 다운로드한다. 

 

dpkg를 이용해서 파일 압출을 푼다.

$ cd Downloads/


$ Downloads$ ls 
ukuu_18.9.3-0_201902031503_ubuntu18.04.1_amd64.deb 



$ sudo dpkg -i ukuu_18.9.3-0_201902031503_ubuntu18.04.1_amd64.deb  
Selecting previously unselected package ukuu. 
(Reading database ... 293418 files and directories currently installed.) 
Preparing to unpack ukuu_18.9.3-0_201902031503_ubuntu18.04.1_amd64.deb ... 


dpkg에서 에러가 뜬다면 아래와 같은 방법으로 해결한다.

$ sudo apt install aptitude 
 ukuu : Depends: aria2 but it is not going to be installed 
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). 

...



$ sudo apt --fix-broken install 
Reading package lists... Done 
Building dependency tree        
Reading state information... Done 

...

 

무튼 dpkg로 압출을 풀고 ukuu를 실행하면 리눅스 버전정보를 알수있다.

$ sudo dpkg -i ukuu_18.9.3-0_201902031503_ubuntu18.04.1_amd64.deb  
(Reading database ... 293508 files and directories currently installed.) 
Preparing to unpack ukuu_18.9.3-0_201902031503_ubuntu18.04.1_amd64.deb ... 
Unpacking ukuu (18.9.3-0~201902031503~ubuntu18.04.1) over (18.9.3-0~201902031503~ubuntu18.04.1) ... 
...



$ ukuu 
ukuu v18.9.3 
Distribution: Ubuntu 18.04.2 LTS 
Architecture: amd64 
Running kernel: 4.19.0 
Kernel version: 4.19.0.1 
...



$ ukuu --check



ukuu v18.9.3



Distribution: Ubuntu 18.04.2 LTS



Architecture: amd64



Running kernel: 4.19.0



Kernel version: 4.19.0.1



Cache: /home/jy-os/.cache/ukuu



Temp: /tmp/ukuu/U3bNRaWT



aria2c version: 1.33.1



Fetching index from kernel.ubuntu.com...



OK 




Fetching index... 

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100 %   




----------------------------------------------------------------------



Found installed: 4.15.0-43.46



Found installed: 4.15.0-50.54



Found installed: 1.0



Found installed: 4.15.0.50.52



Found installed: 4.15.0.50.71



----------------------------------------------------------------------



Latest update: 5.1.4



Latest point update: 4.19.45



----------------------------------------------------------------------

 

ukuu --install 버전이름을 통해서 특정버전을 설치할 수 있고 최신버전도 설치할 수 있다. 

jy-os@jyos-desktop:~/Downloads$ sudo ukuu --install v5.0



ukuu v18.9.3



Distribution: Ubuntu 18.04.2 LTS



Architecture: amd64



Running kernel: 4.19.0



Kernel version: 4.19.0.1



Cache: /home/jy-os/.cache/ukuu



Temp: /tmp/ukuu/9feYpPDJ



aria2c version: 1.33.1 




Fetching index... 




▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100 %  




----------------------------------------------------------------------



Found installed: 4.15.0-43.46



Found installed: 4.15.0-50.54



Found installed: 1.0



Found installed: 4.15.0.50.52



Found installed: 4.15.0.50.71



---------------------------------------------------------------------- 




Downloading: 'linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb'...







OK                                                                     




Downloading: 'linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb'...







OK                                                                     




Downloading: 'linux-image-unsigned-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb'...







OK                                                                     




Downloading: 'linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb'...







OK                                                                    



Preparing to install 'v5.0' 




Selecting previously unselected package linux-modules-5.0.0-050000-generic.



(Reading database ... 293508 files and directories currently installed.)



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) ...



Selecting previously unselected package linux-headers-5.0.0-050000-generic.



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) ...



Selecting previously unselected package linux-image-unsigned-5.0.0-050000-generic.



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) ...



Selecting previously unselected package linux-headers-5.0.0-050000.



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) ...



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) ...



I: /vmlinuz.old



 is now a symlink to boot/vmlinuz-4.15.0-50-generic



I: /initrd.img.old



 is now a symlink to boot/initrd.img-4.15.0-50-generic



I: /vmlinuz is now a symlink to boot/vmlinuz-5.0.0-050000-generic



I: /initrd.img



 is now a symlink to boot/initrd.img-5.0.0-050000-generic



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) ...



/etc/kernel/header_postinst.d/dkms:



Secure Boot not enabled on this system.



Warning: Unable to find an initial ram disk that I know how to handle.



Will not try to make an initrd.



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/zz-update-grub:



Sourcing file `/etc/default/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.19.0



Found initrd image: /boot/initrd.img-4.19.0



Found linux image: /boot/vmlinuz-4.19.0.old



Found initrd image: /boot/initrd.img-4.19.0



Found linux image: /boot/vmlinuz-4.15.0-50-generic



Found initrd image: /boot/initrd.img-4.15.0-50-generic



Found linux image: /boot/vmlinuz-4.15.0-43-generic



Found initrd image: /boot/initrd.img-4.15.0-43-generic



Adding boot menu entry for EFI firmware configuration



done 




Updating GRUB menu



Sourcing file `/etc/default/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.19.0



Found initrd image: /boot/initrd.img-4.19.0



Found linux image: /boot/vmlinuz-4.19.0.old



Found initrd image: /boot/initrd.img-4.19.0



Found linux image: /boot/vmlinuz-4.15.0-50-generic



Found initrd image: /boot/initrd.img-4.15.0-50-generic



Found linux image: /boot/vmlinuz-4.15.0-43-generic



Found initrd image: /boot/initrd.img-4.15.0-43-generic



Adding boot menu entry for EFI firmware configuration



done



Installation completed. A reboot is required to use the new kernel.









jy-os@jyos-desktop:~$ uname -r 
5.0.0-050000-generic