setup-x86_64.exe (bug ?): Cannot write to /usr/bin/cygwin1.dll - cyserver squatting it...

Andrey Repin anrdaemon@yandex.ru
Wed Nov 15 17:01:44 GMT 2023


Greetings, Mainz, Roland!


> Hi!

> ----

> The Cygwin installer "setup-x86_64.exe" has problems updating cygwin1.dll when cygserver is running:

You should stop ALL Cygwin processes before starting setup.exe.
This is documented.

> ---- snip ----
> Unable to extract /usr/bin/cygwin1.dll -- error writing file
> ---- snip ----

> The fix is to do a $ sc stop cygserver # as Administrator, then
> "setup-x86_64.exe" can write to that file, and after "setup" is done do a $ sc start cygserverr # as Admin again.

> ... is it possible to modify "setup-x86_64.exe" to stop cygserver before
> doing the installation process and re-start it after it ?

There's no reason to do so, as there's no easy way to detect beforehand, if
you actually need to do so.

You could have cygserver running from one Cygwin setup but installing to the
different one. And so on.


-- 
With best regards,
Andrey Repin
Wednesday, November 15, 2023 19:59:00

Sorry for my terrible english...



More information about the Cygwin mailing list