> On Wed, Dec 01, 2010 at 11:17:39PM +0100, Simon Paillard wrote:
> > > with both approx entries and direct entries to the exact same mirrors
> > > configured in apt's sources.list, at least one of my approx entries 
> > > results
> > > in a "Hash Sum mismatch" on nearly every apt-get update, while the 
> > > directly
> > > configured entries work without problems.
> > 
> > DNS Round robin might mislead your conclusions.
> 
> i had though of that, so tried ftp.us.debian.org, but i think it had included
> the bunk mirror at the time (and has even more servers in the list for
> potential round-robin issues). although specifying debian.osuosl.org directly
> worked every single time, so i didn't *think* that was what the problem was.
> though it was probably getting some files from the working server and some 
> from
> the not working server...

I suspect apt-get continues talking to whichever host it first
resolves the hostname to.  Approx, on the other hand, spawns a
separate "curl" command to do each retrieval, so each one might
resolve it differently. And so it might get inconsistent files if the
repos are not in sync.

I think I can make approx more robust against this kind of failure by
resolving the hostnames once when approx first loads its configuration
file, and passing IP addresses rather than hostnames to curl.

Cheers,
Eric

-- 
Eric Cooper             e c c @ c m u . e d u



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to