Home > Linux, Security > Kali Linux – apt-get repos and getting the distro up to date

Kali Linux – apt-get repos and getting the distro up to date

Quick how to (if you fail to make repo’s work during initial installation process):

  1. edit /etc/apt/sources.list to add repos as follows:
    ## Regular repositories
    deb http://http.kali.org/kali kali main non-free contrib
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    ## Source repositories
    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
  2. apt-get clean
  3. apt-get update
  4. apt-get upgrade
  5. apt-get dist-upgrade

Then reboot and you’re good to go.

Update for the Kali version 2.0:

The correct file for the apt repositories is as follows:

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

BTW – if you have discovered that kernel headers are missing (as they usually do!) in the middle of VMWare Tools installation (what has just happened to me) then to save you a few minutes for fixing apt repositories and here are the reminder of the correct path and the package name for the headers:

apt-get install linux-headers-$(uname -r)
/usr/src/linux-headers-$(uname -r)/include
Advertisements
Categories: Linux, Security Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: