LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ssh but no apt-get update (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-but-no-apt-get-update-4175481430/)

schwarza 10-19-2013 03:13 PM

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

suicidaleggroll 10-19-2013 03:17 PM

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.

schwarza 10-19-2013 03:19 PM

hi thanks for reply

google no
208.117.232.82 YES

?

suicidaleggroll 10-19-2013 03:31 PM

See my late edit:

Quote:

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.

schwarza 10-19-2013 03:36 PM

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.

GNU/Linux 10-20-2013 01:56 AM

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.