When emerging media-gfx/bootsplash-0.6-r1, portage appeared to correctly download the tarball from a nearby mirror (indicator bar goes to 100%), and then said it was "Resuming download" from a different mirror (oregonstate) . The result is a corrupted file. Transcript below. This may be related to bug 21584 ... symptoms appear similar. I cannot recall if there was a prior download attempt from oregonstate that failed, leaving something that emerge is picking up. It is also possible that system problems played a part ... the hard drive on the emerging machine has been getting flakey, and I've also been messing around with different kernel configs (nothing radical, just different options in gentoo-sources). OTOH, that machine sucessfully emerged a number of other packages (nessus, for example) in the last 24 hours, and also, changing make.conf to remove the guilty mirror and put oregonstate at the head of the list resulted in a successful download. ----------- Transcript: (my observations between [[[ and ]]]) ----------- [[[ emerge sync performed just prior to following commands ]]] skipper modules.d # ACCEPT_KEYWORDS="~x86" emerge --noconfmem bootsplash Calculating dependencies ...done! >>> emerge (1 of 1) media-gfx/bootsplash-0.6-r1 to / !!! File is corrupt or incomplete. (Digests do not match) >>> our recorded digest: 0801682018e3d4607f28582ee781f7ee >>> your file's digest: 486a7d005f4034f5816cc201c678c502 !!! File does not exist: /usr/portage/distfiles//bootsplash-0.6.tar.bz2 [[[ last line of error message is curious ... file does indeed exist ]]] skipper modules.d # md5sum /usr/portage/distfiles/bootsplash-0.6.tar.bz2 486a7d005f4034f5816cc201c678c502 /usr/portage/distfiles/bootsplash-0.6.tar.bz2 skipper modules.d # rm !$ rm /usr/portage/distfiles/bootsplash-0.6.tar.bz2 skipper modules.d # ls !$ ls /usr/portage/distfiles/bootsplash-0.6.tar.bz2 ls: /usr/portage/distfiles/bootsplash-0.6.tar.bz2: No such file or directory [[[ OK, now it doesn't exist. emerging again will download it fresh. ]]] skipper modules.d # ACCEPT_KEYWORDS="~x86" emerge --noconfmem bootsplash Calculating dependencies ...done! >>> emerge (1 of 1) media-gfx/bootsplash-0.6-r1 to / [[[ First we try a location on my LAN ... but it's not up today ]]] >>> Downloading ftp://192.168.1.196/distfiles/bootsplash-0.6.tar.bz2 --14:22:18-- ftp://192.168.1.196/distfiles/bootsplash-0.6.tar.bz2 => `/usr/portage/distfiles/bootsplash-0.6.tar.bz2' Connecting to 192.168.1.196:21... failed: Connection refused. [[[ Now we try a mirror (unofficial but kept quite current) at a local university ]]] >>> Downloading http://mirror.clarkson.edu/pub/distributions/gentoo/distfiles/bootsplash-0.6.tar.bz2 --14:22:18-- http://mirror.clarkson.edu/pub/distributions/gentoo/distfiles/bootsplash-0.6.tar.bz2 => `/usr/portage/distfiles/bootsplash-0.6.tar.bz2' Resolving mirror.clarkson.edu... done. Connecting to mirror.clarkson.edu[128.153.144.19]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 235,489 [application/x-bzip2] 100%[====================================>] 235,489 2.58K/s ETA 00:00 14:23:49 (2.58 KB/s) - `/usr/portage/distfiles/bootsplash-0.6.tar.bz2' saved [235489/235489] [[[ Looks like mirror.clarkson.edu did the job ... but emerge isn't happy ... ]]] >>> Resuming download... >>> Downloading http://gentoo.oregonstate.edu/distfiles/bootsplash-0.6.tar.bz2 --14:23:49-- http://gentoo.oregonstate.edu/distfiles/bootsplash-0.6.tar.bz2 => `/usr/portage/distfiles/bootsplash-0.6.tar.bz2' Resolving gentoo.oregonstate.edu... done. Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected. HTTP request sent, awaiting response... 206 Partial Content Length: 235,528 (39 to go) [application/x-tar] 100%[====================================>] 235,528 38.09K/s ETA 00:00 14:23:50 (38.09 KB/s) - `/usr/portage/distfiles/bootsplash-0.6.tar.bz2' saved [235528/235528] !!! File is corrupt or incomplete. (Digests do not match) >>> our recorded digest: 0801682018e3d4607f28582ee781f7ee >>> your file's digest: 486a7d005f4034f5816cc201c678c502 !!! File does not exist: /usr/portage/distfiles//bootsplash-0.6.tar.bz2 [[[ In another window I edit make.conf to remove the local LAN ftp source and mirror.clarkson.edu, making oregonstate the first in the download site list. ]]] skipper modules.d # rm /usr/portage/distfiles/bootsplash-0.6.tar.bz2 skipper modules.d # ACCEPT_KEYWORDS="~x86" emerge --noconfmem bootsplash Calculating dependencies ...done! >>> emerge (1 of 1) media-gfx/bootsplash-0.6-r1 to / >>> Downloading http://gentoo.oregonstate.edu/distfiles/bootsplash-0.6.tar.bz2 --14:25:41-- http://gentoo.oregonstate.edu/distfiles/bootsplash-0.6.tar.bz2 => `/usr/portage/distfiles/bootsplash-0.6.tar.bz2' Resolving gentoo.oregonstate.edu... done. Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 235,528 [application/x-tar] 100%[====================================>] 235,528 2.38K/s ETA 00:00 14:27:19 (2.38 KB/s) - `/usr/portage/distfiles/bootsplash-0.6.tar.bz2' saved [235528/235528] >>> md5 src_uri ;-) bootsplash-0.6.tar.bz2 >>> Unpacking source... >>> Unpacking bootsplash-0.6.tar.bz2 to /var/tmp/portage/bootsplash-0.6-r1/work >>> Source unpacked. [[[ Now portage is happy ]]]
More info: There is a problem with the copy of the file on the clarkson mirror. Downloaded it by hand and the md5 sum is wrong. I will attempt to contact the sysadmins there. Stilll, the "resuming download" behavior of emerge is also wrong. If a file is corrupt, instead of attempting to resume downloading (from a different mirror!), shouldn't it *restart* the downoad? One more datapoint: when I put the corrupted file into distfiles and emerged, it again "resumed" the download from oregonstate: ---------- Resolving mirror.clarkson.edu... done. Connecting to mirror.clarkson.edu[128.153.144.19]:80... connected. HTTP request sent, awaiting response... 200 OK The file is already fully retrieved; nothing to do. >>> Resuming download... >>> Downloading http://gentoo.oregonstate.edu/distfiles/bootsplash-0.6.tar.bz2 --17:39:22-- http://gentoo.oregonstate.edu/distfiles/bootsplash-0.6.tar.bz2 => `/usr/portage/distfiles/bootsplash-0.6.tar.bz2' ----------
*** This bug has been marked as a duplicate of 26058 ***
wrangler
closing old bugs