Results 1 to 4 of 4

Thread: apt-get update error

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    9

    apt-get update error

    hello, i tried running apt-get update but it gave me errors and died, so i tried running netselect-apt and i replaced my sources.list, but the new file only had one mirror, so i added a few more and now i have this
    Code:
    # the main Debian packages.  Uncomment the deb-src line if you
    # want 'apt-get source' to work with most packages.
    #deb http://ftp3.nrc.ca/debian/ stable main contrib non-free
    # deb-src http://ftp3.nrc.ca/debian/ stable main contrib non-free
    
    # the non-US Debian packages.  Uncomment the deb-src line if you
    # want 'apt-get source' to work with non-US packages.
    deb http://debian.teleglobe.net/non-US/ stable/non-US main contrib non-free
    # deb-src http://debian.teleglobe.net/non-US/ stable/non-US main contrib non-fre
    e
    deb ftp://mirror.direct.ca/pub/linux/debian/ stable main
    deb ftp://debian.yorku.ca/debian stable main
    and that doesn't work either...
    i get this error

    Code:
    root@box:/home/knoppix# apt-get update
    Err ftp://debian.yorku.ca stable/main Packages
      Could not connect to debian.yorku.ca:21 (130.63.236.141). - connect (111 Connection refused)
    Err ftp://debian.yorku.ca stable/main Release
      Could not connect to debian.yorku.ca:21 (130.63.236.141). - connect (111 Connection refused)
    Hit ftp://mirror.direct.ca stable/main Packages
    Hit http://debian.teleglobe.net stable/non-US/main Packages
    Hit http://debian.teleglobe.net stable/non-US/main Release
    Hit http://debian.teleglobe.net stable/non-US/contrib Packages
    Hit http://debian.teleglobe.net stable/non-US/contrib Release
    Hit http://debian.teleglobe.net stable/non-US/non-free Packages
    Hit http://debian.teleglobe.net stable/non-US/non-free Release
    Hit ftp://mirror.direct.ca stable/main Release
    Failed to fetch ftp://debian.yorku.ca/debian/dists/s...86/Packages.gz  Could not connect to debian.yorku.ca:21 (130.63.236.141). - connect (111 Connection refused)
    Failed to fetch ftp://debian.yorku.ca/debian/dists/s...y-i386/Release  Could not connect to debian.yorku.ca:21 (130.63.236.141). - connect (111 Connection refused)
    Reading Package Lists... Done
    W: Couldn't stat source package list ftp://debian.yorku.ca stable/main Packages (/var/lib/apt/lists/debian.yorku.ca_debian_dists_stable_main_binary-i386_Packages) - stat (2 No such file or directory)
    W: You may want to run apt-get update to correct these problems
    E: Some index files failed to download, they have been ignored, or old ones used instead.
    what did i do wrong?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353

    Re: apt-get update error

    Quote Originally Posted by bennyp
    hello, i tried running apt-get update but it gave me errors and died, so i tried running netselect-apt and i replaced my sources.list, but the new file only had one mirror, so i added a few more and now i have this
    Code:
    # the main Debian packages.  Uncomment the deb-src line if you
    # want 'apt-get source' to work with most packages.
    #deb http://ftp3.nrc.ca/debian/ stable main contrib non-free
    # deb-src http://ftp3.nrc.ca/debian/ stable main contrib non-free
    
    # the non-US Debian packages.  Uncomment the deb-src line if you
    # want 'apt-get source' to work with non-US packages.
    deb http://debian.teleglobe.net/non-US/ stable/non-US main contrib non-free
    # deb-src http://debian.teleglobe.net/non-US/ stable/non-US main contrib non-fre
    e
    deb ftp://mirror.direct.ca/pub/linux/debian/ stable main
    deb ftp://debian.yorku.ca/debian stable main
    and that doesn't work either...
    i get this error

    Code:
    root@box:/home/knoppix# apt-get update
    Err ftp://debian.yorku.ca stable/main Packages
      Could not connect to debian.yorku.ca:21 (130.63.236.141). - connect (111 Connection refused)
    Err ftp://debian.yorku.ca stable/main Release
      Could not connect to debian.yorku.ca:21 (130.63.236.141). - connect (111 Connection refused)
    Hit ftp://mirror.direct.ca stable/main Packages
    Hit http://debian.teleglobe.net stable/non-US/main Packages
    Hit http://debian.teleglobe.net stable/non-US/main Release
    Hit http://debian.teleglobe.net stable/non-US/contrib Packages
    Hit http://debian.teleglobe.net stable/non-US/contrib Release
    Hit http://debian.teleglobe.net stable/non-US/non-free Packages
    Hit http://debian.teleglobe.net stable/non-US/non-free Release
    Hit ftp://mirror.direct.ca stable/main Release
    Failed to fetch ftp://debian.yorku.ca/debian/dists/s...86/Packages.gz  Could not connect to debian.yorku.ca:21 (130.63.236.141). - connect (111 Connection refused)
    Failed to fetch ftp://debian.yorku.ca/debian/dists/s...y-i386/Release  Could not connect to debian.yorku.ca:21 (130.63.236.141). - connect (111 Connection refused)
    Reading Package Lists... Done
    W: Couldn't stat source package list ftp://debian.yorku.ca stable/main Packages (/var/lib/apt/lists/debian.yorku.ca_debian_dists_stable_main_binary-i386_Packages) - stat (2 No such file or directory)
    W: You may want to run apt-get update to correct these problems
    E: Some index files failed to download, they have been ignored, or old ones used instead.
    what did i do wrong?
    The ftp://debian.yorku.ca appear to not be available. You need to comment them out of /etc/apt/sources.list and perhaps replace them with other entries.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: apt-get update error

    Try this for a sources.list.

    Code:
    # Security updates
    deb http://security.debian.org/ stable/updates main contrib non-free
    deb http://security.debian.org/ testing/updates main contrib non-free
    #deb http://security.debian.org/ unstable/updates main contrib non-free
    
    # Stable
    deb http://ftp.de.debian.org/debian/ stable main non-free contrib
    deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
    
    # Sources
    deb-src http://ftp.de.debian.org/debian/ stable main non-free contrib
    deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
    
    # Testing
    deb http://ftp.de.debian.org/debian/ testing main non-free contrib
    deb http://nonus.debian.org/debian-non-US testing/non-US main contrib non-free
    
    # Sources
    deb-src http://ftp.de.debian.org/debian testing main contrib non-free
    deb-src http://nonus.debian.org/debian-non-US testing/non-US main contrib non-free
    
    # Unstable
    deb http://ftp.de.debian.org/debian/ unstable main non-free contrib
    deb http://nonus.debian.org/debian-non-US unstable/non-US main contrib non-free
    
    # Sources
    deb-src http://ftp.de.debian.org/debian unstable main contrib non-free
    deb-src http://nonus.debian.org/debian-non-US unstable/non-US main contrib non-free
    
    ## Various Multimedia Helper Apps Mplayer, Real, etc.. ##
    deb ftp://ftp.nerim.net/debian-marillat/ unstable main

  4. #4
    Junior Member
    Join Date
    Apr 2004
    Posts
    9
    thanks stephen your list worked well for me

