
Kali Linux 64비트를 새로 설치할 때 Virtualbox Guest Additions를 설치하려고 할 때 오류가 발생했습니다. Windows 10 64비트가 호스트 운영 체제입니다.
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install linux-headers-$(uname -r)
4단계를 실행한 후 다음과 같은 오류가 발생합니다.
E: Unable to locate package 'linux-headers-4.9.0-kali3-amd64'
E: Couldn't find any package by glob 'linux-headers-4.9.0-kali3-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-kali3-amd64'
VBoxGuestAdditions.run
설치 CD에서VBOXADDITIONS_5.1.22_1115126
다음으로 복사합니다./root/Desktop
chmod 755 ./VBoxLinuxAdditions.run
./VBoxAdditions.run
7단계를 실행하는 동안 오류가 발생했습니다.
vboxadd.sh: Starting the VirtualBox Guest Additions.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details
안에 /var/log/VBoxGuestAdditions.log
:
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd.service -> /lib/systemd/system/vboxadd.service.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: modprobe vboxguest failed.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-service.service -> /lib/systemd/system/vboxadd-service.service
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-x11.service -> /lib/systemd/system/vboxadd-x11.service
안에 /var/log/vboxadd-install.log
:
/tmp/vbox.0/Makefile.include.header:112: *** ERror: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
다시 시작하기 전에 uname -a
:
Linux k 4.9.0-kali3-amd64 #1 SMP Debian 4.9.18-1kali1 (2017-04-04) X86_64 GNU/Linux
다시 시작한 후 uname -a
:
Linux k 4.9.0 -kali4-amd64 #1 SMP Debian 4.9.25-1kali1 (2017-05-04) x86_64 GNU/Linux
무슨 일이 일어나고 있는지 아이디어가 있습니까?
산출apt-cache search linux-headers
답변1
linux-headers
커널 이미지에 적합한 버전을 설치하려면 다음을 통해 사용 가능한 버전을 얻으세요 linux-headers
.
apt-cache search linux-headers
그런 다음 설치하십시오.
apt-get install linux-headers-4.9.0-kali4-amd64
답변2
새 저장소를 추가해 보세요sources.list
열려 있는 sources.list
:leafpad
leafpad etc/apt/sources.list
저장소를 추가하려면 파일에 다음 줄을 추가하세요.
deb http://http.kali.org/kali kali-rolling main contrib non-free
그런 다음 단계를 따르십시오.