ssh but no apt-get update
Hi all
I am able to ssh into a remote server. when logged in I am able to su to root however, once i am there, i am unable to: apt-get update apt-get install ping wget or anything else. the result is always the same. unable to resolve host address or Could not resolve 'address' does anyone know what has gone wrong here? kind regards |
Can you ping google.com? How about 208.117.232.82?
If your answers are no and yes respectively, then it's a DNS problem and you could try adding 8.8.8.8 to /etc/resolv.conf. |
hi thanks for reply
google no 208.117.232.82 YES ? |
See my late edit:
Quote:
|
fixed
that seems to have worked
dumb question. that was working fine last few days. any ideas why that would have stopped working? thanks very much for your assistance. |
It's hard to pin point the exact reason since I don't know what you have been doing or even what distro you are using. I'm assuming it's Ubuntu or some debian based distro. Regarding your DNS problem, may be you were using static ip and then you used Network Manager and it changed /etc/resolv.conf?
|
All times are GMT -5. The time now is 04:04 AM. |