id
command is this?:uid=0(root) gid=0(root) groups=0(root)
ls -la /etc/apt
? Should look like this:...
-rw-r--r-- 1 root root 475 Jan 5 07:29 sources.list
...
*face palm* Didn't see that...you need to add some tools which one you want to use, like vi or nano
the correct comand:
vi /etc/apt/sources.list
nano /etc/apt/sources.list
and then save with CTRL+X, Y.its saying permission deniedSounds like you setup a wrong DNS server. Put your routers IP or a public DNS server like 8.8.8.8 in /etc/resolv.conf.
thank you its now workingThere is your problem. You should google what a gateway is and what it does. Change it to your routers IP (for example 192.168.1.1) and then restart your networking usingsystemctl restart networking
.