LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2013, 04:13 PM   #1
schwarza
LQ Newbie
 
Registered: Oct 2013
Posts: 5

Rep: Reputation: Disabled
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
 
Old 10-19-2013, 04:17 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,358

Rep: Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990
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.

Last edited by suicidaleggroll; 10-19-2013 at 04:19 PM.
 
Old 10-19-2013, 04:19 PM   #3
schwarza
LQ Newbie
 
Registered: Oct 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
hi thanks for reply

google no
208.117.232.82 YES

?
 
Old 10-19-2013, 04:31 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,358

Rep: Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990
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.
 
Old 10-19-2013, 04:36 PM   #5
schwarza
LQ Newbie
 
Registered: Oct 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-20-2013, 02:56 AM   #6
GNU/Linux
Member
 
Registered: Sep 2012
Distribution: Slackware-14
Posts: 118

Rep: Reputation: Disabled
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 404errors when running apt-get update already tried sudo rm /var/lib/apt/lists/* -vf rasec8711 Linux - Software 2 05-31-2012 11:33 AM
Installing from apt-get fails often, apt-get update gives error, etc What should ido? mitchell7man Ubuntu 3 02-27-2012 03:55 AM
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 08:47 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 01:28 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 02:27 AM


All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration