Some Gentoo Mirrors apparently return a text/html file instead of a proper 404 Not Found message, if an ebuild can't be found. (happens when an alternate source is given in the ebuild) Portage then quits with an MD5 crc failure (because it downloads the html error file as the ebuild source), instead of trying the next mirror. This happens, if the gentoo mirror is accessed via wget with HTTP (default way) e.g "http://ftp.tu-clausthal.de/pub/linux/gentoo", if it is accessed with ftp (ftp://) it works fine. Workaround: use ftp:// access instead of http:// access with wget Reproducible: Always Steps to Reproduce: 1.Enter another Mirror (tried with http://ftp.tu-clausthal.de/pub/linux/gentoo) 2.emerge pam-login 3. Actual Results: emerge fails with MD5 check failed, does not check next mirror Expected Results: emerge should check next mirror and consequently download it from the source given in the .ebuild Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3) ================================================================= System uname: 2.4.20 i686 Pentium III (Coppermine) GENTOO_MIRRORS="http://ftp.tu-clausthal.de/pub/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirrors.sunsite.dk/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt encode gif gpm imlib java libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis opengl qtmt quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline tcpd pam ssl perl python -X -gtk -cups -tiff -jpeg -png -gnome -kde -qt -pdflib -alsa" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe" CXXFLAGS="-march=pentium3 -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j3" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Portage should recognise 404's now and delete them and proceed with the next mirror. 2.0.46-r11
fixed This is only applicable to bad mirrors anyway.