Since the last time I reinstall windows, and then cygwin, apt-cyg stops working. It keeps telling me
"md5sum: standard input: no properly formatted MD5 checksum lines found".
What could cause the issue? And if I want to learn more about the error, where should I go and look?
Edit:
When I start to debug the problem, I realized that the md5 code generated was too long(128 char) for an md5 code(normally 32 char). Since I am using a 64-bit version of cygwin, it could be the source of the issue. But how to resolve it?
Best Answer
Since version 2.867, cygwin has move to sha512 checksum, however, the current version of apt-cyg is still using
md5sum
rather thansha512sum
for integrity verification. That's what causes the problem.To resolve the issue change the
md5sum
in line 323 and 326 of the file "apt-cyg" withsha512sum
. It should work.This issue has already been addressed by pull request #37: https://github.com/transcode-open/apt-cyg/pull/38. But the change has not been implemented to the master branch yet.
Edit:
If you edit the file with windows program, the line breaker might be changed and causing issues such as
Because bash recognized the line changer as a command. I suggest using linux editor like vim, emacs or gedit for the changing. Or you may directly use the
apt-cyg
file uploaded in pull request #37: https://github.com/jfritz/apt-cyg/blob/97848cfa9ae05297c0b01daeb8ad08a70bc3b77b/apt-cyg