LoginSignup
5
0

More than 5 years have passed since last update.

Unable to locate package linux-headers-4.6.0-kali1-amd64 の解決法

Last updated at Posted at 2016-10-22

Kali linuxにVirtualBox guest additionsを入れる時に出たエラー

Kali linuxをVirtualBoxでインストール完了したらホストOSとファイル共有やクリップボードの共有をするためにVirtualBox guest addtionsを入れるのをよく薦められます(だいたいkali linuxのセットアップのチュートリアルの最後に書いてありました)。そのコマンド

apt-get install linux-headers-$(uname -r)

を実行すると、以下のようなエラーが出ました。

Reading package lists... Done
Building dependency tree 
Reading state information... Done
E: Unable to locate package linux-headers-4.6.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'

Unable to locate package linux-headers-4.6.0-kali1-amd64 でググったら全く同じエラーにハマっている人がいたので、そのサイトにあった以下の解決方法を試したのですが一向に同じエラーが出ます。

sudo apt-get update
sudo apt-get -y dist-upgrade  
reboot # MOST IMPORTANT STEP! make sure you reboot the machine via this cmd OR 
uname -r # check that the kernel release has updated

VirtualBox guest addtionsでググってみたら、

apt-get install -y virtualbox-guest-x11

を実行するように、とありました。これであっさり解決。

versionが古いと apt-get install linux-headers-$(uname -r) で、新しいものは apt-get install -y virtualbox-guest-x11 でインストールするみたいですね。

5
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0