X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ECEA2385AC2D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1637370646;
	bh=On18uzQMz+oacPR+aGpPVeF8CuMoh3jYUwyp0wTtTSM=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=GeeUjJQ9GIBlIKb7W+YXJwnNmCavniBHw5e5GlFTnL2nrBh9Tp0wo5Ru9uCo799WV
	 CpLa6CWVK8Zp5lvHwKzrGteuakq3mpVlQFJQjLAjKXBWScRynqRty6VCwUZs3OooyK
	 dqiJMHddzdNVnDlpCfZtBOzAJn4UQTNLuBwdaK/U=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F21013858406
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=Z5Hsx6Ygh1vdkQ38QkvgA7zQD8oDTFHKKZsWFR56ahM=;
 b=JizKB6PXp2A9v6Db0UWBZH+Bng8nUQvrWuCNKZPaqYkxnx4QHlWgqi4j88o+Sjf0nk
 q5/eRGogBuP06RZhRKCGl2p/hHOcfrSFaJDCaWMMl5k1mezhNIbJxy/b6mkoWhBiW/9p
 DoBv4bTCgOAKhK9+HKxA1i0DzktsTBFtd1+otmdG6fwHmFF/Dw4YWhJ5FAkSscEmIHn5
 eCu9WLeSXkhbFPYy0ukctja5vs3jsXWok8QFBEs8iM3p9aMLAT7CPzp8Uxzd7O/hzkNn
 FeNCvfeG/YDMgTG8x+1EP5PBaXh0UydUV+Qc3rrYtBUqLXx1EnkzX7+CresjlMH98Ay1
 mr8g==
X-Gm-Message-State: AOAM533BZjMkEl7e+vpe6cyTwhfrBaQF8s7B8w3xEAcKfXzHrFq9GxyI
 UpdKBqRUcKPuoilKQa3zPDUtty9hzr9i1aXqTvk9J+uckpk=
X-Google-Smtp-Source: ABdhPJzNmHS7cBaVEuww4DpOOsou+k5cj7+TMSi1CVzTIQ2vrmxaNvEC3YzyKz8i/F6OSdNMbMFjw4+8CxaLi9QI6DY=
X-Received: by 2002:a05:622a:1190:: with SMTP id
 m16mr10960153qtk.287.1637370615461; 
 Fri, 19 Nov 2021 17:10:15 -0800 (PST)
MIME-Version: 1.0
References: <6f224c0f-9629-ab70-1bef-c2c1e742b5fc@vt.edu>
 <238898726.20211120030728@yandex.ru>
In-Reply-To: <238898726.20211120030728@yandex.ru>
Date: Fri, 19 Nov 2021 18:10:04 -0700
Message-ID: <CAJ1FpuNKAMJt68OQ-MnWAEzTWzGtStTMXwN_DXd9K3E2umkC5A@mail.gmail.com>
Subject: Re: ssmtp-config fails on step 6
To: cygwin <cygwin@cygwin.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, FROM_LOCAL_NOVOWEL,
 HK_RANDOM_ENVFROM, HK_RANDOM_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Doug Henderson via Cygwin <cygwin@cygwin.com>
Reply-To: Doug Henderson <djndnbvg@gmail.com>
Cc: Kevin Andrew Lipscomb <kevinandrewlipscomb@vt.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Fri, 19 Nov 2021 at 17:21, Andrey Repin via Cygwin <cygwin@cygwin.com> wrote:
>
> Greetings, Kevin Andrew Lipscomb!
>
> > ssmtp-config fails silently on step 6 at the first call to /usr/sbin/alternatives.
>
> > I isolated the alternatives command, added the --verbose switch to it, and
> > ran the result from a bash shell that was launched as Administrator.  The
> > command fails immediately after emitting:
>
> >    reading /var/lib/alternatives/mta
>
> > I am also reporting this as a bug in alternatives at bugzilla.redhat.com.


> alternatives is known to make links to nonexistent objects. While this is
> possible on *NIX, you can only link to existing objects on Windows.


If that is the case, a possible workaround is to issue the following
command from an elevated shell

touch /var/lib/alternatives/mta

and make sure the ownership and permissions are identical to the other
files, e.g. in my case:

$ ls -l /var/lib/alternatives
total 8.0K
-rw-r--r--+ 1 Admin None  41 Jul 16 11:25 2to3
-rw-r--r--+ 1 Admin None  52 Jul 16 11:25 gnuplot
-rw-r--r--+ 1 Admin None 218 Jun 16 17:48 lua
-rw-r--r--+ 1 Admin None  77 Jun  5 08:46 pip3
-rw-r--r--+ 1 Admin None  85 Jun  5 08:46 pydoc3
-rw-r--r--+ 1 Admin None 110 Jun 16 07:34 python
-rw-r--r--+ 1 Admin None  89 Jun  5 08:46 python3
-rw-r--r--+ 1 Admin None  59 Jul 16 11:25 python3-config

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

-- 
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
