Why Installing kali linux metapackage, returns"Temporary failure resolving 'http.kali.org'"

I was installing all kali linux metapackages with sudo apt install -y kali-linux-everything. Since it was very large I had to disconnect the network and re-run the command again (I had limited network plan). It worked for 6 days and was almost finished. But today I got this:(image here: ) (complete log: )

I'm running this command from kali-linux distro in wsl2. With --fix-missing I get the same error. Then I ran apt-get update. And got this: (image here: )

To check if there is problem with network I ran curl and got this: (Image here: ) But when ran from command prompt it works: (image here: )

What is wrong with kali-linux terminal? How do I fix It (I don't know if you need more information to fix this. But I'll defnetly provide them if you ask)

3

1 Answer

Edit the /etc/resolv.conf file and change it from:

nameserver 172.24.0.1

to:

nameserver 1.1.1.1

Or the IP of another DNS server of your choice.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like