How to add official Kali Linux Repositories? – Kali Linux 1.x repositories

This is a small guide on How to add official Kali Linux Repositories. How to add official Kali Linux Repositories - blackMORE Ops

Kali Linux source.list Repositories page: Official Link

We’ve seen many people break their Kali Linux installations by following unofficial advice, or arbitrarily populating their sources.list file with unneeded repositories. The following post aims to clarify what repositories should exist in sources.list, and when they should be used.

Any additional repositories added to the Kali sources.list file will most likely BREAK YOUR KALI LINUX INSTALL.

Kali Linux 2.0 – Kali Sana users, use this guide instead. How to add official Kali Linux Repositories? – Kali Linux 2.x Sana repositories

Open sources.list and comment all lines with # in front

The simplest way is to edit the /etc/apt/sources.list

 leafpad /etc/apt/sources.list

If you’re serious about keeping Kali Linux stable, then remove or comment every-line with # at the front and add the following lines..

Add Official Repo’s only:

If you’ve added Bleeding edge repo, 3rd party repo etc. you should have the technical skills to fix your Kali installation at a later stage. As far I’ve seen, Kali dev team doesn’t really care or support 3rd party repo and when you break stuffs, you will possibly met with a silence or a flat “reinstall” answer. Choice is yours.

WARNING: Following guide is for Kali Linux 1.x.

Kali Linux 2.0 – Kali Sana users, use this guide instead. How to add official Kali Linux Repositories? – Kali Linux 2.x Sana repositories

Following is the official repository for Kali Linux.

## 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

Save and close the file.

Clean your apt-get

apt-get clean

STOP:  To fix Kali apt-get slow update follow the guide on fixing Kali apt-get slow update.

To switch repositories to a different mirror of your choice, follow the guide on changing repositories to a different mirror.

Do an apt-get update

apt-get update

Do and upgrade

apt-get upgrade

Finally do a distribution upgrade

apt-get dist-upgrade

That’s it, you’re set.

Conclusion

I have seen users go on and add Bleeding Edge repo or narrow it down to amd64, i386 repo etc. I just don’t see the point of doing that like some are used to doing in Debian or other distributions. Kali repo is quite smart and as long your architecture was not fiddled with, you can always use the repo I’ve listed above to pull updates.

One more thing, unless you know what you are doing, just don’t add Bleeding Edge repo. It’s repo under development and you will end up having more issues for little benefit. But if you are a developer yourself, go ahead.

It is very important to keep Kali updated as Kali dev team will remove old version quite often. If you have a very old Kali ISO, perhaps just download a new ISO and start from there. Either way, thanks for reading. Do share RT.

Check Also

Correct way of installing VirtualBox Guest Additions in Kali Linux 2016.2/2017 (Kali Rolling)

How to install VirtualBox Guest Additions in Kali Linux (Kali Rolling / Kali Linux 2016.2 / Kali 2017)

Since Kali Linux 2016 came out (also known as Kali Rolling), it seems that Official …

Run Kali Linux in Microsoft Azure on SSD for free - blackMORE Ops - 1

Run Kali Linux in Microsoft Azure on SSD for free

Big news for Kali Linux users, now you can run Kali Linux in Microsoft Azure …

