DigitalOcean 上的 Ubuntu 未使用最新内核

DigitalOcean 上的 Ubuntu 未使用最新内核

在 digialocean 的 VPS 上,我安装了一些 Linux 内核。执行以下命令后得到以下结果sudo update-grub

Found linux image: /boot/vmlinuz-3.16.2-031602-generic
Found initrd image: /boot/initrd.img-3.16.2-031602-generic
Found linux image: /boot/vmlinuz-3.16.0-30-lowlatency
Found initrd image: /boot/initrd.img-3.16.0-30-lowlatency
Found linux image: /boot/vmlinuz-3.16.0-30-generic
Found initrd image: /boot/initrd.img-3.16.0-30-generic
Found linux image: /boot/vmlinuz-3.16.0-29-generic
Found initrd image: /boot/initrd.img-3.16.0-29-generic
Found linux image: /boot/vmlinuz-3.13.0-52-generic
Found initrd image: /boot/initrd.img-3.13.0-52-generic
Found linux image: /boot/vmlinuz-3.13.0-37-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-37-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-36-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-36-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-34-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-34-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-33-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-33-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-32-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-32-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-30-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-30-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-29-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-29-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-27-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-27-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-24-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-24-lowlatency
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin

以下是所用内核的版本:

$ uname -r
3.8.0-38-generic

我尝试过更新和升级,也尝试过这个

sudo apt-get install linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic 

这导致了此问题:

$ sudo depmod
depmod: ERROR: could not open directory /lib/modules/3.8.0-38-generic: No such file or directory

你有解决方案吗?depmod:严重错误:无法搜索模块:没有此文件或目录

答案1

我找到了解决方案。我遵循此解决方案。我不得不在控制面板中更改内核版本,然后通过控制面板重新启动。

相关内容