uname 显示卸载的内核版本

uname 显示卸载的内核版本

这是我的系统上安装的内核版本的列表:

bwvdnbro@wixie:~$ dpkg -l | grep linux-image
ii  linux-image-3.13.0-73-generic                         3.13.0-73.116                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-74-generic                         3.13.0-74.118                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-76-generic                         3.13.0-76.120                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-77-generic                         3.13.0-77.121                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-79-generic                         3.13.0-79.123                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-83-generic                         3.13.0-83.127                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-85-generic                         3.13.0-85.129                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-86-generic                         3.13.0-86.131                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-87-generic                         3.13.0-87.133                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-88-generic                         3.13.0-88.135                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-91-generic                         3.13.0-91.138                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-73-generic                   3.13.0-73.116                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-74-generic                   3.13.0-74.118                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-76-generic                   3.13.0-76.120                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-77-generic                   3.13.0-77.121                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-79-generic                   3.13.0-79.123                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-83-generic                   3.13.0-83.127                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-85-generic                   3.13.0-85.129                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-86-generic                   3.13.0-86.131                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-87-generic                   3.13.0-87.133                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-88-generic                   3.13.0-88.135                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-91-generic                   3.13.0-91.138                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-generic                                   3.13.0.91.97                                        amd64        Generic Linux kernel image

但是,uname 的输出是

bwvdnbro@wixie:~$ uname -a
Linux wixie 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

据我所知,这个内核没有安装。这怎么可能?我刚刚重启了电脑,所以当前运行的内核应该是最后安装的内核。

答案1

如果你没有手动安装它,那么它的包名称是linux-image*。也就是说你在列表中看不到它dpkg -l | grep linux-image

  1. /boot检查文件夹中所有内核确实存在

    ls -l /boot/
    
  2. 使用检查其包

    dpkg -S /boot/<kernel-filename>
    

有其他相同版本的内核包,请参阅packages.ubuntu.com

相关内容