After installing Kali Linux from an ISO file, you may need to manually update the kali linux repository sources.list file with the official list of repositories.
This guide will show you how to add Kali Linux repositories to sources.list.
Apt requires software repositories to download packages and install them on your computer.
So, let’s begin.

Kali Linux official repository
First after installing a clean Kali Linux the sources.list contains 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 may update a few apps and if you try to install a new app 90% it won’t and it will give you a message like this one E:Unable to locate package

The simplest way is to edit the
/etc/apt/sources.list
Clear your Sources.list file by removing everything inside to do so please follow those steps:
Terminal command:
sudo mousepad /etc/apt/sources.list
after this commend, you will get something like this

now remove every line of them and add this new lines
kali linux repository
kali linux 2020
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
Kali Linux 2017.1
Kali Linux 2017.1 sources.list use the repo below:
deb http://repo.kali.org/kali kali-rolling main non-free contrib
For Kali Linux 2016 β Kali Rolling use the repo below:
# For source package access, uncomment the following line deb http://http.kali.org/kali kali-rolling main contrib non-free
Kali Linux 2.0
For Kali Linux 2.0 β Kali Sana uses the repo below:
No more 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 <h1>Source repositories</h1> 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
Kali Linux 1.x
For Kali Linux 1.x users use the repo below:
No more update for Kali 1.0 please 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 <h2>Source repositories</h2> 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. Details and explanations can be found in adding official Kali Linux Repositories page.
Now after we are done adding Kali Linux Repositories it’s time to do Clean, update, upgrade and dist-upgrade for Kali installation, to do so follow those commands
apt-get clean & apt-get update & apt-get upgrade -y & apt-get dist-upgrade -y
How to update Kali Linux repository
To update Kali Linux repository first log in as root or user and start the terminal.
In the terminal, check the current list of apt repositories present on the system.
cat /etc/apt/sources.list