Similar Threads

  1. Error when running apt-get update
    By sunpascal in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 01-23-2005, 12:57 PM
  2. Apt Update error msg
    By kbhat in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 01-10-2005, 03:26 AM
  3. error msg with apt-get update
    By MR_EPOD in forum Customising & Remastering
    Replies: 2
    Last Post: 12-18-2004, 12:09 PM
  4. apt-get update error
    By pc3 in forum General Support
    Replies: 4
    Last Post: 08-19-2004, 04:10 PM
  5. apt-get update Error
    By Cronos55 in forum General Support
    Replies: 6
    Last Post: 11-24-2003, 01:20 AM

Posting Permissions

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


***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3 picture

***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3

$29.77



ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield picture

ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield

$42.00



GIGABYTE B560M DS3H AC LGA1200 Intel B560 SATA 6Gb/s Micro ATX Intel Motherboard picture

GIGABYTE B560M DS3H AC LGA1200 Intel B560 SATA 6Gb/s Micro ATX Intel Motherboard

$64.99



Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151 picture

Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151

$31.95



Gigabyte AMD B550 UD AC Gaming Motherboard - AMD B550 Chipset - AM4 Socket - AMD picture

Gigabyte AMD B550 UD AC Gaming Motherboard - AMD B550 Chipset - AM4 Socket - AMD

$89.99



MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard picture

MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard

$67.99



Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk picture

Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk

$48.70



ASUS H110M-C Micro-ATX DDR4 LGA1151 & I3-6100 picture

ASUS H110M-C Micro-ATX DDR4 LGA1151 & I3-6100

$35.00



GIGABYTE MB10-Datto Motherboard Xeon D-1521- SR2DF 2.40 GHz- Open Box picture

GIGABYTE MB10-Datto Motherboard Xeon D-1521- SR2DF 2.40 GHz- Open Box

$112.00



BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled picture

BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled

$59.99