56 comments

  1. thanks man! really appreciate this info.

    • root@kali:~# apt-get install openoffice.org
      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      Package openoffice.org is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source

      E: Package ‘openoffice.org’ has no installation candidate
      root@kali:~#

      i couldnt download openoffice.org. What should i do?

  2. Thank you. I used this to put kali on to a tonidioplug — It worked :-)

  3. Help, I got this after the first step (apt-get update).
    W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages)
    W: You may want to run apt-get update to correct these problems

  4. god job… thanks… keep it up

  5. I got
    W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry ‘main/binary-AMD64/Packages’ in Release file (Wrong sources.list entry or malformed file)

    W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/Release Unable to find expected entry ‘main/binary-AMD64/Packages’ in Release file (Wrong sources.list entry or malformed file)

    W: Failed to fetch http://http.kali.org/kali/dists/kali/Release Unable to find expected entry ‘main/binary-AMD64/Packages’ in Release file (Wrong sources.list entry or malformed file)

    E: Some index files failed to download. They have been ignored, or old ones used instead.
    after apt-get update.

  6. Secound Step is working well. . . thnk u

  7. Thanks a lot, I commented few of the line and it worked fine.

  8. Err http://http.kali.org kali Release.gpg
    Ne parvient pas à résoudre « http=127.0.0.1:8555;https=127.0.0.1 »
    Err http://security.kali.org kali/updates Release.gpg
    Ne parvient pas à résoudre « http=127.0.0.1:8555;https=127.0.0.1 »
    Lecture des listes de paquets… Fait
    W: Impossible de récupérer http://http.kali.org/kali/dists/kali/Release.gpg Ne parvient pas à résoudre « http=127.0.0.1:8555;https=127.0.0.1 »

    W: Impossible de récupérer http://security.kali.org/kali-security/dists/kali/updates/Release.gpg Ne parvient pas à résoudre « http=127.0.0.1:8555;https=127.0.0.1 »

    W: Le téléchargement de quelques fichiers d’index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.

  9. you should update this topic to these repositories :
    deb http://http.kali.org/ /kali main contrib non-free
    deb http://http.kali.org/ /wheezy main contrib non-free
    deb http://http.kali.org/kali kali-dev main contrib non-free
    deb http://http.kali.org/kali kali-dev main/debian-installer
    deb-src http://http.kali.org/kali kali-dev main contrib non-free
    deb http://http.kali.org/kali kali main contrib non-free
    deb http://http.kali.org/kali kali main/debian-installer
    deb-src http://http.kali.org/kali kali main contrib non-free
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

  10. After doing this my gui stopped loading and i could only boot into a black terminal.. asking my login and so on..

  11. root@kalihornedbee:/home/kalihornedbee# apt-get update
    E: The method driver /usr/lib/apt/methods/Http could not be found.

    I get this message all the time I try to do this and my sources list is just like this:

    ## 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

    THAT’S ALL and please help me setting up this cool operationg system!!!!

  12. > Open sources.list and comment all lines with # in front

    I don’t get it (o_O)
    Do you mean *un*comment?

  13. Excuise me..brother..could you help me how to install driver VGA intell inside card my leptop is LENOVO G400 the driver is intell inside and now I have installed kali linux but I don’t know how to install driver VGA cards…please..I need your help all

  14. worked like a damn charm….thank you for some organization.

  15. thanx for the info. i am going to script it now, when i get done, i will post a link to github if you want to look at it.

  16. My GUI also stopped working and when i try to upgrade after these packages it says 800MB will be freed which i assume its deleting GUI. Need help.

    • Hi, first i’d like to thank you for all the work you’ve done so far.
      i’ve got a problem changing my sources.lst : after opening it with leafpad /etc/apt/sources.list and changing the lines i can’t save it give me a ” Cant open file to write ” message, please … HELP T.T

  17. Hi, first i’d like to thank you for all the work you’ve done so far.
    i’ve got a problem changing my sources.lst : after opening it with leafpad /etc/apt/sources.list and changing the lines i can’t save it give me a ” Cant open file to write ” message, please … HELP T.T

  18. thank you this is realy helpful

  19. Every time I try to save it says can’t open file to write

  20. Thanks for the work you do. You were a great help in installing Nvidia drivers in 1.09. But I’m back for more help. I upgraded Kali to 1.10 without a problem but now I can`t upgrade my nvidia drivers from v340 to v346.35 which is now required for cudehashcat. Any thoughts would be appreciated. Thanks again.

  21. every time when iam updating when iam getting this error at the end
    W: Failed to fetch http://http.kali.org/kali/dists/kali/main/binary-amd64/Packages Hash Sum mismatch

    W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/Rel
    ease Unable to find expected entry ‘non-fre/source/Sources’ in Release file (Wr
    ong sources.list entry or malformed file)

    E: Some index files failed to download. They have been ignored, or old ones used instead.

  22. i added the official repo’s but when i tried apt-get update i got this one. how should i fix this problem? Somebody help!!!

    ——————————————————————————————————————————————————————

    root@localhost:~# apt-get update
    Err http://security.kali.org kali/updates Release.gpg
    Could not resolve ‘security.kali.org’
    Err http://http.kali.org kali Release.gpg
    Could not resolve ‘http.kali.org’
    Reading package lists… Done

    W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/Release.gpg
    Could not resolve ‘security.kali.org’

    W: Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg
    Could not resolve ‘http.kali.org’

    W: Some index files failed to download. They have been ignored, or old ones used instead.

    ——————————————————————————————————————————————————————-

    • You need to update your keyring.
      Try this:

      rm -rf /var/lib/apt/lists
      apt-get update
      apt-get install kali-archive-keyring

      Good luck.

    • Thank you for this answer. I was having the same issue as the user above and was just about to go to another website, when I saw this answer.

  23. Thank you. It’s working

  24. Finally a tutorial that worked. Thanks man!

  25. I use aptitude rather than apt-get because there are times when aptitude gives better solutions for dependency problems. in aptitude, dist-upgrade has been superceded by full-upgrade but they have kept dist-upgrade for us old guys. Aptitude also has an ncurses interface if you like that.

  26. could you do a tut on how to install nvidia bumblebee on kali 1.10?

  27. Calculating upgrade… Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Look ok? Or isn’t anything being received from updates?
    Not 100% sure here. Many thanks for tut.

  28. i need source.list kali linux amd64 plzzzzzzzzz

  29. E: You don’t have enough free space in /var/cache/apt/archives/.

  30. how to fix high CPU in kali sana
    #kworker

  31. thanks a lot, the source.list edit was very helpful… kudos..

  32. Just Use the the official repositories mentioned above. Don’t worry so much about the architecture, it will “AutoDetect” upon “apt-get update”

  33. hey friends pls any help when i tranna instal kali linux version 2.0 i get this prb so pls any solution apt-get install metasploit
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    metasploit : Depends: metasploit-framework (>= 4.11.4-2015071402-1) but it is not going to be installed
    Depends: xvfb but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

  34. any solution for 404 not found. i tryed this source.list. but still the same error

  35. I also receive a 404 Not Found error when I use these repositories. Anyone know how to fix this?

    I have reloaded the system multiple times so it can’t be sources.list file issue.

    • I’m having error using this repositories. Is there any new repo for Kali linux 1.0.9 ?? I want to install software center in my kali. Plzzz help

  36. how sources.list for kali linux rolling 2016.1 should be like?

  37. how can i get repositories of kali linux rolling

  38. will anyone help me
    i had problem of low upgrade and update speed so
    i used repo.kali.org but still it is slow.
    then i have done a thing,that i have grabbed all packages with same hierarchy of ftp server using websited grabber
    so now i am having whole repository of 2-3 GB in my drive. now the question is
    do i install my updates from these packages from drive ?
    if yes ..then guide me step by step to install them
    may be i need to change path of repository server of kali to my drive as shared
    so what i have to do ?
    please help me.

  39. MANYMANYTHANKS MATE!
    I followed your guide and even if with some troubles (like headers that don-t want to be installed) I made it!
    No I dont know if I will be able to do anything with that, but I’m truly happy!Thank you and Happy Christmas! E.

Leave a Reply

Your email address will not be published. Required fields are marked *