virtualbox를 실행하기 위해 Debian 8.7 VPS에서 커널 업그레이드

virtualbox를 실행하기 위해 Debian 8.7 VPS에서 커널 업그레이드

Debian 8.7(64비트 아키텍처) 컴퓨터에서 virtualbox를 실행하려고 합니다.

vboxconfig 명령을 제출할 때:

/sbin/vboxconfig

나는 다음과 같은 응답을 받았습니다.

vboxdrv.sh: Building VirtualBox kernel modules.
dpkg-query: no path found matching pattern /lib/modules/3.16.0-042stab116.1/kernel
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  apt-get install -headers-3.16.0-042stab116.1
(The last command may fail if your system is not fully updated.)
  apt-get install -headers
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
dpkg-query: no path found matching pattern /lib/modules/3.16.0-042stab116.1/kernel
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  apt-get install -headers-3.16.0-042stab116.1
(The last command may fail if your system is not fully updated.)
  apt-get install -headers

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig

제안된 대로 헤더 설치를 시작했습니다(패키지 이름 headers-3.16.0-042stab116.1 앞의 대시 철자를 수정한 후).

apt-get install headers-3.16.0-042stab116.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package headers-3.16.0-042stab116.1
E: Couldn't find any package by regex 'headers-3.16.0-042stab116.1'

내 source.list 내용은 다음과 같습니다.

deb http://ftp.debian.org/debian jessie main contrib non-free
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org jessie/updates main contrib non-free
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
deb http://download.virtualbox.org/virtualbox/debian jessie contrib

headers-3.16.0-042stab116.1이 포함된 패키지는 더 이상 저장소에서 사용할 수 없다고 가정합니다. 그래서 내 접근 방식은 업데이트된 헤더를 설치할 수 있도록 그에 따라 커널을 업데이트하는 것이었습니다.

지금 내 문제는 이것이 데스크톱이 아니라 VPS라는 것입니다.

그러한 서버에서 커널 업데이트를 수행할 수 있습니까? 그렇다면 설치하기에 적합한 커널 이미지가 무엇인지 어떻게 알 수 있습니까? (apt-cache 검색 linux-image는 많은 결과를 제공합니다)

건배

답변1

나는 패키지가 단순한 헤더가 아니라 리눅스 헤더여야 한다고 생각합니다.

답변2

Debian에서 올바른 빌드 환경을 설정하려면 다음을 사용하세요.

apt install module-assistant m-a prepare

답변3

apt install linux-headers-amd64  build-essential dkms

관련 정보