some of my cygwin utilities started yielding exit code 127 — resolved by a proper reinstallation of cygwin base

CAVEAT: Always do a cygwin update outside cygwin:

c:...\Downloads> .\setup-x86_64.exe --no-admin

I do my cygwin set-up with command line option --no-admin, as I do not have admin rights on that Windows box, so that’s the only way to achieve my personal cygwin installation.

I download the file setup-x86_64.exe to the above directory from https://cygwin.com using my browser. That way I can call it in a cmd.exe window with command line options.

CAVEAT: Whenever the cygwin set-up complains about files it failed to install, do not ignore the complaint! You can find the full complaints in /var/log/setup.log.full within your cygwin installation — but only after the creator of the file closed its write access.

My cygwin64 cache is located here:

...\Downloads\cygwin64

Every cygwin mirror has its own subdirectory tree there.

I tried downloading the missing files into the right location of my preferred mirror myself. Looked alright. But when the cygwin set-up tried to make use of the files, it found they were corrupt.

Then I downloaded the missing files “somewhere else” and copied them over to the cygwin cache. The cygwin set-up ran all through without any complaints, now I have a clean and working installation. Happy … finally.

Update 2018-07-04 : I improved my approach of how to find out which URLs / files failed and automated their download elsewhere. I extracted the details from setup.log.full. Actually not that difficult. TBD: Provide the script and the description on github!


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.