Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: [SOLVED] apt-get update Could not resolve errors

  1. #11
    Join Date
    Dec 2007
    Beans
    10

    Re: apt-get update Could not resolve errors

    Quote Originally Posted by windependence View Post
    Are you running a lot of computers on your LAN (more than 10 or so)? If not, you probably don't need to be running a local DNS server. For some reason, here on the Ubuntu forums, everyone thinks they need to be running one of those. If you have a very large network, then yes, you need one but otherwise, it just adds more complexity to your network.
    There are about 50-60 computers running on this network, including a few people who connect via a VPN.

    Quote Originally Posted by windependence View Post
    Obviously, it can't connect to the repositories. You could try substituting the actual IP of the repo servers in your sources list to eliminate the need for DNS lookup
    What do I do about the sub-domains? Sorry for my lack of knowledge here, but will it still work if I substitute all of it or what portion of the name do I substitute?

    Quote Originally Posted by windependence View Post
    OR you could add an entry for them in your /etc/hosts file which isn't a bad idea anyway because it eliminates the DNS lookup on the external DNS. The server checks that file first when resolving names so it's faster for any site you use frequently.

    -Tim
    This solution makes sense to me, I'll try it and let you know the result. My only concern is still the sub-domains, although I'd imagine these would be handled by the web server based on the information I was requesting. Any help in better understanding this would be appreciated!

  2. #12
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: apt-get update Could not resolve errors

    OK for example, http://us.archive.ubuntu.com/ubuntu/ becomes:

    http://91.189.88.46/ubuntu/

    In your hosts file you need only the main domain:

    Code:
    91.189.88.46     us.archive.ubuntu.com
    Got it? You should restart the network after the changes.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  3. #13
    Join Date
    Dec 2007
    Beans
    10

    Re: apt-get update Could not resolve errors

    OK, looks like that did it, no more could not resolve errors!!

    Just as a side note i had to add:
    Code:
    91.189.88.46    us.archive.ubuntu.com
    91.189.88.46    security.ubuntu.com
    But I wanted to know can I do this instead:
    Code:
    91.189.88.46    *.ubuntu.com
    Seems to be working ok, just curious in case something changes in the future with the sub-domains, I don't want to be left guessing!!

    Again, thanks for all the help, always find what I need on here!!

  4. #14
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: apt-get update Could not resolve errors

    I don't think you even need the wildcard. I think

    Code:
    91.189.88.46    ubuntu.com
    will work just fine. You could even leave the other entries. Won't hurt anything.

    BTW, glad to help. Keeps my skills sharp.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  5. #15
    Join Date
    Dec 2007
    Beans
    10

    Re: apt-get update Could not resolve errors

    Hmmmm, doesn't appear to work if i just put in 'ubuntu.com' for some reason, although I, just like you, thought that should work. Not complaining though, just glad I found a workaround, thanks again!!

  6. #16
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: apt-get update Could not resolve errors

    Well I wasn't sure about it. Now we know.

    Glad you got it worked out.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  7. #17
    Join Date
    Aug 2008
    Location
    California
    Beans
    7
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [SOLVED] apt-get update Could not resolve errors

    i was having this problem as well and followed what you suggested about editing the /etc/hosts file - it worked. but this means for me that i am not communicating with a dns server at all - as this is a list for matching ip to a name. what do you think? i am using a ATT dsl router that acts as a gateway and DNS resolver i updated with apt-get update but can ping anyone.

  8. #18
    Join Date
    Jul 2009
    Beans
    1

    Re: [SOLVED] apt-get update Could not resolve errors

    I had this exact problem, and thought it silly that there wasn't a simple fix.

    I checked my network config, and saw that I hadn't hooked up the server to the gateway on my router (don't ask me why my DHCP server isn't handling this: let's just say cheap router).

    I set the correct value, restarted my networking, and it all just worked.

    Yes, I'm dumb - but thought this might help some

  9. #19
    Join Date
    Jul 2009
    Beans
    1

    Re: [SOLVED] apt-get update Could not resolve errors

    I was able to solve this problem by doing a dhcp release/dhcp renew on my router. Everything works great after that

  10. #20
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [SOLVED] apt-get update Could not resolve errors

    Since you brought the thread back up, I need to make a correction as well. The DNS server I quoted should be 4.2.2.2, NOT 2.2.2.4. You can use 4.2.2.2 thru 4.2.2.6.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •