apt-get update command is not functioning.

Discussion in 'Installation/Configuration' started by Hans, Feb 15, 2006.

  1. Hans

    Hans Moderator Moderator

    When i give the command "apt-get update" i have the following results":


    server1:/home/admin# apt-get update
    Err http://ftp.nl.debian.org stable/main Packages
    Temporary failure resolving 'ftp.nl.debian.org'
    Err http://security.debian.org stable/updates/main Packages
    Temporary failure resolving 'security.debian.org'
    Err http://ftp.nl.debian.org stable/main Release
    Temporary failure resolving 'ftp.nl.debian.org'
    Err http://security.debian.org stable/updates/main Release
    Temporary failure resolving 'security.debian.org'
    Err http://ftp.nl.debian.org stable/main Sources
    Temporary failure resolving 'ftp.nl.debian.org'
    Err http://ftp.nl.debian.org stable/main Release
    Temporary failure resolving 'ftp.nl.debian.org'
    Failed to fetch http://ftp.nl.debian.org/debian/dists/stable/main/binary-i386/Packages.gz Temporary failure resolving 'ftp.nl.debian.org'
    Failed to fetch http://ftp.nl.debian.org/debian/dists/stable/main/binary-i386/Release Temporary failure resolving 'ftp.nl.debian.org'
    Failed to fetch http://ftp.nl.debian.org/debian/dists/stable/main/source/Sources.gz Temporary failure resolving 'ftp.nl.debian.org'
    Failed to fetch http://ftp.nl.debian.org/debian/dists/stable/main/source/Release Temporary failure resolving 'ftp.nl.debian.org'
    Failed to fetch http://security.debian.org/dists/stable/updates/main/binary-i386/Packages.gz Temporary failure resolving 'security.debian.org'
    Failed to fetch http://security.debian.org/dists/stable/updates/main/binary-i386/Release Temporary failure resolving 'security.debian.org'
    Reading Package Lists... Done
    E: Some index files failed to download, they have been ignored, or old ones used instead.

    What could be wrong?
    (I have receive these results everytime i give the mentioned command.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Your server is unable to resolve the IP addresses for domain names.

    Please check your /etc/resolv.conf if the nameservers listed there are working and reachable from your server.
     
  3. Hans

    Hans Moderator Moderator

    Re:

    Till,
    thanks for your reply.
    Apt-get works already now.

    One more question:
    In ISPConfig > Management > Server > Settings > DNS,
    i have to mention two DNS-servers:
    Default Ns1: ?
    Default Ns2: ?

    Which DNS-servers have i have to mentioned here,
    the IP-address of my own server, which runs Bind9 or
    the DNS-resolvers provided by the network of the colocation?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    These DNS Servers where used as defaults in the ISPConfig DNS-Manager. So you should enter the domain of your server as ns1 and the domain of the secondary server that you want to use as ns2.
     
  5. Ovidiu

    Ovidiu Active Member

    hello,

    I had the same issue as above, I do not know why but my /etc/resolv.conf contained also this line: nameserver localhost ...

    I tok it out and its all working again.
    Anyone has got any clue as to how that line came to be there? the only change I made was to tell my bind configuration: Do full recursive lookups for clients? NO as I did not want an open DNS server. could that have been the reason?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    It must have been there already.
     

Share This Page