apt-cyg install return md5sum error












5















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?










share|improve this question





























    5















    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?










    share|improve this question



























      5












      5








      5


      4






      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?










      share|improve this question
















      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?







      cygwin md5






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 18 '16 at 17:39









      Mokubai

      57.8k16139157




      57.8k16139157










      asked Mar 27 '15 at 11:18









      ChongChong

      3911413




      3911413






















          3 Answers
          3






          active

          oldest

          votes


















          10














          Since version 2.867, cygwin has move to sha512 checksum, however, the current version of apt-cyg is still using md5sum rather than sha512sum 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" with sha512sum. 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



          /usr/bin/apt-cyg: line 25: $'r': command not found


          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






          share|improve this answer


























          • The newer apt-cyg file has slightly different line numbers, but +1 for pointing me to roughly the right part of the file, and the appropriate fix. For me it was 343 and 346, and I also changed the comment too because OCD.

            – Davos
            May 21 '15 at 5:47








          • 1





            Seems they fixed this in the newer version. Just reinstall apt-cyg

            – ramirio
            Jun 9 '15 at 12:50





















          0














          The current version of apt-cyg is still using md5sum rather than sha512sum for integrity verification.



          343:#digactual=`md5sum $file | awk '{print $1}'`
          344:digactual=`sha512sum $file | awk '{print $1}'`


          To resolve the issue change the md5sum in line 343 of the file "apt-cyg" with sha512sum. It worked for me.






          share|improve this answer
























          • Wasn't it taken down by DMCA's takedown notice already? The version you downloaded was probably quite old.

            – Chong
            Feb 26 '16 at 17:47






          • 1





            this version was the only one I found. Initially I thought it is old but actually its bigger than the one presented in other answers if you take in consideration line numbers.

            – aprodan
            Mar 9 '16 at 0:24













          • OK, good to know it still exists... Somehow the lack of package manager about Cygwin really doesn't sit well with me...

            – Chong
            Mar 9 '16 at 0:48



















          0














          Execute this from your shell:



          perl -i.bak -pe 's{md5sum}{sha512sum}g'  /usr/local/bin/apt-cyg


          Then retry.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f894696%2fapt-cyg-install-return-md5sum-error%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            10














            Since version 2.867, cygwin has move to sha512 checksum, however, the current version of apt-cyg is still using md5sum rather than sha512sum 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" with sha512sum. 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



            /usr/bin/apt-cyg: line 25: $'r': command not found


            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






            share|improve this answer


























            • The newer apt-cyg file has slightly different line numbers, but +1 for pointing me to roughly the right part of the file, and the appropriate fix. For me it was 343 and 346, and I also changed the comment too because OCD.

              – Davos
              May 21 '15 at 5:47








            • 1





              Seems they fixed this in the newer version. Just reinstall apt-cyg

              – ramirio
              Jun 9 '15 at 12:50


















            10














            Since version 2.867, cygwin has move to sha512 checksum, however, the current version of apt-cyg is still using md5sum rather than sha512sum 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" with sha512sum. 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



            /usr/bin/apt-cyg: line 25: $'r': command not found


            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






            share|improve this answer


























            • The newer apt-cyg file has slightly different line numbers, but +1 for pointing me to roughly the right part of the file, and the appropriate fix. For me it was 343 and 346, and I also changed the comment too because OCD.

              – Davos
              May 21 '15 at 5:47








            • 1





              Seems they fixed this in the newer version. Just reinstall apt-cyg

              – ramirio
              Jun 9 '15 at 12:50
















            10












            10








            10







            Since version 2.867, cygwin has move to sha512 checksum, however, the current version of apt-cyg is still using md5sum rather than sha512sum 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" with sha512sum. 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



            /usr/bin/apt-cyg: line 25: $'r': command not found


            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






            share|improve this answer















            Since version 2.867, cygwin has move to sha512 checksum, however, the current version of apt-cyg is still using md5sum rather than sha512sum 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" with sha512sum. 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



            /usr/bin/apt-cyg: line 25: $'r': command not found


            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







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 18 '16 at 17:38









            Mokubai

            57.8k16139157




            57.8k16139157










            answered Mar 27 '15 at 12:36









            ChongChong

            3911413




            3911413













            • The newer apt-cyg file has slightly different line numbers, but +1 for pointing me to roughly the right part of the file, and the appropriate fix. For me it was 343 and 346, and I also changed the comment too because OCD.

              – Davos
              May 21 '15 at 5:47








            • 1





              Seems they fixed this in the newer version. Just reinstall apt-cyg

              – ramirio
              Jun 9 '15 at 12:50





















            • The newer apt-cyg file has slightly different line numbers, but +1 for pointing me to roughly the right part of the file, and the appropriate fix. For me it was 343 and 346, and I also changed the comment too because OCD.

              – Davos
              May 21 '15 at 5:47








            • 1





              Seems they fixed this in the newer version. Just reinstall apt-cyg

              – ramirio
              Jun 9 '15 at 12:50



















            The newer apt-cyg file has slightly different line numbers, but +1 for pointing me to roughly the right part of the file, and the appropriate fix. For me it was 343 and 346, and I also changed the comment too because OCD.

            – Davos
            May 21 '15 at 5:47







            The newer apt-cyg file has slightly different line numbers, but +1 for pointing me to roughly the right part of the file, and the appropriate fix. For me it was 343 and 346, and I also changed the comment too because OCD.

            – Davos
            May 21 '15 at 5:47






            1




            1





            Seems they fixed this in the newer version. Just reinstall apt-cyg

            – ramirio
            Jun 9 '15 at 12:50







            Seems they fixed this in the newer version. Just reinstall apt-cyg

            – ramirio
            Jun 9 '15 at 12:50















            0














            The current version of apt-cyg is still using md5sum rather than sha512sum for integrity verification.



            343:#digactual=`md5sum $file | awk '{print $1}'`
            344:digactual=`sha512sum $file | awk '{print $1}'`


            To resolve the issue change the md5sum in line 343 of the file "apt-cyg" with sha512sum. It worked for me.






            share|improve this answer
























            • Wasn't it taken down by DMCA's takedown notice already? The version you downloaded was probably quite old.

              – Chong
              Feb 26 '16 at 17:47






            • 1





              this version was the only one I found. Initially I thought it is old but actually its bigger than the one presented in other answers if you take in consideration line numbers.

              – aprodan
              Mar 9 '16 at 0:24













            • OK, good to know it still exists... Somehow the lack of package manager about Cygwin really doesn't sit well with me...

              – Chong
              Mar 9 '16 at 0:48
















            0














            The current version of apt-cyg is still using md5sum rather than sha512sum for integrity verification.



            343:#digactual=`md5sum $file | awk '{print $1}'`
            344:digactual=`sha512sum $file | awk '{print $1}'`


            To resolve the issue change the md5sum in line 343 of the file "apt-cyg" with sha512sum. It worked for me.






            share|improve this answer
























            • Wasn't it taken down by DMCA's takedown notice already? The version you downloaded was probably quite old.

              – Chong
              Feb 26 '16 at 17:47






            • 1





              this version was the only one I found. Initially I thought it is old but actually its bigger than the one presented in other answers if you take in consideration line numbers.

              – aprodan
              Mar 9 '16 at 0:24













            • OK, good to know it still exists... Somehow the lack of package manager about Cygwin really doesn't sit well with me...

              – Chong
              Mar 9 '16 at 0:48














            0












            0








            0







            The current version of apt-cyg is still using md5sum rather than sha512sum for integrity verification.



            343:#digactual=`md5sum $file | awk '{print $1}'`
            344:digactual=`sha512sum $file | awk '{print $1}'`


            To resolve the issue change the md5sum in line 343 of the file "apt-cyg" with sha512sum. It worked for me.






            share|improve this answer













            The current version of apt-cyg is still using md5sum rather than sha512sum for integrity verification.



            343:#digactual=`md5sum $file | awk '{print $1}'`
            344:digactual=`sha512sum $file | awk '{print $1}'`


            To resolve the issue change the md5sum in line 343 of the file "apt-cyg" with sha512sum. It worked for me.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 25 '16 at 22:47









            aprodanaprodan

            1011




            1011













            • Wasn't it taken down by DMCA's takedown notice already? The version you downloaded was probably quite old.

              – Chong
              Feb 26 '16 at 17:47






            • 1





              this version was the only one I found. Initially I thought it is old but actually its bigger than the one presented in other answers if you take in consideration line numbers.

              – aprodan
              Mar 9 '16 at 0:24













            • OK, good to know it still exists... Somehow the lack of package manager about Cygwin really doesn't sit well with me...

              – Chong
              Mar 9 '16 at 0:48



















            • Wasn't it taken down by DMCA's takedown notice already? The version you downloaded was probably quite old.

              – Chong
              Feb 26 '16 at 17:47






            • 1





              this version was the only one I found. Initially I thought it is old but actually its bigger than the one presented in other answers if you take in consideration line numbers.

              – aprodan
              Mar 9 '16 at 0:24













            • OK, good to know it still exists... Somehow the lack of package manager about Cygwin really doesn't sit well with me...

              – Chong
              Mar 9 '16 at 0:48

















            Wasn't it taken down by DMCA's takedown notice already? The version you downloaded was probably quite old.

            – Chong
            Feb 26 '16 at 17:47





            Wasn't it taken down by DMCA's takedown notice already? The version you downloaded was probably quite old.

            – Chong
            Feb 26 '16 at 17:47




            1




            1





            this version was the only one I found. Initially I thought it is old but actually its bigger than the one presented in other answers if you take in consideration line numbers.

            – aprodan
            Mar 9 '16 at 0:24







            this version was the only one I found. Initially I thought it is old but actually its bigger than the one presented in other answers if you take in consideration line numbers.

            – aprodan
            Mar 9 '16 at 0:24















            OK, good to know it still exists... Somehow the lack of package manager about Cygwin really doesn't sit well with me...

            – Chong
            Mar 9 '16 at 0:48





            OK, good to know it still exists... Somehow the lack of package manager about Cygwin really doesn't sit well with me...

            – Chong
            Mar 9 '16 at 0:48











            0














            Execute this from your shell:



            perl -i.bak -pe 's{md5sum}{sha512sum}g'  /usr/local/bin/apt-cyg


            Then retry.






            share|improve this answer




























              0














              Execute this from your shell:



              perl -i.bak -pe 's{md5sum}{sha512sum}g'  /usr/local/bin/apt-cyg


              Then retry.






              share|improve this answer


























                0












                0








                0







                Execute this from your shell:



                perl -i.bak -pe 's{md5sum}{sha512sum}g'  /usr/local/bin/apt-cyg


                Then retry.






                share|improve this answer













                Execute this from your shell:



                perl -i.bak -pe 's{md5sum}{sha512sum}g'  /usr/local/bin/apt-cyg


                Then retry.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 2 at 8:11









                Sridhar-SarnobatSridhar-Sarnobat

                479518




                479518






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f894696%2fapt-cyg-install-return-md5sum-error%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Probability when a professor distributes a quiz and homework assignment to a class of n students.

                    Aardman Animations

                    Are they similar matrix