Output from fetch net-misc/openssh-6.6.1_p1-r4:0::gentoo: Checking 'openssh-6.6p1.tar.gz'... ok Checking 'openssh-6.6.1p1-hpnssh14v5.diff.xz'... failed SHA256
The patch has been altered because of bug #523962. Please remove the patch from your DISTFILES, resync your portage tree and try again.
*** Bug 524028 has been marked as a duplicate of this bug. ***
removes everything openssh related from distfiles and also rm -rf the net-misc/openssh folder in the tree and then resynced. Still getting: 2014-09-29 11:04:11 (609 KB/s) - ‘/usr/portage/distfiles/openssh-6.6.1p1-hpnssh14v5.diff.xz.-PARTIAL-’ saved [20952/20952] Checking 'openssh-6.6p1.tar.gz'... ok Checking 'openssh-6.6.1p1-hpnssh14v5.diff.xz'... failed SHA256 mv -f /usr/portage/distfiles/openssh-6.6.1p1-hpnssh14v5.diff.xz.-PARTIAL- /usr/portage/distfiles/openssh-6.6.1p1-hpnssh14v5.diff.xz Failed fetch for net-misc/openssh-6.6.1_p1-r4:0::gentoo
The file has correct sha256 hash in openssh's Manifest data: fe31dfbc934be7c7c07ddcd2aef01083c62f225ee8097622aec23d536e118053 So you even sync from an outdated Gentoo mirror or you still have the outdated patch file on some proxy.
s/even/either/
installed ok with portage after repeated failures on the sha256 invalidation with paludis. After installing with portage it now installs fine with paludis. Weird
Adding RESTRICT="primaryuri" to an ebuild makes paludis happy.
Same problem, I don't think my mirror is out of date, because I get the same error from source: >>> Downloading 'http://dev.gentoo.org/~polynomial-c/openssh-6.6.1p1-hpnssh14v5.diff.xz' --2014-10-01 15:58:00-- http://dev.gentoo.org/~polynomial-c/openssh-6.6.1p1-hpnssh14v5.diff.xz Connecting to 10.82.0.1:8080... connected. Proxy request sent, awaiting response... 200 OK Length: 20952 (20K) Saving to: ‘/usr/portage/distfiles/openssh-6.6.1p1-hpnssh14v5.diff.xz’ 0K .......... .......... 100% 221M=0s 2014-10-01 15:58:00 (221 MB/s) - ‘/usr/portage/distfiles/openssh-6.6.1p1-hpnssh14v5.diff.xz’ saved [20952/20952] !!! Fetched file: openssh-6.6.1p1-hpnssh14v5.diff.xz VERIFY FAILED! !!! Reason: Failed on SHA256 verification !!! Got: 674de88b158c3b305f720ad86f917be79cd6bd9b47cf33f56b1d92eee9440b8e !!! Expected: fe31dfbc934be7c7c07ddcd2aef01083c62f225ee8097622aec23d536e118053 Refetching... File renamed to '/usr/portage/distfiles/openssh-6.6.1p1-hpnssh14v5.diff.xz._checksum_failure_.4pdw3m' Tested with - Timestamp of tree: Wed, 01 Oct 2014 12:45:01 +0000 - Timestamp of tree: Wed, 01 Oct 2014 13:15:01 +0000 Plain Gentoo. No Paludis.
Was my problem... source (http://dev.gentoo.org/~polynomial-c/openssh-6.6.1p1-hpnssh14v5.diff.xz) is serving the right file. I am using net-proxy/http-replicator which cached the invalid file from a mirror (there are dozen mirrors still serving the wrong file) and doesn't "support" retrying different URLs because it will always re-use the cached copy. :(
Closing this as WORKSFORME. I cannot reproduce this on any of my test machines even when trying different mirrors for downloading.
(In reply to Lars Wendler (Polynomial-C) from comment #10) > Closing this as WORKSFORME. I cannot reproduce this on any of my test > machines even when trying different mirrors for downloading. It still happened for me just 10min ago using the following mirror list: GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.mneisen.org/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://gentoo.modulix.net/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://de-mirror.org/gentoo/ http://mirror.opteamax.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" Looks as if some mirrors do not correctly check if the files really are identical. Wouldn't it be smart to rename the file to make sure that all mirrors refetch it correctly?
(In reply to Nils Kneuper from comment #11) > (In reply to Lars Wendler (Polynomial-C) from comment #10) > > Closing this as WORKSFORME. I cannot reproduce this on any of my test > > machines even when trying different mirrors for downloading. > > It still happened for me just 10min ago using the following mirror list: > I've just hit this problem too. Removed all packages related to openssh but still get the wrong sha256 hash. My mirror list: GENTOO_MIRRORS=" http://gentoo.supp.name/ \ http://ftp.fi.muni.cz/pub/linux/gentoo/ \ http://gentoo.mirror.web4u.cz/ \ http://gentoo.mirror.dkm.cz/pub/gentoo/ \ http://gentoo.ynet.sk/pub"