Cygwin apt-cyg ”MD5 sum did not match”

直接编辑apt-cyg 文件,找到md5sum,替换修改成sha512sum。

# check the md5
    digest=`cat "desc" | awk '/^install: / { print $4; exit }'`
    digactual=`sha512sum $file | awk '{print $1}'`
    if ! test $digest = $digactual
    then
      echo MD5 sum did not match, exiting
      #exit 1
    fi

然后重试apt-cyg install

posted @ 2017-01-18 23:47  季文康  阅读(516)  评论(0编辑  收藏  举报