Results 1 to 3 of 3

Thread: trouble getting headers - E: Unable to locate package linux-headers-3.18.0-kali3-amd6

  1. #1
    Join Date
    2015-Jun
    Location
    Charlotte, NC
    Posts
    4

    trouble getting headers - E: Unable to locate package linux-headers-3.18.0-kali3-amd6

    I'm trying to download the linux headers to build/install a driver, but I'm not finding any linux headers which leads me to believe something else is wrong. Here's what I've done:

    ---Checked sources---
    Code:
    root@kali:~# cat /etc/apt/sources.list
    deb http://security.kali.org/ kali/updates main contrib non-free
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    
    deb-src http://http.kali.org/kali kali main non-free contrib
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
    ---Run update---
    Code:
    root@kali:~# apt-get update
    Hit http://security.kali.org kali/updates Release.gpg                          
    Hit http://security.kali.org kali/updates Release                   
    Hit http://security.kali.org kali/updates/main amd64 Packages
    Hit http://security.kali.org kali/updates/contrib amd64 Packages           
    Hit http://security.kali.org kali/updates/non-free amd64 Packages             
    Ign http://security.kali.org kali/updates/contrib Translation-en_US           
    Ign http://security.kali.org kali/updates/contrib Translation-en
    Ign http://security.kali.org kali/updates/main Translation-en_US
    Ign http://security.kali.org kali/updates/main Translation-en
    Ign http://security.kali.org kali/updates/non-free Translation-en_US
    Ign http://security.kali.org kali/updates/non-free Translation-en
    Hit http://http.kali.org kali Release.gpg                                      
    Hit http://http.kali.org kali Release                                          
    Hit http://http.kali.org kali/main Sources                                     
    Hit http://http.kali.org kali/non-free Sources                                 
    Hit http://http.kali.org kali/contrib Sources                                  
    Reading package lists... Done
    ---run upgrade---
    Code:
    root@kali:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    ---run dist upgrade---
    Code:
    root@kali:~# apt-get dist-upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    ---tried to install headers---
    Code:
    root@kali:~# 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-3.18.0-kali3-amd64
    E: Couldn't find any package by regex 'linux-headers-3.18.0-kali3-amd64'
    ---checked to see what headers might be available that would work---
    Code:
    root@kali:~# apt-cache search linux-headers
    root@kali:~#
    It seems like checking the cache should return something so I'm sure I just don't have something set correctly, but I checked the sources, did an update and upgrade. I don't know what else to do. Can someone help me please?

    Thank you.
    Last edited by brighteyes; 2015-07-08 at 16:41.

  2. #2
    Your source file is wrong.
    Missing a key repo

    Code:
    deb http://http.kali.org/kali kali main non-free contrib
    Check: http://docs.kali.org/general-use/kal...t-repositories
    This is a Kali-Linux support forum - not general IT/infosec help.

    Useful Commands: OS, Networking, Hardware, Wi-Fi
    Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
    Hardware: Recommended 802.11 Wireless Cards

    Documentation: http://docs.kali.org/ (Offline PDF version)
    Bugs Reporting & Tool Requests: https://bugs.kali.org/
    Kali Tool List, Versions & Man Pages: https://tools.kali.org/

  3. #3
    Join Date
    2015-Jun
    Location
    Charlotte, NC
    Posts
    4
    Thank you. I'm not sure how I missed something so obvious, but I did. I thought I had double-checked that, but obviously I did not. I'll make that change and try again. Thank you for your help.

Similar Threads

  1. Unable to locate package linux-headers-4.3.0-kalil-686-pae
    By Farenheit451 in forum TroubleShooting Archive
    Replies: 5
    Last Post: 2016-06-08, 06:48
  2. Unable to locate package linux-headers-3.4.67
    By goaismine in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2016-03-13, 08:37

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •