Question
ubuntu 14.04 uname reports wrong kernel version
Hi I am running a digital ocean ubuntu 14.04 image. For some reason uname cmd reports 3.13.0-24 when the actual kernel should be 3.13.0-62.
bailey@bailey01 -> uname -mrs
Linux 3.13.0-24-generic x86_64
My system is up to date with the latest pkgs. The later kernel headers are available
bailey@bailey01 -> dpkg -l|grep linux-headers
ii linux-headers-3.13.0-62 3.13.0-62.102 all Header files related to Linux kernel version 3.13.0
ii linux-headers-3.13.0-62-generic 3.13.0-62.102 amd64 Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii linux-headers-generic 3.13.0.62.69 amd64 Generic Linux kernel headers
/boot/ has the correct files
bailey@bailey01 -> pwd;ls -l
/boot
total 29740
-rw-r--r-- 1 root root 1165261 Aug 12 04:15 abi-3.13.0-62-generic
-rw-r--r-- 1 root root 165763 Aug 12 04:15 config-3.13.0-62-generic
drwxr-xr-x 5 root root 4096 Aug 27 13:20 grub
-rw-r--r-- 1 root root 19351558 Aug 26 22:08 initrd.img-3.13.0-62-generic
-rw-r--r-- 1 root root 176500 Mar 13 2014 memtest86+.bin
-rw-r--r-- 1 root root 178176 Mar 13 2014 memtest86+.elf
-rw-r--r-- 1 root root 178680 Mar 13 2014 memtest86+_multiboot.bin
-rw------- 1 root root 3392306 Aug 12 04:15 System.map-3.13.0-62-generic
-rw------- 1 root root 5820896 Aug 12 04:15 vmlinuz-3.13.0-62-generic
I ran an update on the grub config using two different commands (grub-mkconfig and update-grub)
sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-62-generic
Found initrd image: /boot/initrd.img-3.13.0-62-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
I rebooted the server after the mkconfig.
This started when I tried to configure iptables and received errors pointing to this erroneous kernel version
bailey@bailey01 -> sudo iptables -L
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.13.0-24-generic/modules.dep.bin'
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
A google search has not returned any links that were helpful.
Help me Obi Wan Kenobi you are my last hope 8-)
Cheers
-mike
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×