X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 281B33857C6B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1700121078; bh=pjg5jaVMgthEnk1Huxn11go8UcN7+nDgxxhC8FEITa0=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=NAu4YpFy7oGQrJbDG7/LOHc5yATOA6G+XAzF5f8ie6ydvs04LNT0Zc8fSn1C61/nK sxhtcGxOIb70Tg+/zGGL5HDz3NRhMvE4Gj/RmwZbv1M5J6sUe+OnNOgUVwbgdV+BrS IvzXT2e8kHVuY+NLQIZXcrLL9rsckYB9ocA4scrc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 34BCB3858CDB ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 34BCB3858CDB ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700121042; cv=none; b=kNPXNlVDJy/uhnK8URYk0boyrYKQwKxdU3tlBy4aB5wwgmoDKEmZ67xRgchrIlOaMszFOwegi7vtM0gp+hddQApiXocrr8qKmBFxf0qMEGfYDkJiYlLYNOBLYUNKixjS3obwiN5gz0kYJKbKOZzn8AZkOhrhCp9oq64UpkwTR7Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700121042; c=relaxed/simple; bh=K1kz6lXBonY3J1dPc6xUr8Aa0RkblPz7Qau62O/vXNE=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=vmk6GFyByubXhy0hJdzUkD33w8k68rjDUFv/WUxbiGq0hRsgvMv3EPSaf/8yloa4hrI8xNzH4qvLnvDuRoJMKiDdvEjrcEQ0WIX7biDPGWX0sqzUriO56glBbl1kvmaiuLYVzffD9xmpXTYoHdPk58v4ILSr3YfDYTSR+MAQOd4= ARC-Authentication-Results: i=1; server2.sourceware.org X-Authority-Analysis: v=2.4 cv=CZQbWZnl c=1 sm=1 tr=0 ts=6555c9d0 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=SwSPNWQLvGauyn804NMA:9 a=QEXdDO2ut3YA:10 Message-ID: Date: Thu, 16 Nov 2023 00:50:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: setup-x86_64.exe (bug ?): Cannot write to /usr/bin/cygwin1.dll - cyserver squatting it... Content-Language: en-CA To: cygwin AT cygwin DOT com References: <1594716181 DOT 20231115200144 AT yandex DOT ru> Organization: Inglis In-Reply-To: X-CMAE-Envelope: MS4xfKyEB4SQr2QjrkYue6aN4+kUhnFBjVYNpb5BUdd6DsULku+9HVUWSVNSGdVf31Z0bHtt/oKNf+7lN/XPq+J9sMVUYL6qVAKGpL9Im1rTUyxq3AavFikY KJ+9bu/MlUlJjjp4VoZL3AV9fY9poBnswn/J4bXBd/2HHUmcFClik/L6HuYaZKXcpYD5bENxAQ9AGQ== X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3AG7pI4r020813 On 2023-11-16 00:03, Martin Wege wrote: > On Wed, Nov 15, 2023 at 6:05 PM Andrey Repin wrote: >>> 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. > > This is not helpful. Cygwin setup-x86-64.exe not being able to update, > because SOMETHING is locking cygwin1.dll is in the top 50 of your IT > support, right followed by the question of IT support whether > "updating to WSL" will solve the situation for them permanently. > >> >>> ---- 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. > > sc query cygserver is EASY to detect. > > IMO Cygwin needs a serious effort towards > user-friendliness-by-default. Right now Cygwin is a specialist > environment which requires half an university degree to get it > working, and that makes me unhappy because your work is GREAT > >> >> You could have cygserver running from one Cygwin setup but installing to the >> different one. And so on. > > Seriously, who has TWO Cygwin setups on one machine? Also, sc query > can handle those cases too. There may be critical or just really long Cygwin processes running that should not be killed because somebody wants to upgrade. Shutting down processes, including services, has to be left to the users or sys admins who understand whether the circumstances are suitable to kill processes to do an upgrade. I have a privileged Scheduled Task to run to clean up known background processes and shut down Cygwin services, then I check in TaskMgr if anything is still running from that Cygwin root path, before I run my Cygwin Setup script, which does more checking and shut downs of X servers and clients, and checking and reporting on processes from that Cygwin root running in background or Scheduled Tasks, before it will launch the latest downloaded Cygwin Setup in semi-attended -M, --package-manager mode, to give me time to resolve any remaining issues before telling Cygwin Setup to proceed. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple