I’m using Kali Linux but the apt-get install command is not working to install any application on my system.
Mustafa1112221
I think it’s got something to do with my Kali Linux repository sources.list file. The file may be empty or the current repo address is wrong or experiencing a problem.
Please, could someone provide me a link to the Kali official sources.list file?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Open a terminal and follow these instructions:
- Type
sudo -i - Type in your password.
- Type
touch /etc/apt/sources.list - Type
chmod 644 /etc/apt/sources.list - Type
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list - Type
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6 - Type
apt update - Now install whatever it is that you want to install.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0