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)
31 Answer
Edit the /etc/resolv.conf file and change it from:
nameserver 172.24.0.1to:
nameserver 1.1.1.1Or the IP of another DNS server of your choice.