![]() The single most common causes of a broken Kali Linux installation are following unofficial advice, and particularly arbitrarily populating the system’s sources.list file with unofficial repositories. Make sure there is no other repositories or lines because according to the documentation: ![]() # deb-src kali-rolling main contrib non-free # For source package access, uncomment the following line Your /etc/apt/sources.list should look exactly like this: deb kali-rolling main contrib non-free If you are not or do not know what I mean, please refer to the Official Kali Linux Documentation SolutionĪccording to the Official Kali Linux Documentation concerning the sources.list file. This answer is assuming that you have installed Kali Linux or are running it in a Live Persistent configuration. ![]() Write your port number in place of 'port' Please add the following three lines in /etc/apt/apt.confĪcquire::http::proxy " Acquire::ftp::proxy "ftp://proxy:port/" Īcquire::https::proxy " write your IP address in place of 'proxy' Using text editor add these lines to /etc/apt/sources.list fileĭeb-src kali/updates main contrib non-free Please keep a back up file before changing the sources.list file If you find the same error, please choose another solution.Īpt-key adv -keyserver hkp:// -recv-keys 7D8D0BF6 Try using https repository by executing the following commandĮcho "deb kali-rolling main non-free contrib" > /etc/apt/sources.list ![]() If it shows 'Index' in browser then please go for solution 1. Please check with your network admin in that case.Īlso try to open this URL from a browser. If you can't see the Index then it might be the cause of firewall/proxy blocks your connection. These can be enabled via the Windows GUI or by running the following commands in an elevated prompt.Can you see the repository (/kali) in a browser?ĭoes it show 'Index of /kali' in your browser? The following windows features must be enabled to run WSL 2.0 The examples below are from a system running Windows Insider build 1.1. PrerequisitesĪt the time of writing this blog post you must run Windows 10 build 18917 or higher, which means that you need to be at least on the slow ring of the Windows Insiders builds. Now let me be honest here all the information described below does already exist across various websites and forums, the primary objective of this blog post is to put it all in one place to provide others and myself with all the necessary instructions to get kali linux up and running in WSL 2.0 and use RDP to connect to the kali desktop. What’s nice about running kali in WSL is that you get easy and quick access to linux tools without having to setup and start a complete virtual machine.īut what if you want to run a tool with a GUI? Well with a few tricks that works as well. Since Microsoft introduced WSL ( Windows Subsystem for Linux) I’ve been playing with it occasionally, in the beginning however some of the tools I wanted to use like nmap and hping3 would not work due to issues with networking in WSL 1.0, however with WSL 2.0 these issues seem to be resolved so gave it another try earlier this year in June and all worked as expected.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |