LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-06-2010, 08:14 PM   #1
inawaz
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
Issues with resolv.conf?


Hey guys,

i just built out a linux box on one of the older PC's i had around. Installed Debian from cd 1 i386.

Debian is up and runnning just fine, but im having issues reaching out to the internet. I've done some research and found that my resolv.conf file needs to be configured properly. i tried looking for it in /etc/resolv.conf, but resolv wasnt even there. Did some more research and saw that i could create one if i go to system>administration>network and then the DNS tab. Over here i added the DNS Servers manually. The three IP's i got were from a windows box i have and i did an ipconfig /all to find the DNS Servers.

After i did this i was able to see 'resolv.conf' in my /etc file. i have then tried to run apt-get update, but i still get errors.

I have tried to configure the resolv.conf file myself using pico:

# resolv.conf
# 01-06-10
# search .
# domain xxxx (since i'm not on a domain)
nameserver 24.xxx.yyy.15 (the three DNS servers listed from my ipconfig /all)
nameserver 24.xxx.yyy.16
nameserver 192.xxx.z.2
# nameserver 192.xxx.yyy.y.z (IP address)

In the /etc/apt/sources.list, i have:

deb http://http.us.debian.org/debian stable main contrib non-free
(amongst two others. But when i researched, it seemed the top one was the important one to run apt-get update.)

FYI: the error usually is this, when i try to run 'apt-get install resolveconf':

" Package resolvconf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package resolvconf has no installation candidate. "

Any help would be greatly appreciated.

Thank you!!
 
Old 01-06-2010, 08:32 PM   #2
userlander
Member
 
Registered: Jul 2008
Distribution: Arch, Debian
Posts: 61

Rep: Reputation: 18
try using the opendns servers:

Code:
# /etc/resolv.conf
nameserver 208.67.220.220
nameserver 208.67.222.222
comment out all the rest.

The apt-get error has nothing to do with DNS, though. Unless you're running stable for a specific reason, I would suggest changing stable to testing and then apt-get updating and upgrading. That might give you resolvconf, or maybe it's been phased out. If you set your resolv.conf to opendns or whatever works for you, you shouldn't really need resolvconf.

Last edited by userlander; 01-06-2010 at 08:35 PM.
 
Old 01-06-2010, 09:59 PM   #3
inawaz
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
just looked up what resolvconf is, and yea... i really dont need it since this is a home set up with my dns not changing. It's cable modem to wireless router with ethernet cable from wireless go my linux box.

I've changed my resolv.conf file to read:

# /etc/resolv.conf
nameserver 208.67.220.220
nameserver 208.67.222.222

i've changed my sources.list to read:

deb http://http.us.debian.org/debian testing main contrib non-free
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free

apt-get updating doesn't do anything for me. And apt-get upgrade gives me:

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
(essentially, nothing...)

Any ideas here?

I'm very new to linux and just trying to figure this out..

thanks!

Last edited by inawaz; 01-06-2010 at 11:22 PM.
 
Old 01-06-2010, 11:22 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Quote:
Originally Posted by inawaz View Post
just looked up what resolvconf is, and yea... i really dont need it since this is a home set up with my dns not changing. It's cable modem to wireless router with ethernet cable from wireless go my linux box.

I've changed my resolv.conf file to read:

# /etc/resolv.conf
nameserver 208.67.220.220
nameserver 208.67.222.222

i've changed my sources.list to read:

deb http://http.us.debian.org/debian testing main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free

apt-get updating doesn't do anything for me. And apt-get upgrade gives me:

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
(essentially, nothing...)

Any ideas here?

I'm very new to linux and just trying to figure this out..

thanks!
No reason to switch to testing. Ignore anyone who says otherwise.Please do not suggest Testing or Unstable for someone that is new to Debian. Stick with stable until you get the hang of things.

Please change your sources.list back to stable, it should look something like:
Code:
#Stable
deb http://http.us.debian.org/debian/ lenny main contrib non-free
#Stable Sources
deb-src http://http.us.debian.org/debian/ lenny main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ lenny/updates main contrib non-free


Also you want to use aptitude and not apt-get.
aptitude update
aptitude upgrade
aptitude full-upgrade
aptitude user's manual - http://algebraicthunk.net/~dburrows/...titude/doc/en/

Can you get online with any browser?

After you get things up and running you will probably want to add the backports.org and debian-multimedia.org repos to your sources.list , but they are necessary atm.
 
Old 01-07-2010, 03:10 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Let's start with the basics
Can you ping?
what is the output from
Code:
ping 212.100.160.51
ping www.google.com
what's the output from
Code:
aptitude update

Last edited by repo; 01-07-2010 at 08:57 AM.
 
Old 01-07-2010, 08:51 AM   #6
userlander
Member
 
Registered: Jul 2008
Distribution: Arch, Debian
Posts: 61

Rep: Reputation: 18
Quote:
Originally Posted by craigevil View Post
No reason to switch to testing. Ignore anyone who says otherwise.Please do not suggest Testing or Unstable for someone that is new to Debian. Stick with stable until you get the hang of things.
bahh, that's baloney. I've used testing on a server for 4-5 years now at least, have never had one problem.

You might in fact have more problems with stable, OP, as some of the packages can be really out of date. If that's a desktop machine, I strongly suggest you use testing.


Quote:
Also you want to use aptitude and not apt-get.
aptitude update
aptitude upgrade
aptitude full-upgrade
aptitude user's manual - http://algebraicthunk.net/~dburrows/...titude/doc/en/
If he's starting out using apt-get and he's a newbie, telling him to switch to a whole new program to learn while he's trying to figure out something else will just make him more confused. OP, stick with whatever you're comfortable with. apt-get works fine. Nothing wrong with aptitude, either, it's just a matter of choice. But if you're familiar with apt-get, no reason to change now until you're more settled in.

Quote:
After you get things up and running you will probably want to add the backports.org and debian-multimedia.org repos to your sources.list , but they are necessary atm.
nope, those are not necessary now in the least.

like repo said, you need to ping, show the output of apt-get update (it should return a bunch of lines showing the servers and amount of data it fetched), and show ifconfig while you're at it to make sure your net interface is even up.
 
  


Reply



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
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
resolv.conf dns issues billbob Linux - Software 3 09-30-2005 12:20 PM
resolv.conf jmdlcar Slackware 9 05-15-2004 11:44 AM
resolv.conf dnsbum Linux - Networking 1 10-21-2003 12:00 PM
Resolv.conf issues when switching from eth to ppp Supp0rtLinux Linux - Networking 2 12-30-2001 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 PM.

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
Open Source Consulting | Domain Registration