Fix Kali Linux sources.list Repositories

Kali Linux sources.list


Fix default repository
First after installing a clean Kali Linux the sources.list counte only tow repository and they are
## 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
if you try to do update it maybe update a few apps and if you try to install a new app 90% it wont and it will give you a massage like this one
 E: Unable to locate package
Unable to locate package

The simplest way is to edit the
 /etc/apt/sources.list
remove or comment every-line with # at the front and add the following lines..



Terminal command :   leafpad /etc/apt/sources.list   
after this comment you will get something like this
now remove every line of them and add this new lines

For Kali Linux 1.x users  use the repo below:
No more update for Kali 1.0 pleas upgrade to new Kali 2016
## 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
For Kali Linux 2.0 – Kali Sana  use the repo below:
you Still can receive update for Kali Sana but not for long so please upgrade to Kali 2016.1
# Regular repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
# Source repositories
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
For Kali Linux 2016 – Kali Rolling  use the repo below:
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
Save and close the file.   Details and explanations can be found in adding official Kali Linux Repositories page.

 You can check this Video 

Clean, update, upgrade and dist-upgrade your Kali installation.
The command
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

The Kali Rolling Repository
Kali sana (2.0) Repositories
Kali moto (1.0) Repositories
Kali Linux Repositories

The kali-rolling Repository
In contrast to kali-dev, kali-rolling is expected to be of better quality because it’s managed by a tool that ensures installability of all the packages it contains. The tool picks updated packages from kali-dev and copies them to kali-rolling only when they have been verified to be installable.

if you still have any update error pleas check this post
how to update Kali Linux and Fix update error

Have a great day hope i did help :)
leave a comment and you can fine me in Twitter

Kali Linux 2016 update Kali Rolling Repository kali linux rolling repository kali linux e unable to locate package

Labels:

