Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-18-2006, 09:07 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 21

Rep: Reputation: 15
how to change mirror sites for package download?

when I want to download some packages from website, it said
W: Failed to fetch
Unable to fetch file, server said 'Failed to open file. '
How can I change the mirror sites?
Old 04-19-2006, 06:15 AM   #2
Dead Parrot
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Debian's download mirrors/repositories for packages are set in /etc/apt/sources.list and you can edit this file with any text editor. Some help and the full mirror list can be found here:

If you still have the "base-config" package installed, you can run the "apt-setup" utility that will help you to choose a mirror to be added to sources.list. Unfortunately Debian's installer doesn't use "base-config" anymore and so it has been removed (along with "apt-setup") from Debian testing and unstable.
Old 04-19-2006, 08:46 AM   #3
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
I've not tested but this can also be a solution for automatically generating a sources.list:
Old 04-19-2006, 08:51 AM   #4
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
# netselect-apt unstable

Run it from /tmp or someplace out of the way. It will go out and randomly select 207 mirrors, test the speed from your web connection, and write you out a little sources.list file with the two fastest. I ran it 3 times, with 3 different winners, but only 1 mirror showed up in the top 2 every time. That's the one that is now in my sources.list.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please check for me redhat enterprise 3.0 download mirror sites futurist Red Hat 6 12-12-2004 09:50 AM
wheres the beef?! mirror sites lack files... Fascistchicken Slackware 8 10-27-2004 11:01 PM
which mirror should i select for download webmin zameer_india Linux - Software 4 10-27-2004 03:08 AM
problems with rpmdrake and contrib mirror sites mljohns4 Mandriva 0 02-11-2004 11:07 AM
kget - change download mirror 20% though D-load qwijibow Linux - Software 3 10-22-2003 01:34 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration