I'm trying to get internet works on WSL Ubuntu and one of the solutions is the following
sudo rm /etc/resolv.confsudo bash -c 'echo "nameservers 8.8.8.8" > /etc/resolv.conf'sudo bash -c 'echo "[network]" > /etc/wsl.conf'sudo bash -c 'echo "generateResolvConf=false" >> /etc/wsl.conf'sudo chattr +i /etc/resolv.conf
but when I try to install chattr command sudo apt install chattr
it keeps responding with unable to locate package even though the internet is temporarily working
Also, I tried to use e2fsprogs
but for some reason even if the command seems to be installed and updated as per shell promote, once I use it the shell responds back with command not found.