emerge -f sys-apps/file >>> Fetching (1 of 1) sys-apps/file-5.42::gentoo >>> Downloading 'http://mirrors.aliyun.com/gentoo/distfiles/44/file-5.42.tar.gz' --2022-06-12 16:25:43-- http://mirrors.aliyun.com/gentoo/distfiles/44/file-5.42.tar.gz Connecting to 127.0.0.1:8118... connected. Proxy request sent, awaiting response... 404 Not Found 2022-06-12 16:25:43 ERROR 404: Not Found. >>> Downloading 'ftp://ftp.astron.com/pub/file/file-5.42.tar.gz' --2022-06-12 16:25:43-- ftp://ftp.astron.com/pub/file/file-5.42.tar.gz => ‘/var/cache/distfiles/file-5.42.tar.gz.__download__’ Resolving ftp.astron.com... 38.117.134.18, 2620:106:3003:1f00:9e8e:99ff:fe15:cae4 Connecting to ftp.astron.com|38.117.134.18|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD (1) /pub/file ... done. ==> SIZE file-5.42.tar.gz ... 1105846 ==> PASV ... done. ==> RETR file-5.42.tar.gz ... done. Length: 1105846 (1.1M) (unauthoritative) file-5.42.tar.gz 100%[=============================================================>] 1.12M 10.1KB/s in 89s 2022-06-12 16:27:16 (12.9 KB/s) - ‘/var/cache/distfiles/file-5.42.tar.gz.__download__’ saved [1171414] !!! Fetched file: file-5.42.tar.gz VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 1171414 !!! Expected: 1105846 Refetching... File renamed to '/var/cache/distfiles/file-5.42.tar.gz._checksum_failure_.f9rmlt88' !!! Couldn't download 'file-5.42.tar.gz'. Aborting. * Fetch failed for 'sys-apps/file-5.42' Reproducible: Always
$ wget http://mirrors.aliyun.com/gentoo/distfiles/44/file-5.42.tar.gz --2022-06-12 09:56:45-- http://mirrors.aliyun.com/gentoo/distfiles/44/file-5.42.tar.gz Resolving mirrors.aliyun.com... 79.133.176.211, 79.133.176.210, 79.133.176.206, ... Connecting to mirrors.aliyun.com|79.133.176.211|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2022-06-12 09:56:49 ERROR 404: Not Found. And if I compare the copy in /var/cache/distfiles, it's indentical to the one from upstream. The copy I just fetched from upstream has 1105846.
I tested on another vps and the file size is also correct.