Page 2 of 2 FirstFirst 12
Results 51 to 60 of 60

Thread: Kernel headers problem

  1. #51
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    Quote Originally Posted by tasoss View Post
    hello.brand new installation(version 2).i have added http://docs.kali.org/general-use/kal...t-repositories and still i can't install kernel sources.any ideas?
    post the result of:

    Code:
    cat /etc/apt/sources.list
    chown -R us ./base

  2. #52
    Join Date
    2014-Aug
    Posts
    9
    #

    # deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150811-08:02]/ sana contrib main non-free

    #deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150811-08:02]/ sana contrib main non-free

    deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
    deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free
    Original file.And then added

    deb-src http://http.kali.org/kali sana main non-free contrib
    deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
    Thanks!

  3. #53
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    Quote Originally Posted by tasoss View Post
    Original file.And then added



    Thanks!
    Silly question,

    did you run:
    Code:
    apt-get update
    After changing your sources.list?

    Edit:
    Ahh!

    Change
    Code:
    deb-src http://http.kali.org/kali sana main non-free contrib
    to (both lines)

    Code:
    deb http://http.kali.org/kali sana main non-free contrib
    deb-src http://http.kali.org/kali sana main non-free contrib
    and run

    Code:
    apt-get update
    and try the install again

    apt-get install linux-headers-$(uname -r)
    Last edited by staticn0de; 2015-12-23 at 23:45.
    chown -R us ./base

  4. #54
    Join Date
    2014-Aug
    Posts
    9
    Well i changed my sources.list to be exactly like this
    deb http://http.kali.org/kali sana main non-free contrib
    deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free

    deb-src http://http.kali.org/kali sana main non-free contrib
    deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
    and now it's working as someone would expect.
    So my question is , shoudn't it be the default url in a standard installation or Kali or am i missing something?
    Maybe someone should update the faq or something?
    BTW merry christmas
    @staticn0de Thanks man !!!
    ps:This exists twice so it can be safely deleted from above: deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
    Last edited by tasoss; 2015-12-24 at 00:19. Reason: dup link

  5. #55
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    Quote Originally Posted by tasoss View Post
    Well i changed my sources.list to be exactly like this


    and now it's working as someone would expect.
    So my question is , shoudn't it be the default url in a standard installation or Kali or am i missing something?
    Maybe someone should update the faq or something?
    BTW merry christmas
    @staticn0de Thanks man !!!
    Change your sources file so it contains

    Code:
    deb http://http.kali.org/kali sana main non-free contrib
    deb http://security.kali.org/kali-security/ sana/updates main contrib non-free 
    
    deb-src http://http.kali.org/kali sana main non-free contrib
    deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
    Delete all the other lines. You had security deb-src twice.
    chown -R us ./base

  6. #56
    Join Date
    2014-Aug
    Posts
    9
    Yes i have just noticed it.
    Thanks again.

  7. #57
    Join Date
    2016-Jan
    Posts
    1
    hello

    finally i resolved this problem by installing linux-headers-4.0.0-kali1-686-pae manually
    first, i have downloaded that package (linux-headers-4.0.0-kali1-686-pae_4.0.4-1+kali2_i386.deb). see this link:
    Attachment 1167

    according to this image, linux-headers-4.0.0-kali1-686-pae_4.0.4-1+kali2_i386.deb depends of 3 others packages:
    -linux-headers-4.0.0-kali1-common (= 4.0.4-1+kali2)
    -linux-kbuild-4.0
    -linux-compiler-gcc-4.9-x86
    so with the same link ( ) i have downloaded linux-headers-4.0.0-kali1-common (= 4.0.4-1+kali2) and inux-compiler-gcc-4.9-x86
    and linux-kbuild-4.0 can be downloaded with this link: http://mirror.internode.on.net/pub/k...l/linux-tools/
    all i got to go was to just install them with dpkg command like this: dpkg -i package.deb
    Capture du 2016-01-24 12:59:51.jpg
    Capture du 2016-01-24 12:59:22.jpg

    after that i have installed linux-headers-4.0.0-kali1-686-pae like this:
    Capture du 2016-01-24 13:00:51.jpg

    we can verify that it works with this: apt-get install linux-headers-$(uname -r), like this:
    Capture du 2016-01-24 13:01:21.jpg

  8. #58
    Join Date
    2015-Nov
    Posts
    1
    Quote Originally Posted by davidy View Post
    hello

    finally i resolved this problem by installing linux-headers-4.0.0-kali1-686-pae manually
    first, i have downloaded that package (linux-headers-4.0.0-kali1-686-pae_4.0.4-1+kali2_i386.deb). see this link:
    Attachment 1167



    according to this image, linux-headers-4.0.0-kali1-686-pae_4.0.4-1+kali2_i386.deb depends of 3 others packages:
    -linux-headers-4.0.0-kali1-common (= 4.0.4-1+kali2)
    -linux-kbuild-4.0
    -linux-compiler-gcc-4.9-x86
    so with the same link ( ) i have downloaded linux-headers-4.0.0-kali1-common (= 4.0.4-1+kali2) and inux-compiler-gcc-4.9-x86
    and linux-kbuild-4.0 can be downloaded with this link: http://mirror.internode.on.net/pub/k...l/linux-tools/
    all i got to go was to just install them with dpkg command like this: dpkg -i package.deb
    Capture du 2016-01-24 12:59:51.jpg
    Capture du 2016-01-24 12:59:22.jpg

    after that i have installed linux-headers-4.0.0-kali1-686-pae like this:
    Capture du 2016-01-24 13:00:51.jpg

    we can verify that it works with this: apt-get install linux-headers-$(uname -r), like this:
    Capture du 2016-01-24 13:01:21.jpg
    AMAZING!!! This worked GREAT!! Thank you!!!!!!

  9. #59
    Join Date
    2016-Aug
    Posts
    1
    Hail folks!!
    Im having some similar issues..
    i've installed kali on my smartphone using linux deploy (sana release, rolling did not work)
    then i upgrade to rolling by updating the sources.list file

    #deb http://http.kali.org/kali/ sana main contrib non-free
    #deb-src http://http.kali.org/kali/ sana main contrib non-free
    deb http://http.kali.org/kali kali-rolling main non-free contrib
    deb-src http://http.kali.org/kali kali-rolling main non-free contrib
    deb http://security.kali.org/kali-security kali-current/updates main contrib no$
    deb-src http://security.kali.org/kali-security kali-current/updates main contri$
    after everything dist-upgraded, i run uname -r i get '3.10.49-MPI24.107-56-g735e417'

    'apt-cache search linux-header*'

    gives me

    linux-headers-4.6.0-kali1-all - All header files for Linux 4.6 (meta-package)
    linux-headers-4.6.0-kali1-all-armhf - All header files for Linux 4.6 (meta-package)
    linux-headers-4.6.0-kali1-armmp - Header files for Linux 4.6.0-kali1-armmp
    linux-headers-4.6.0-kali1-armmp-lpae - Header files for Linux 4.6.0-kali1-armmp-lpae
    linux-headers-4.6.0-kali1-common - Common header files for Linux 4.6.0-kali1
    linux-headers-armmp - Header files for Linux armmp configuration (meta-package)
    linux-headers-armmp-lpae - Header files for Linux armmp-lpae configuration (meta-package)
    linux-libc-dev-alpha-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-arm64-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-armel-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-armhf-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-hppa-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-m68k-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-mips-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-mips64-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-mips64el-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-mipsel-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-powerpc-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-powerpcspe-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-ppc64-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-ppc64el-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-s390x-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-sh4-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-sparc64-cross - Linux Kernel Headers for development (for cross-compiling)

    and of course 'apt-get install linux-header$(uname -r)' wont work, cause the **** thing dont find the right header...

    why am giving all this trouble... i want to install headers so i can install my tplink usb wifi using the dongle cable..

    Anyone can gimme a hand on this matter?

    Thanks guys!!

  10. #60
    Join Date
    2016-Sep
    Posts
    1
    I have solved, by typing the following:
    apt-get install virtualbox-5.1
    and then
    apt-get -f install

Similar Threads

  1. Cannot install kernel headers (kernel header mismatch)
    By sebos in forum Installing Archive
    Replies: 10
    Last Post: 2022-12-19, 08:11
  2. Fix Kernel Headers Problem
    By Alton Jhon in forum General Archive
    Replies: 5
    Last Post: 2015-03-01, 03:04

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
  •