I’ve run into a very strange problem.
Every time I run setup.exe and try to upgrade bash package
setup.exe crashes with the familiar “setup.exe has generated errors and will be close by windows. you will need to restart the program. An error log is being created”. The solution I found is for bash package but I guess it also work for other packages as well
After googling a bit I found the this mail thread . But there was no solution posted into the thread so I tried to contact the Mario Frasca (one of the participants in the mail thread) to see if he found any solution to the problem. Well, he did. He sent me a mail telling me that William Crosmun resolved his problem.
It seems that /etc/setup/bash.lst.gz became corrupted.
and if you delete it
and retry the upgrade now everything should work.
UPDATE: Please make a backup of the file before deleting it. If deleting the file solve the issue then please fill a bug report at cygwin and include that file. Or post a comment here and I will try to take care of it.
Hope it helps. Remember that if your setup.exe crashes while upgrading a package other than bash you should try to delete otherpackage.lst.gz instead of bash.lst.gz.
EDIT: to find the offending package you can use for i in $(ls /etc/setup/*.gz); do gunzip -t $i; done
as stated in the comments.