最近在windows cygwin terminal下用apt-cyg安装总出现如下错误
“MD5 sum did not match, exiting”
开始怀疑源被污染,后来查到是验证算法换了,直接修改/usr/bin/apt-cyg中329行附近的代码即可。
wget -nc $mirror/$dn/$bn
#digactual=$(md5sum $bn | awk NF=1)
digactual=$(sha512sum $bn | awk NF=1)
if [ $digest != $digactual ]
参考链接:
1. https://github.com/transcode-open/apt-cyg/issues/37
2. http://blog.csdn.net/qq287156351/article/details/44563143