Post a Comment

  1. This comment has been removed by the author.

    ReplyDelete
  2. it's still not working for me... please help...

    ReplyDelete
    Replies
    1. witch one you are using ? ?
      The Kali Rolling 2016
      Kali moto (1.0)
      Kali Linux 2.0
      and whatss the error you are geting

      Delete
    2. same problem of me...
      i'm using kali linux 1.1.0

      Delete
    3. There is no more support for Kali linux 1.0
      you should upgrade to new Kali 2016

      anyway you may be able to update using this repo

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

      add it to sources.list

      Delete
    4. bro its not working for me i am using the latest one kali 2016.2 please help me

      Delete
  3. i do that on my new brand kali but have some fails that get erorre 404 file not found thats okay ?

    ReplyDelete
    Replies
    1. forget to say i use kali rolling

      Delete
    2. if you can copy the error and post it here that would help ...

      Delete
  4. hello, may I get some help from you?
    actually I'm newbie to use Kali Linux, in my condition I have installed Kali Linux 1.1.0..
    can I get some explanation about some different item between Repository Kali Sana (2.0) and Repository Kali Moto (1.0)..
    Thank you very much...

    ReplyDelete
    Replies
    1. hi there , its not about different item its about the feed service
      plus new and updated tools won't be listed on old feed service
      so you wont get the latest tools and you should upgrade to kali rolling 2016.1

      and you are welcome :)

      Delete
    2. Sir..
      I have a 1 situation when I try install php5-cgi is failed..

      'The following packages have unmet dependencies :
      Php5-cgi : Depends : php5-common (= 5.4.36-0+deb7u1) but 5.4.36-0+deb7u3 is to be installed
      E: Unable to correct problems, you have held broken packages.'

      May I have some explaination from you about my problem?

      Thank you very much..

      Delete
    3. Sir..
      I have a 1 situation when I try install php5-cgi is failed..

      'The following packages have unmet dependencies :
      Php5-cgi : Depends : php5-common (= 5.4.36-0+deb7u1) but 5.4.36-0+deb7u3 is to be installed
      E: Unable to correct problems, you have held broken packages.'

      May I have some explaination from you about my problem?

      Thank you very much..

      Delete
    4. try this>>>

      1) apt-get update --fix-missing
      2) apt-get update && apt-get upgrade

      for better understanding read this post

      http://kalitut.blogspot.com/2015/03/how-to-update-kali-linux-and-fix-update.html

      Delete
  5. Hi Walid.

    I was wondering if you could perhaps help me out? I have just recently received an old laptop and decided to install Kali Sana (2.0) onto it, however I could install various apps like Inkscape and other Debian based apps by using the command: apt-get install inkscape (or whatever I want to install). I even installed WINE and my Windows programs worked fine on it. I did upgrade to Kali Rolling (2016-1) the other day and everything worked fine except my sound drivers were missing. I decided to get the Kali Rolling ISO and installed it onto the laptop as a clean installation and everything is working 100% except: apt-get install (program name). I have tried to add the Repositories listed on the official Kali website to the sources list ( /etc/apt/sources.list ), but it still does not work. Any ideas how I can get it fixed? Or should I just install Kali Sana in VirtualBox and copy the sources.list info from there?

    Thank you in advance :)

    Ashton Whitemonk

    ReplyDelete
    Replies
    1. the sources.list file of Kali Sana is not like the one of kali rolling and it wont work that way ...

      Delete
  6. Hi Walid.

    It seems that it's all working now after I added the following repos

    deb http://http.kali.org/kali kali-rolling main contrib non-free
    # For source package access, uncomment the following line
    deb-src http://http.kali.org/kali kali-rolling main contrib non-free

    and typing in the following

    apt-get clean && apt-get update && apt-get upgrade -y

    Now I can finally use the apt-get install (program) command with no problems.

    Thank you for your post, and keep up the good work :D

    Ashton Whitemonk

    ReplyDelete
    Replies
    1. okay that's great,
      i hope you will always find what you need in this blog :)

      Delete
  7. TOP MAN SUCESSFULLY UPDATES EVERYTHING FOR ME WITH KALI.2016 NOTHING ELSE WOULD WORK WOULDNT UPDATE PACKAGES ECT. This will be a big help for me now to use driver i need. ;-) Thanks

    ReplyDelete
    Replies
    1. you are more then welcome :) glad i did help :)

      Delete
  8. i'm using kali rolling...
    then i wanna use setoolkit
    after thet it show kali bleeding
    in my sources i have add a kali bleeding respositories
    and now i'm still dont know how to fix it....
    need help. . . .

    ReplyDelete
    Replies
    1. i dont really get whats the error you are getting ?
      can you post it here ?

      Delete
  9. I am using kali rolling 2016 after adding the source list i cant install any software or even update over LAN even after setting correct proxies ...... how can i fix this??

    Iam getting this error message
    "Err:1 http://http.kali.org/kali kali-rolling InRelease
    Could not resolve 'http.kali.org'
    Reading package lists... Done
    W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Could not resolve 'http.kali.org'
    W: Some index files failed to download. They have been ignored, or old ones used instead."

    ReplyDelete
    Replies
    1. make your source list look like this and try

      # For source package access, uncomment the following line
      deb-src http://http.kali.org/kali kali-rolling main contrib non-free
      deb http://http.kali.org/kali kali-rolling main contrib non-free

      let me know if it work ,

      Delete
    2. still not working but now getting a diffrent error message
      "Get:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease [20.3 kB]
      Get:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main Sources [10.0 MB]
      Get:3 http://kali.mirror.garr.it/mirrors/kali kali-rolling/contrib Sources [61.3 kB]
      Fetched 20.3 kB in 54s (374 B/s)
      Reading package lists... Done
      W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Unable to find expected entry 'non-freee/source/Sources' 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."

      Delete
    3. try this command ..
      apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

      and did you upgrade from kali 2.0 to kali 2016 or its a fresh install ?

      Delete
  10. Thanks a lot , finally it work for me

    ReplyDelete
    Replies
    1. Please help, my own Kali Linux Nethunter lollipop getting crash. Vnc server would not start, getting my phone restart. It started when I try add repositories to install another web browser. Because the default Iceweasel not running well (phone always restart too). What should I do??? What command should I use to edit /etc/apt/sources.list on my root@kali... Thanks

      Delete
    2. hi there ... try this command to edit sources.list
      leafpad /etc/apt/sources.list

      and i'm sorry if it dont work but the problem is i don't use Nethunter so i cant really help with it

      Delete
  11. very good and very easy thank's

    ReplyDelete
  12. i need help i install kali linux rolling but during the installation the mirror fail
    i tried to change repositories of kali using rolling but still i cant update and upgrade.
    always said that error "Err:1 http://ftp.free.fr/pub/kali kali-rolling InRelease
    Não foi possível resolver 'ftp.free.fr'
    A ler as listas de pacotes... Pronto
    W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Não foi possível resolver 'ftp.free.fr'
    W: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os antigos foram usados em seu lugar.
    "
    can someone help me pls

    ReplyDelete
    Replies
    1. you should turn mirror off during the installation
      here is this video for the installation of kali linux
      https://www.youtube.com/watch?v=Fz0Ll9YWKrI

      Delete
  13. hi walid :D
    I try all your suggestions , my isc-dhcp-server is now fix but my Hostapd,lighttpd and Php5-cgi is still "unable to locate Package"

    thnk you in advance

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Aircrack-ng.....OK!
      Aireplay-ng.....OK!
      ./airmon.......OK!
      Airodump-ng.....OK!
      Awk.............OK!
      Curl............OK!
      Dhcpd...........OK!
      Hostapd.........Not installed
      Iwconfig........OK!
      Lighttpd........Not installed
      Macchanger......OK!
      Mdk3............OK!
      Nmap............OK!
      Php5-cgi........Not installed
      Pyrit...........OK!
      Python..........OK!
      Unzip...........OK!
      Xterm...........OK!

      Delete
    3. hi there ... try this commend
      apt-get update --fix-missing

      and check this post
      http://kalitut.blogspot.com/2015/03/how-to-update-kali-linux-and-fix-update.html

      Delete
  14. Thanks so lot,i fix the problem with linux-headers kernel!I ask you if you have a guide or can you help me to try install Nvidia drivers,i try much time to install but anytime i have some probem and i reinstall kali.
    This is the configuration on my PC:
    root@kali:~# uname -a
    Linux kali 4.4.0-kali1-amd64 #1 SMP Debian 4.4.6-1kali1 (2016-03-18) x86_64 GNU/Linux
    root@kali:~# lsb_release -a
    No LSB modules are available.
    Distributor ID: Kali
    Description: Kali GNU/Linux Rolling
    Release: kali-rolling
    Codename: kali-rolling
    root@kali:~# lspci |grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
    Thanks so much and sorry for my bad english

    ReplyDelete
  15. please help i am using kali 2.0 but i cant save the file in source.list and i cant adding anything it's say No open file system

    ReplyDelete
    Replies
    1. hi said you have to be on root user
      or
      from terminal write the commend like this

      sudo leafpad /etc/apt/sources.list

      so yes just add sudo at the biggning

      Delete
  16. So please I'm new to kali. I'm using the kali 1.1.0 and i don't want to update to kali sana. Because i have Mac Os theme as my interface and i still want to maintain that, but I'm afraid it will turn out to be different thing when i upgrade to sana so i feel pretty okay using the kali 1.1.0. Is there any way i can get my kali updated without upgrading to sana. Because i hate sana. And i don't like the interface of it.

    ReplyDelete
    Replies
    1. you can keep kali 1.1.0 but you will need to do the update by your self ..
      you need to download the files unpack and make and make install
      and 90% you will get error you have to deal with ,,,
      even kali sana wont receive updates for long time , we are on Kali Linux 2016 now which is the newest

      Delete
  17. Hello, first of all, thanks for this tutorial. I have a problem and I hope you will help me to solve it.

    So, I downloaded kali linux 2016.1 on the official website, and I installed it on VMware Workstation. After that, I wanted to install vmware tools with this command : apt-get update
    apt-get install open-vm-tools-desktop fuse
    reboot
    But it didn't work. So I saw you tutorial and I added repositories in the file.
    After, I entered this command : apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y.
    30mn after, the upgrade finished and I was able to install vmware tools with the previous command.
    Here it is my problem. Now I'm updated and Maltego disappeared !! I can see Maltego when I'm writing this command : dpkg -l but when I search it, I have : "no found".
    Can you help me ? Thanks a lot and sorry for my english, I'm french.

    ReplyDelete
    Replies
    1. its wired what happen with you ... i don't know if i could help without log file !
      i need to know why it disappeared and that's what you want too ...
      first sorry for taking too long to reply ... now do you still have this problem and if you fix it what did you do to fix it ?
      your english is good

      Delete
  18. work, thanks you are my hero
    but if i start for example (wine idm.exe)
    i have messeges : wine: bad exe
    help me please

    ReplyDelete
    Replies
    1. the erorr is with wine not with your sources.list Repositories anymore
      so you need to check a tutorial for how to use wine ... i will try to make one soon

      Delete
  19. please bro help me. I install Kali Linux Rolling amd64. after finish installation I try update and upgrade but the message in my terminal "apt-get clean && apt-get update && apt-get upgrade -y
    Reading package lists... Done
    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."
    Please help me fix the problem bro. I was change repository before. Thanks

    ReplyDelete
    Replies
    1. did you check your sources.list Repositories ?

      Delete
  20. this is so helpfull.. thank a lot bro :D

    ReplyDelete
  21. Thanks man you really helped me with this, gratitude...

    ReplyDelete
  22. bro it worked for me but while installing i again get problem that
    E:there are problem and y- was used without --force-y
    (and)
    W:gpg error

    ReplyDelete
  23. k to hai hero mera. worked !!! So glad it did finally!!

    ReplyDelete
    Replies
    1. thats great , welcome to kali linux world ;)

      Delete
  24. Thanks @Walid Salame For Helping Newbie Kali Linux User. It's Awesome Post and Helpful.

    ReplyDelete
  25. THanks a ton. At last it sorted out my problems.

    ReplyDelete
  26. Im runing an older version of kali 1.0.7 and want to upgrade using root, too kali 2016. how do I? since the machine screen saver comes on.

    ReplyDelete
  27. Im runing an older version of kali 1.0.7 and want to upgrade using root, too kali 2016. how do I? since the machine screen saver comes on.

    ReplyDelete
  28. After install kali linux i did the following steps update, upgrade and dist-upgrade after that i try to install additional tools i am getting error E: unable to locate the preload. when i open the source.list it is empty file nothing on it. wt is the solution to fix the problem. thanks

    ReplyDelete
    Replies
    1. let's start with fixing your source.list file
      just do as you see on this post and update your repository sources.list

      Delete
  29. root@kali:~# apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
    W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
    Reading package lists... Done
    W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
    W: Unable to read /etc/apt/sources.list.d/ - DirectoryExists (2: No such file or directory)
    W: Unable to read /etc/apt/sources.list - RealFileExists (2: No such file or directory)
    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.
    W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
    W: Unable to read /etc/apt/sources.list.d/ - DirectoryExists (2: No such file or directory)
    W: Unable to read /etc/apt/sources.list - RealFileExists (2: No such file or directory)
    W: Unable to read /etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
    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.
    W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
    W: Unable to read /etc/apt/sources.list.d/ - DirectoryExists (2: No such file or directory)
    W: Unable to read /etc/apt/sources.list - RealFileExists (2: No such file or directory)
    W: Unable to read /etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)

    ReplyDelete
  30. please salve to me this problems

    ReplyDelete
  31. pls i am having this comment at the end o0f my update..pls what can i do or should i do.W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/main/source/Sources 404 Not Found

    W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/contrib/source/Sources 404 Not Found

    W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/non-free/source/Sources 404 Not Found

    W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/main/binary-amd64/Packages 404 Not Found

    W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/contrib/binary-amd64/Packages 404 Not Found

    W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/non-free/binary-amd64/Packages 404 Not Found

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

    ReplyDelete
  32. This comment has been removed by the author.

    ReplyDelete
  33. this is what i got after updating the linux,

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


    Reading package lists... Done Building dependency tree Reading state information... Done
    E: Unable to locate package linux-headers-4.6.0-kali1-amd64
    E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64'
    E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'

    i tried to install the linux headers since without it i hv been told by vmware can't intall it's tools properly, please help

    my email. xrycious@gmail.com or u can also contact me on icq (uin) 704555350
    ;((

    ReplyDelete
    Replies
    1. did you update your sources.list Repositories ?

      Delete
  34. Thanks a lot. it saved me from being dumper..

    ReplyDelete
  35. Hi @Walid, i am still having issues, even after following all your directions, i am having the error,
    Err:1 http://http.kali.org/kali kali-rolling InRelease
    Could not connect to http.kali.org:80 (192.99.200.113). - connect (111: Connection refused)

    MY sources.list file currently looks like:
    deb-src http://http.kali.org/kali kali-rolling main contrib non-free
    deb http://http.kali.org/kali kali-rolling main contrib non-free
    Reading package lists.... Done
    W; Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Could not connect to http.kali.org:80 (192.99.200.113). - connect (11: Connection refused)
    W: Some index files failed to download. They have been ignored, or old ones used instead.

    Please help i really need it to work, note i have followed every single step that you mentioned in the previous posts. Thanks

    ReplyDelete
  36. Replies
    1. how fast is your internet speed and whats the speed you are getting while updating ?

      Delete
  37. hi i cannot seem to do an update in kali (nethunter)Kali GNU/Linux Rolling \n \l

    i keep getting this error:

    root@kali:~# apt-get update
    Err:1 http://http.kali.org/kali kali-rolling InRelease
    Temporary failure resolving 'http.kali.org'
    Reading package lists... Done
    W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Temporary failure resolving 'http.kali.org'
    W: Some index files failed to download. They have been ignored, or old ones used instead.

    My internet works fine, my DNS is set to google DNS 8.8.8.8 and my GPG keyring is up to date.

    root@kali:~# kali-archive-keyring is already the newest version (2015.2).

    this is my source.list:

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


    my kali info:

    Linux kali 3.4.105-g766de8b #1 SMP PREEMPT Sun May 29 13:33:54 PDT 2016 armv7l GNU/Linux

    Distributor ID: Kali
    Description: Kali GNU/Linux Rolling
    Release: kali-rolling
    Codename: kali-rolling

    ReplyDelete
  38. i don't really prove any support for kali nethunter as i don't use it my self ...

    ReplyDelete
  39. Hi,
    I wanted to install mingw but Kali was unable to find the packages. So I did just like you said, install mingw and then reboot : now I can no longer run it in the graphical mode, its completely broke.. Can you help me whit that please ?
    Sorry for my English, I'm French..
    Thanks

    ReplyDelete
    Replies
    1. whats The version of Kali Linux are you using ?
      did you used the right Repositories for your version ?
      and how did you get to install mingw i mean whats the command you used to do that ?

      Delete
  40. Hi,

    Thank you very much! I was stuck and now it's downloading packages.

    Good Job!!!

    ReplyDelete
    Replies
    1. hello i have a problem in installing kali linux while i was installing it a problem in

      Detect network hardware "Some of your hardware needs non-free firmware files to operate.The firmware can be loaded from removable media,....etc

      The missing firmware files is are: b43/ucode15.fw b43/ucode15.fw b43-open/ucode15.fw b43-open/ucode15.fw"

      i managed to install kali linux if i went to terminal and tybe "apt-get update"

      then this appears
      "
      Err:40 http://security.kali.org/kali-security kali/updates/main Sources
      404 Not Found
      Ign:59 http://http.kali.org/kali kali/non-free Translation-en_US
      Ign:42 http://security.kali.org/kali-security kali/updates/contrib Sources
      Ign:61 http://http.kali.org/kali kali/non-free Translation-en
      Ign:44 http://security.kali.org/kali-security kali/updates/non-free Sources
      Ign:46 http://security.kali.org/kali-security kali/updates/main i386 Packages
      Ign:50 http://security.kali.org/kali-security kali/updates/main all Packages
      Ign:51 http://security.kali.org/kali-security kali/updates/main Translation-en_US
      Ign:52 http://security.kali.org/kali-security kali/updates/main Translation-en
      Ign:54 http://security.kali.org/kali-security kali/updates/contrib i386 Packages
      Ign:56 http://security.kali.org/kali-security kali/updates/contrib all Packages
      Ign:58 http://security.kali.org/kali-security kali/updates/contrib Translation-en_US
      Ign:60 http://security.kali.org/kali-security kali/updates/contrib Translation-en
      Fetched 14.5 MB in 51s (284 kB/s)
      Reading package lists... Done
      W: The repository 'http://security.kali.org/kali-security sana/updates Release' does not have a Release file.
      N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
      N: See apt-secure(8) manpage for repository creation and user configuration details.
      W: The repository 'http://security.kali.org/kali-security kali/updates Release' does not have a Release file.
      N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
      N: See apt-secure(8) manpage for repository creation and user configuration details.
      W: The repository 'http://http.kali.org/kali sana Release' does not have a Release file.
      N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
      N: See apt-secure(8) manpage for repository creation and user configuration details.
      W: The repository 'http://http.kali.org/kali kali Release' does not have a Release file.
      N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
      N: See apt-secure(8) manpage for repository creation and user configuration details.
      E: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/main/source/Sources 404 Not Found
      E: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/main/source/Sources 404 Not Found
      E: Failed to fetch http://http.kali.org/kali/dists/sana/main/source/Sources 404 Not Found
      E: Failed to fetch http://http.kali.org/kali/dists/kali/main/source/Sources 404 Not Found
      E: Some index files failed to download. They have been ignored, or old ones used instead."

      Delete
    2. how you are trying to install it in VMware /virtualbox ?

      Delete
    3. No in PC
      kali is the only operating system

      Delete
    4. when you get to this step click on no then continue

      A network mirror can be used to supplement the software that is included on the CD-Rom. This may also make newer versions of sofrware available.

      Use a network mirror ?

      No

      How to Install Kali Linux 2016

      Delete
  41. Hi Walid thanks for your tutorial. I was hoping it will solve my issue but i still keep getting the same error when i try to run the "make" command on kali linux rolling

    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.6.0-kali1-amd64/build M=/rtl8192eu-linux-driver modules
    make[1]: *** /lib/modules/4.6.0-kali1-amd64/build: No such file or directory. Stop.
    Makefile:1335: recipe for target 'modules' failed
    make: *** [modules] Error 2

    ReplyDelete
    Replies
    1. Try to install Linux headers then try to install the Drivers ... to install Linux headers use this Command:
      apt-get install linux-headers-$(uname -r)

      Delete
    2. Hi Walid thanks for your response, when i do that i get this

      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-4.6.0-kali1-amd64
      E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64'
      E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'

      Delete
    3. which version of kali linux are you using ?
      and can you show me your /etc/apt/sources.list

      Delete
    4. Hi Walid, I am using Kali linux Rolling.

      can you show me your /etc/apt/sources.list: heres what i get;

      root@kali:~# nano /etc/apt/sources.list

      #

      # deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 L$

      #deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LI$

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

      Delete
    5. ok change your file to look like this :

      deb http://http.kali.org/kali kali-rolling main contrib non-free
      # For source package access, uncomment the following line
      deb-src http://http.kali.org/kali kali-rolling main contrib non-free

      and in the past did you turn off your computer while it was updating ?

      Delete
    6. oh ok so i delete everything currently in the sources list and change it to:

      deb http://http.kali.org/kali kali-rolling main contrib non-free
      # For source package access, uncomment the following line
      deb-src http://http.kali.org/kali kali-rolling main contrib non-free

      and no I have not but the connection to the internet goes off sometimes and i also try to pause the updates with "cmd+z"

      Delete
    7. here's type those Commands
      1) apt-get update --fix-missing
      2) apt-get clean && apt-get update && apt-get dist-upgrade


      then try to install headers by this Command
      apt-get install linux-headers-$(uname -r)

      Delete
    8. Hi Walid after doing the second step, i get asked
      Do i want to continue? Y/n ?

      should i choose Y?

      Delete
    9. Yes choose Y and if ask more choose Y

      Delete
    10. Hi Walid I followed all the steps rebooted and then tried to install the driver again and i get this

      root@kali:~# cd Desktop
      root@kali:~/Desktop# ls
      compat-wireless-2010-06-26-p TL-WN823N update
      compat-wireless-2010-06-26-p.tar.bz2 TL-WN823N(EU)_V2_160315_Linux.zip
      root@kali:~/Desktop# cd TL-WN823N
      root@kali:~/Desktop/TL-WN823N# ls
      Driver Installation for linux driver_RTL.pdf
      root@kali:~/Desktop/TL-WN823N# cd Driver
      root@kali:~/Desktop/TL-WN823N/Driver# ls
      bin core ifcfg-wlan0 Kconfig os_dep runwpa wpa_0_8.conf
      clean hal include Makefile platform wlan0dhcp
      root@kali:~/Desktop/TL-WN823N/Driver# sudo make
      "******************************************"
      "NO SKRC,we will use default KSRC"
      "******************************************"
      make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.8.0-kali1-amd64/build M=/root/Desktop/TL-WN823N/Driver modules
      make[1]: Entering directory '/usr/src/linux-headers-4.8.0-kali1-amd64'
      "******************************************"
      "NO SKRC,we will use default KSRC"
      "******************************************"
      CC [M] /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.o
      In file included from /root/Desktop/TL-WN823N/Driver/include/drv_types.h:95:0,
      from /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.c:22:
      /root/Desktop/TL-WN823N/Driver/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
      extern char file_path[PATH_LENGTH_MAX];
      ^
      In file included from /usr/src/linux-headers-4.8.0-kali1-common/include/linux/seq_file.h:10:0,
      from /usr/src/linux-headers-4.8.0-kali1-common/include/linux/pinctrl/consumer.h:17,
      from /usr/src/linux-headers-4.8.0-kali1-common/include/linux/pinctrl/devinfo.h:21,
      from /usr/src/linux-headers-4.8.0-kali1-common/include/linux/device.h:24,
      from /usr/src/linux-headers-4.8.0-kali1-common/include/linux/dmaengine.h:20,
      from /usr/src/linux-headers-4.8.0-kali1-common/include/linux/netdevice.h:38,
      from /root/Desktop/TL-WN823N/Driver/include/osdep_service_linux.h:35,
      from /root/Desktop/TL-WN823N/Driver/include/osdep_service.h:41,
      from /root/Desktop/TL-WN823N/Driver/include/drv_types.h:32,
      from /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.c:22:
      /usr/src/linux-headers-4.8.0-kali1-common/include/linux/fs.h:2707:14: note: previous declaration of ‘file_path’ was here
      extern char *file_path(struct file *, char *, int);
      ^
      In file included from /root/Desktop/TL-

      Delete
    11. WN823N/Driver/include/drv_types.h:65:0,
      from /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.c:22:
      /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
      #define _seqdump seq_printf
      ^
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
      if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
      ^
      /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.c:3293:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
      DBG_871X_SEL_NL(sel, "cid:0x%02x, len:%u\n", info->cid, info->len);
      ^
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
      #define _seqdump seq_printf
      ^
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
      if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
      ^
      /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.c:3296:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
      DBG_871X_SEL_NL(sel, "byte2:%s%s%s%s%s%s%s%s\n"
      ^
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
      #define _seqdump seq_printf
      ^
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
      if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
      ^
      /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.c:3308:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
      DBG_871X_SEL_NL(sel, "retry_cnt:%u\n", info->retry_cnt);
      ^
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
      #define _seqdump seq_printf
      ^
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
      if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
      ^
      /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.c:3311:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
      DBG_871X_SEL_NL(sel, "rssi:%u\n", info->rssi);
      ^
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
      #define _seqdump seq_printf
      ^
      /root/Desktop/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
      if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \ ^
      /root/Desktop/TL-WN823N/Driver/core/rtw_cmd.c:3314:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
      DBG_871X_SEL_NL(sel, "byte5:%s%s\n"
      ^
      /usr/src/linux-headers-4.8.0-kali1-common/scripts/Makefile.build:294: recipe for target '/root/Desktop/TL-WN823N/Driver/core/rtw_cmd.o' failed
      make[4]: *** [/root/Desktop/TL-WN823N/Driver/core/rtw_cmd.o] Error 1
      /usr/src/linux-headers-4.8.0-kali1-common/Makefile:1488: recipe for target '_module_/root/Desktop/TL-WN823N/Driver' failed
      make[3]: *** [_module_/root/Desktop/TL-WN823N/Driver] Error 2
      Makefile:150: recipe for target 'sub-make' failed
      make[2]: *** [sub-make] Error 2
      Makefile:8: recipe for target 'all' failed
      make[1]: *** [all] Error 2
      make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-kali1-amd64'
      Makefile:1696: recipe for target 'modules' failed
      make: *** [modules] Error 2
      root@kali:~/Desktop/TL-WN823N/Driver# sudo make install
      "******************************************"
      "NO SKRC,we will use default KSRC"
      "******************************************"
      install -p -m 644 8192eu.ko /lib/modules/4.8.0-kali1-amd64/kernel/drivers/net/wireless/
      install: cannot stat '8192eu.ko': No such file or directory
      Makefile:1702: recipe for target 'install' failed
      make: *** [install] Error 1
      root@kali:~/Desktop/TL-WN823N/Driver#

      Delete
    12. is this the adapter TL-WN823N you are trying to install driver for ?
      im not sure i can help in here but i will try

      Delete
    13. Yeah it is. Any help would be accepted ;((

      Delete
    14. Hows it going Walid, any options yet?

      Delete
    15. i'm trying to find a working Drivers for this adapter
      many of those who get it to work can't get monitor mode working on it

      Delete
  42. Hi Walid thanks for checking in. I have not been able to check it yet. Once i do i'd get back to you.

    ReplyDelete
  43. apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
    Err http://repo.kali.org kali-rolling InRelease

    Err http://repo.kali.org kali-rolling Release.gpg
    Could not resolve 'repo.kali.org'
    Segmentation fault
    Reading package lists... Done
    W: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease

    W: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/Release.gpg Could not resolve 'repo.kali.org'

    W: Some index files failed to download. They have been ignored, or old ones used instead.
    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.
    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.
    root@RahulYadav-PC:/home/astra#
    help me bro

    ReplyDelete
    Replies
    1. you are not using the one i give here ... change your file to


      # For source package access, uncomment the following line
      # deb-src http://http.kali.org/kali kali-rolling main contrib non-free
      deb-src http://http.kali.org/kali kali-rolling main contrib non-free
      deb http://http.kali.org/kali kali-rolling main contrib non-free

      Delete
    2. hello i tried to install wine and winusb32 in kali rolling but i get the same massege every time

      root@kali:/home/kali/Downloads# apt-get install wine
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      wine is already the newest version (1.8.5-1).
      You might want to run 'apt-get -f install' to correct these:
      The following packages have unmet dependencies:
      google-chrome-stable : Depends: libappindicator1 but it is not going to be installed
      E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
      root@kali:/home/kali/Downloads# wine
      it looks like wine32 is missing, you should install it.
      as root, please execute "apt-get install wine32"
      Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
      wine --help Display this help and exit
      wine --version Output version information and exit
      root@kali:/home/kali/Downloads# wine --version
      it looks like wine32 is missing, you should install it.
      as root, please execute "apt-get install wine32"
      wine-1.8.5 (Debian 1.8.5-1)
      root@kali:/home/kali/Downloads#

      i used the repo u just posted for Walid, but it did not help, can u plz help me ?

      Delete

[blogger]

Author Name

{picture#YOUR_PROFILE_PICTURE_URL} YOUR_PROFILE_DESCRIPTION {facebook#https://www.facebook.com/wTsXDev} {twitter#https://twitter.com/wTsDev} {google#https://plus.google.com/u/0/+AnonSalame} {pinterest#https://www.pinterest.com/Thexwts/} {youtube#https://www.youtube.com/channel/UCg2fUa8Yp-aWDCJYQTVHmBg}

Contact Form

Name

Email *

Message *

Powered by Blogger.