Find the answer to your Linux question:
Results 1 to 7 of 7
I'm running Debian Etch on my little server. When I run 'sudo aptitude update', I get a timeout at the 'Connecting to mirrors.kernel.org'. Code: sudo aptitude update Get:1 http://ftp.surfnet.nl etch ...
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Location
    Groningen, the Netherlands
    Posts
    4

    [SOLVED] apt-get update fails

    I'm running Debian Etch on my little server. When I run 'sudo aptitude update', I get a timeout at the 'Connecting to mirrors.kernel.org'.

    Code:
    sudo aptitude update
    Get:1 http://ftp.surfnet.nl etch Release.gpg [386B]
    Get:2 http://security.debian.org etch/updates Release.gpg [189B]                
    Hit http://ftp.surfnet.nl etch Release                                          
    Hit http://security.debian.org etch/updates Release                             
    Ign http://security.debian.org etch/updates/main Packages/DiffIndex             
    Ign http://ftp.surfnet.nl etch/main Packages/DiffIndex                          
    Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex    
    Ign http://security.debian.org etch/updates/main Sources/DiffIndex              
    Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex           
    Hit http://security.debian.org etch/updates/main Packages                       
    Ign http://ftp.surfnet.nl etch/main Sources/DiffIndex                           
    Hit http://security.debian.org etch/updates/contrib Packages                    
    Hit http://security.debian.org etch/updates/main Sources                        
    Hit http://security.debian.org etch/updates/contrib Sources                     
    Hit http://ftp.surfnet.nl etch/main Packages                                    
    Hit http://ftp.surfnet.nl etch/main Sources                               
    Err http://mirrors.kernel.org etch Release.gpg                                                                               
      Could not connect to mirrors.kernel.org:80 (199.6.1.174), connection timed out
    Fetched 2B in 2m0s (0B/s)                           
    Reading package lists... Done
    W: Couldn't stat source package list http://mirrors.kernel.org etch/main Packages (/var/lib/apt/lists/mirrors.kernel.org_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
    W: Couldn't stat source package list http://mirrors.kernel.org etch/non-free Packages (/var/lib/apt/lists/mirrors.kernel.org_debian_dists_etch_non-free_binary-i386_Packages) - stat (2 No such file or directory)
    W: You may want to run apt-get update to correct these problems

  2. #2
    Linux Enthusiast L4Linux's Avatar
    Join Date
    Sep 2008
    Location
    Greece
    Posts
    584
    Did you try apt-get update? I don't know if and how it would help, but since it says so in the message, i would try it...

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Location
    Groningen, the Netherlands
    Posts
    4
    apt-get has exactly the same problem

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this
    Code:
    apt-get clean all
    apt-get update
    In case it doesn't work, post the contents of /etc/apt/sources.list file here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Nov 2005
    Location
    Groningen, the Netherlands
    Posts
    4
    That seems to be of no help either.

    My sources.list:

    Code:
    whizz@t44:~$ cat /etc/apt/sources.list
    #
    # deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 NETINST Binary-1 20080218-14:15]/ etch contrib main
    
    # CD-rom (disabled)
    # deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 NETINST Binary-1 20080218-14:15]/ etch contrib main
    
    # Stable
    deb http://ftp.surfnet.nl/os/Linux/distr/debian/ etch main
    deb-src http://ftp.surfnet.nl/os/Linux/distr/debian/ etch main
    
    # Security updates
    deb http://security.debian.org/ etch/updates main contrib
    deb-src http://security.debian.org/ etch/updates main contrib
    
    # Non-free
    deb http://mirrors.kernel.org/debian/ etch main non-free
    If I comment out the last line it works, but I want the non-free updates too, of course.

  6. #6
    Just Joined!
    Join Date
    Nov 2005
    Location
    Groningen, the Netherlands
    Posts
    4
    I have fixed it by changing the last line into
    Code:
    http://ftp.surfnet.nl/os/Linux/distr/debian/
    If anyone else has problems with his mirrors, try changing it into one of these:
    ftp://ftp.debian.org/debian/README.mirrors.txt

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Well Done and thanx for posting solution !
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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