X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D3F5385843F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1700118269; bh=JZDUi3+/Jrac/z8tBwVH34bEUc4AUaccNoa/E1slK1Y=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ZvhUdsjG+sOLCDT+hnU1mZP5wM4r1KlO5Ci2KJnQvU+EMnxqs/zq9cz2n+aT8cWyM 0Awx0dKbSr9lZxlSgIC37+IiWsdGk8F1HDaJpk003iNh8hYIjs0uvbisv3q6LhK59c EoC8hunSufPMsj3lnFNwXNbN2DAA+2xuRYhMoYaA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 26E253858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 26E253858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700118233; cv=none; b=G3ndL2XLMQJcOjrCULXmjbtadmx2658isvitDzwyLEKP6+uFZeN9DX+L54jy/2U49BeNt7+sw1h4Pdd8CuTSFW+nl2jvgvbTLEMDjFYTSZAwLKWIGOPnsZz1AuGfjIxHr2R/ulcet/MH3SMunfyk5Fn7RxB4P57ru4Iqj3og5QQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700118233; c=relaxed/simple; bh=0LQrRtfk1RaCZXYk6xome+ErvgGAp1R5I4GskaYP08U=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=nZc8MOgjPeV68z3+lCYWDFzRSoXGsXrU7vFaFXMUUPAfiJpWYVi9iDyo1YdpR1mYbENeSNkLu9JJ3rtw+dckUKUOdPoZFUVLOSVHs+TW31PPQ89kZhYPW9JqX5FoykNX0+xtAqfW5DJDJTA0XWWwpNIQdBEPPMq+EVcnRij9zy4= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700118231; x=1700723031; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0LQrRtfk1RaCZXYk6xome+ErvgGAp1R5I4GskaYP08U=; b=sIF4BW9LfgsaWXDp3ML9I6HlwB5qHAZyQj9xyK9Ir4JXaOQYkv26GkvTCDUHtasisa 57xy9qFOWrqVZEn82UbBdOZyc61ep8zjbkfzE6vX/GAvveqD36VsFrOrgSUTFKQUDYc5 iMOJ2GHVGvjQkvLfJLgQ7/cRL4fWPolOldJFhi6v6gQPlV1Kk6LwDCr1/wjSrsanTXpO 8hFFP8CwXhc/wUCzOAQXYMRXmBHtMhmAJD29FlfzFjL9rIeO5KGzho37nQMc06n2yCHO 0GTqB5KdXZGqpS6/w5iXFC7bwQreUjJspkzqon5+pkBm1Xtjqc/i8ch6JhAG2YbbXrES 3PUA== X-Gm-Message-State: AOJu0Yw6HfasVNGx2nXmu8hzQqrqMkzPYOLSEC3QOBLDMXdHym+DZrU0 rD6myi8HlKftOiDcJVlmBq3HeMRAfgCoUcP5D9gd7JgE X-Google-Smtp-Source: AGHT+IHWOa1gxESeZgWMeWa4ZdjNae8eeJNs9GD1MPrydK6ME+Y/aCcu6XNbySbAjxrIgJ9l8afKWEWliH9CXWdKBAE= X-Received: by 2002:a05:6870:4206:b0:1e9:ec03:80ba with SMTP id u6-20020a056870420600b001e9ec0380bamr19082886oac.18.1700118231303; Wed, 15 Nov 2023 23:03:51 -0800 (PST) MIME-Version: 1.0 References: <1594716181 DOT 20231115200144 AT yandex DOT ru> In-Reply-To: <1594716181.20231115200144@yandex.ru> Date: Thu, 16 Nov 2023 08:03:40 +0100 Message-ID: Subject: Re: setup-x86_64.exe (bug ?): Cannot write to /usr/bin/cygwin1.dll - cyserver squatting it... To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Martin Wege via Cygwin Reply-To: Martin Wege Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3AG74T39010025 On Wed, Nov 15, 2023 at 6:05 PM Andrey Repin via Cygwin wrote: > > 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. 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. Thanks, Martin -- 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