PDA

View Full Version : apt-get update error



bennyp
04-30-2004, 03:43 AM
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

# 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


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/stable/main/binary-i386/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/stable/main/binary-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?

aay
04-30-2004, 06:31 AM
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

# 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


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/stable/main/binary-i386/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/stable/main/binary-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.

Stephen
04-30-2004, 06:52 AM
Try this for a sources.list.



# 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

bennyp
04-30-2004, 04:15 PM
thanks stephen your list worked well for me