커널을 다시 설치할 수 없거나 최신 버전을 사용할 수 없습니다

커널을 다시 설치할 수 없거나 최신 버전을 사용할 수 없습니다

우분투 서버에서 "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입니다. 나는 팔로우한다이 솔루션. 제어판에서 커널 버전을 변경하고 제어판을 통해 재부팅해야 했습니다.

관련 정보