Alberto Fuentes wrote:
> Joy Sankar Sengupta wrote:
> >After executing the command I got the following output:-
> ># generated by NetworkManager, do not edit!
> 
> I dont know if you suffer from other problems/bugs as others said,
> but your main problem is that you dont have a DNS server set in your
> computer as seen in your empty /etc/resolv.conf and your previous
> error
> >Err http://http.us.debian.org etch Release.gpg
> > Could not resolve 'http.us.debian.org'

Agreed.  But why is resolv.conf empty?  That is the first problem to
solve.  Solve it first.

> One way to fix it is to
> $ sudo -i
> # echo "servername 8.8.8.8" >> /etc/resolv.conf

Almost but not quite.  The word is "nameserver" not "servername".  And
to deal with potential broken lines there now I would truncate the
file with full contents.  This would fix it.

  # echo "nameserver 8.8.8.8" > /etc/resolv.conf

And of course 8.8.8.8 is Google's public dns service.  An easy to
remember address.  Should work to get you going.

HOWEVER!  The file is probably empty due to not having any network
connection.  Instead of doing the above at all I think it would be
better to determine what the network problem is all about and fixing
it first.  Then with that fixed the /etc/resolv.conf issue will be
fixed too.

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to