Today I need to upgrade my Ubuntu box from kernel 2.6 to 3.13, here are my few notes:
1. Check the current kernel
root@xxx:~# uname -r
2.6.32-042stab108.5
2. Update your box
root@xxx:~# apt-get update
3. Search for the kernel image
Shell
root@xxx:~# apt-cache search linux-image
alsa-base - ALSA driver configuration files
linux-image-3.13.0-24-generic - Linux kernel image for version 3.13.0 on 64 bit x86 SMP
linux-image-3.13.0-24-lowlatency - Linux kernel image for version 3.13.0 on 64 bit x86 SMP
linux-image-extra-3.13.0-24-generic - Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
linux-image-extra-virtual - Transitional package.
linux-image-generic - Generic Linux kernel image
linux-image-generic-lts-quantal - Generic Linux kernel image
linux-image-generic-lts-raring - Generic Linux kernel image
linux-image-generic-lts-saucy - Generic Linux kernel image
linux-image-generic-lts-trusty - Generic Linux kernel image
linux-image-lowlatency - lowlatency Linux kernel image
linux-image-server - Transitional package.
linux-image-virtual - This package will always depend on the latest minimal generic kernel image.
linux-virtual - Minimal Generic Linux kernel and headers
linux-image-generic-pae - Transitional package
linux-image-lowlatency-pae - Transitional package
4. For example, I will install linux-image-extra-3.13.0-24-generic
root@xxx:~# apt-get install linux-image-extra-3.13.0-24-generic
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
crda dmsetup grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw libdevmapper1.02.1 libfuse2
linux-image-3.13.0-24-generic os-prober wireless-regdb
Suggested packages:
multiboot-doc grub-emu xorriso desktop-base fuse fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
linux-headers-3.13.0-24-generic
The following NEW packages will be installed:
crda dmsetup grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw libdevmapper1.02.1 libfuse2
linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-generic os-prober wireless-regdb
0 upgraded, 14 newly installed, 0 to remove and 172 not upgraded.
Need to get 55.2 MB of archives.
After this operation, 211 MB of additional disk space will be used.
Do you want to continue? [Y/n]
5. Reboot, and you are done !