カーネルを再インストールできない、または最新バージョンが利用できない

カーネルを再インストールできない、または最新バージョンが利用できない

Ubuntuサーバーで「sudo modprob」を実行しようとしていますが、次のエラーが発生します。

$ sudo depmod
[sudo] password for deployer:
depmod: ERROR: could not open directory /lib/modules/3.8.0-38-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory

カーネルを再インストールしてみましたが、次のような結果が出ました。

$ sudo apt-get install --reinstall linux-headers-3.8.0-38 linux-headers-3.8.0-38-generic linux-image-3.8.0-38-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.8.0-38
E: Couldn't find any package by regex 'linux-headers-3.8.0-38'
E: Unable to locate package linux-headers-3.8.0-38-generic
E: Couldn't find any package by regex 'linux-headers-3.8.0-38-generic'
E: Unable to locate package linux-image-3.8.0-38-generic
E: Couldn't find any package by regex 'linux-image-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

しかし、私はいつも次のような結果を得ます。

$ uname -r
3.8.0-38-generic

なぜ変わらないのかわかりません。

解決策はありますか?

ベストアンサー1

解決策が見つかりました。あまりないと思いますが、私はDigital OceanのVPSです。フォローするこのソリューション。コントロールパネルでカーネルバージョンを変更し、コントロールパネルから再起動する必要がありました。

おすすめ記事