If there are no APT repositories, paste the code below to add them.
sudo tee -a /etc/apt/sources.list&lt;&lt;EOF 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 EOF
The command shown above will add standard and source repositories to /etc/apt/sources.list .
Confirm that they are added and Update the list of your packages:
sudo apt update
- 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 the 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 please check this post
how to update Kali Linux and Fix update error
You may also check this youtbe Video
how to update Kali Linux and fix kali sources.list Repositories
Have a great day hope I did help π
leave a comment and Follow me on Twitter
Worked π … Thanks a lot
Thanks worked for me
you are more then welcome
Great π
This comment has been removed by the author.
Thanks, worked for me π
Thanks <3
great you are welcome π
welcome mr unknown π
it's still not working for me… please help…
witch one you are using ? ?
The Kali Rolling 2016
Kali moto (1.0)
Kali Linux 2.0
and whatss the error you are geting
same problem of me…
i'm using kali linux 1.1.0
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
i do that on my new brand kali but have some fails that get erorre 404 file not found thats okay ?
forget to say i use kali rolling
if you can copy the error and post it here that would help …
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…
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 π
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..
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..
try this>>>
1) apt-get update –fix-missing
2) apt-get update && apt-get upgrade
for better understanding read this post
https://kalitut.com/how-to-update-kali-linux-and-fix-update.html
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
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 π
Ashton Whitemonk
the sources.list file of Kali Sana is not like the one of kali rolling and it wont work that way …
okay that's great,
i hope you will always find what you need in this blog π
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
you are more then welcome π glad i did help π
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. . . .
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."
i dont really get whats the error you are getting ?
can you post it here ?
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 ,
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."
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 ?
Thanks a lot , finally it work for me
you are more then welcome π
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
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
Big thanks buddy for this!
very good and very easy thank's
You are welcome
Glad to hear that π
BrO YOu help me :
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
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
hi walid π
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
hi there … try this commend
apt-get update –fix-missing
and check this post
https://kalitut.com/how-to-update-kali-linux-and-fix-update/
This comment has been removed by the author.
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!
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
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
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
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.
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
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.
work, thanks you are my hero
but if i start for example (wine idm.exe)
i have messeges : wine: bad exe
help me please
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
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
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
did you check your sources.list Repositories ?
this is so helpfull.. thank a lot bro π
Thanks man you really helped me with this, gratitude…
Bereh3 i achehness
Thank a lot
awesome thanx!
welcome π
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
k to hai hero mera. worked !!! So glad it did finally!!
Thanks @Walid Salame For Helping Newbie Kali Linux User. It's Awesome Post and Helpful.
you are welcome π
thats great , welcome to kali linux world π
THanks a ton. At last it sorted out my problems.
That's great
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.
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.
Thank you!
you are welcome π
Check this post on how to upgrade to 2016
Kali Linux 2016
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
bro its not working for me i am using the latest one kali 2016.2 please help me
let's start with fixing your source.list file
just do as you see on this post and update your repository sources.list
thx
thz
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)
please salve to me this problems
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.
you still use kali linux 2 ?
are you using kali linux 2016.2 ?
This comment has been removed by the author.
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. [email protected] or u can also contact me on icq (uin) 704555350ο»Ώ
;((
Thanks a lot. it saved me from being dumper..
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
slow update,how to fix this ?
how fast is your internet speed and whats the speed you are getting while updating ?
try to reboot and update
you are more then welcome π
did you update your sources.list Repositories ?
thanks, seems fine now
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
i don't really prove any support for kali nethunter as i don't use it my self …
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
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 ?
Hi,
Thank you very much! I was stuck and now it's downloading packages.
Good Job!!!
Great π
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."
..
how you are trying to install it in VMware /virtualbox ?
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
No in PC
kali is the only operating system
I'm the same guy o-b
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
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)
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'
which version of kali linux are you using ?
and can you show me your /etc/apt/sources.list
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
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 ?
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"
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)
did that work for you ?
Hi Walid thanks for checking in. I have not been able to check it yet. Once i do i'd get back to you.
Hi Walid after doing the second step, i get asked
Do i want to continue? Y/n ?
should i choose Y?
Yes choose Y and if ask more choose Y
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-
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:%un", 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%sn"
^
/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:%un", 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:%un", 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%sn"
^
/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#
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
Yeah it is. Any help would be accepted ;((
Hows it going Walid, any options yet?
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
thanks man, you're a life saver
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
same with me help me
walid please help me
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
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 ?
it doesn't working with kali moto 1
thanks a lot bro it is working i love you (k)
thanks a lot bro
I know this is old but if you are using Kali Rolling this is what the latest update put into the source list. It's the only entry.
deb http://http.kali.org/kali kali-rolling main non-free contrib
Hello Sir I did what you said but it took long time and after the reboot its not accepting my password ….. please help…!
im using kali linux 2016
and i can't install any software even software center and synaptic. also
while trying to install it shows error like it:-
root@dhcppc12:~# sudo apt-get install software-center
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package software-center 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 'software-center' has no installation candidate
root@dhcppc12:~#
Not working too
The repository doesn't have release file
using 2017 version
deb http://repo.kali.org/kali kali-rolling main non-free contrib
im using this repository to update and install what every i need , never had any problem with it yet
Hi!
Sir I'm trying to install thefatrat tool but I always get an error it says mingw-w64 not found how do I solve this error plz help me.
Hi!
Sir I'm trying to install thefatrat tool but I get an error it say mingw-w64 not found how do I install mingw-w64 plz help
apt-get install aptitude
not work
please help me……..
I Love This site It Worked!!!!!!!!!!!!!!!!!!! Thank YOU !!!!!!!!!!!!!!!!!!!!!!!!!!!!
my Pleasure
for what you need it !!!
thanks
403 forbidden 2017.3 version
not working 403 forbidden 2017.3
not working 403 forbidden 2017.3
not working 403 forbidden 2017.3
Wondered could I get some help with this.
Not working for me.
Error I get is :
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
Get:1 http://ftp.hands.com/kali kali-rolling InRelease [30.5 kB]
Err:1 http://ftp.hands.com/kali kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository
Reading package lists… Done
W: GPG error: http://ftp.hands.com/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository
E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
My sources.list looks like:
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
Version of kali:
uname -a
Linux kali 4.13.0-kali1-amd64 #1 SMP Debian 4.13.10-1kali2 (2017-11-08) x86_64 GNU/Linux
solved this signature problem. You need to be sudo to do that…
wget -q -O – https://archive.kali.org/archive-key.asc | apt-key add
well, thats it
please am confused dnt know what to do its still giving me this same error
root@crash-override:~# apt-get update
Hit:1 http://deb.leap.se/client release InRelease
Err:1 http://deb.leap.se/client release InRelease
The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.leap.se/client release InRelease: The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
W: Failed to fetch http://deb.leap.se/client/dists/release/InRelease The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
W: Some index files failed to download. They have been ignored, or old ones used instead.
also this error at the end
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.leap.se/client release InRelease: The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
W: Failed to fetch http://deb.leap.se/client/dists/release/InRelease The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
W: Some index files failed to download. They have been ignored, or old ones used instead.
also this error at the end
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.leap.se/client release InRelease: The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
W: Failed to fetch http://deb.leap.se/client/dists/release/InRelease The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
W: Some index files failed to download. They have been ignored, or old ones used instead.
this is what its always saying each time i do apt-get update
and this is what my sources list looks like
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
this is the error it gives
Hit:8 http://deb.leap.se/client release InRelease
Err:8 http://deb.leap.se/client release InRelease
The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
please mine isnt updating again…see the error message
root@crash-override:~# apt-get update
Hit:1 http://deb.leap.se/client release InRelease
Err:1 http://deb.leap.se/client release InRelease
The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Get:5 http://kali-za.bitcrack.net/kali kali-rolling InRelease [30.5 kB]
Err:5 http://kali-za.bitcrack.net/kali kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.leap.se/client release InRelease: The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://kali-za.bitcrack.net/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository
W: Failed to fetch http://deb.leap.se/client/dists/release/InRelease The following signatures were invalid: EXPKEYSIG 1E34A1828E207901 LEAP archive signing key
W: Some index files failed to download. They have been ignored, or old ones used instead.
Same Problem please help us anyone !!!
hello brothers i have used many repositories with official repository but still not working i have this issue ……………..
root@kali:~# apt-get update
Err:1 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease
Cannot initiate the connection to mirrors.neusoft.edu.cn:80 (2001:da8:a807::25). – connect (101: Network is unreachable) Could not connect to mirrors.neusoft.edu.cn:80 (219.216.128.25), connection timed out
Reading package lists… Done
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Cannot initiate the connection to mirrors.neusoft.edu.cn:80 (2001:da8:a807::25). – connect (101: Network is unreachable) Could not connect to mirrors.neusoft.edu.cn:80 (219.216.128.25), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
i have used many repositories but still not working
i have used all this repositories but not working
1
deb http://http.kali.org/kali kali-rolling main non-free contrib
#deb cdrom:[Debian GNU/Linux 2019.2 _Kali-rolling_ – Official Snapshot amd64 LIVE/INSTALL Binary 20190508-08:43]/ kali-last-snapshot contrib main non-free
#deb cdrom:[Debian GNU/Linux 2019.2 _Kali-rolling_ – Official Snapshot amd64 LIVE/INSTALL Binary 20190508-08:43]/ kali-last-snapshot contrib main non-free
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
2
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
3
# 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
4
## 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
5
deb http://repo.kali.org/kali kali-rolling main non-free contrib
Don’t use so much similar repository.. it only cost you time
Bro first i try to install Mozilla on my terminal but it is not work and if i try to update it said
” Type ‘οΏ½?ndeb’ is not known on line 4 in source list /etc/apt/sources.list
E: The list of sources could not be read
So i cant use
worked for me too… tnx a lot!
it is very usefull 100% working
so i get this when i try to update ,what should i do ?.
apt update
Get:1 https://www.duinsoft.nl/pkg debs InRelease [6,862 B]
Err:1 https://www.duinsoft.nl/pkg debs InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY E18CE6625CB26B26
Hit:2 http://mirror.serverius.net/kali kali-rolling InRelease
Reading package lists… Done
W: GPG error: https://www.duinsoft.nl/pkg debs InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY E18CE6625CB26B26
E: The repository ‘http://www.duinsoft.nl/pkg debs InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.