Update Kali

1

Good, I just installed the image of Kali on my computer. I wanted to install the headers but when I try to do one:

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

I see that I get an error, since the version of my Kali is 4.13 and the one in the cache repository (seen with the apt-cache search linux-headers command) is 4.14. I try to update Kali through the following commands but there is no way to go from 4.13 to 4.14.

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade

I've done all three but I think the problem is that the update does not recognize me that there are new versions of the operating system.

I have reviewed the file /etc/apt/sources.list and it contains the default repository

deb http://http.kali.org/kali kali-rolling main non-free contrib

I have added the following ones in case it was enclosed in some but it does not recognize me at all.

deb http://http.kali.org/kali kali-rolling main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib    non-free
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

Still not updated. Any solution to this?

    
asked by elvaqueroloconivel1 24.01.2018 в 16:41
source

2 answers

1

Although it is not a programming topic and you are going to be scolded, I can suggest that you must first make sure that the apt's sources are correct. Since you do not pass them to us, we can not know if the problem is there. You should have the minimum:

deb http://http.kali.org/kali kali main non-free contrib
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

And then:

apt-get update && apt-get install -y linux-headers-$(uname -r)

If this error, it would help a lot to know, because you do not tell us the error that comes out.

I do not know if this will help you, but in fact I've only searched in google for "kali" "4.14" "kernel" "headers" and I got this link in the first result:

link

I'm telling you because if this does not work, you may prefer to look for it before asking;)

    
answered by 24.01.2018 в 16:52
0

Well, I have solved the problem in the following way.

1) I downloaded the image and the headers with the following commands

apt-cache search linux-headers

apt-get install linux-headers-(el que corresponda)

apt-cache search linux-image

apt-get install linux-image-(la que corresponda)

2) Once downloaded, you must pass the image found in / usr / src to / boot /

3) Finally you have to update the grub for the changes to be incorporated.

sudo update-grub

Note: if you have a partition with another Linux like me, you will have to update the boot grub. In my case, the one you use is the Ubuntu one, not the Kali one.

    
answered by 24.01.2018 в 18:07