load on mirrors | was: kdelibs4c2a missing

Derek Broughton news at pointerstop.ca
Tue Apr 11 19:23:37 BST 2006


Thilo Six wrote:

> A question comes to my mind now though. How does someone set up apt to
> fetch from different mirrors at the same time?
> e.g.
> package A from mirror X
> package B from mirror Y
> 
> I only see this happen when installing and apt/aptitude fetches one from
> normal archive and an other from security updates.
> But these are different repos.
> How to make this within the same repo from different mirrors?
> 
It's not something I've tried, but from observation it would appear that you
can't _make_ apt get A from X and B from Y if both exist in both mirrors
_but_ if you have multiple mirrors in your sources (it doesn't matter
whether they are mirrors or really different repositories - apt can't tell
the difference) apt will open them up in separate threads (to a default
limit of four threads, iirc).  Then it may get the first file from the
first mirror and the second from the second mirror.  

This is certainly the behaviour where files are not common to different
repositories, but I think I've also seen fallbacks - where package A was
unavailable from mirror X (because of connection problems) getting it from
mirror Y.

However, I think it's moot with regard to having the identical URL specified
twice, because I'm pretty sure apt throws away duplicates.
-- 
derek




More information about the kubuntu-users mailing list