Fix Kali Nethunter Failed apt update | Temporary Failure resolving ''http.kali.org"
I installed Kali NetHunter through Magisk, but as always, it can't do an apt
update. If that's your case, then don't worry; all you have to do is edit one
line in
/etc/passwd. But before that, it's always good practice to backup system files, so
enter:
cp /etc/passwd /etc/passwd.bcp
Then you could proceed to the next step, which is editing this text below.
We will edit using Vim this time, you could also use Nano if that is your preferred option. Just enter:
vim /etc/passwd
edit line started with _apt into something like this
_apt:x:0:65534::/nonexistent:/usr/sbin/nologin
That's it; just type apt update, and it will be successful this time. I also provide video in case you want to.