LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 04-18-2006, 10:07 PM   #1
songqsh
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 ftp://linux.csua.berkeley.edu/debian...501-2_i386.deb
Unable to fetch file, server said 'Failed to open file. '
-------------------
How can I change the mirror sites?
Thanks.
 
Old 04-19-2006, 07: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: http://www.debian.org/doc/manuals/ap...basico.en.html

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, 09:46 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
I've not tested but this can also be a solution for automatically generating a sources.list:

http://wiki.linuxquestions.org/wiki/Apt-spy
 
Old 04-19-2006, 09:51 AM   #4
rickh
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: 60
# 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.
 
  


Reply


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 10:50 AM
wheres the beef?! mirror sites lack files... Fascistchicken Slackware 8 10-28-2004 12:01 AM
which mirror should i select for download webmin zameer_india Linux - Software 4 10-27-2004 04:08 AM
problems with rpmdrake and contrib mirror sites mljohns4 Mandriva 0 02-11-2004 12:07 PM
kget - change download mirror 20% though D-load qwijibow Linux - Software 3 10-22-2003 02:34 PM


All times are GMT -5. The time now is 08:32 AM.

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