delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/11/20/12:04:44

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 026633858025
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1637427883;
bh=rlMuOAlT8DlK/RDAyzU2LHmwVzNm22kJ2V6+UhoV3eo=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=OqyCCMg9XbpqfeX5K0yHOS5MUOyzfzKUHpiXHmQYP4pPkOwHukBS2vWGxydZ+FVBi
r5lLjGM/yvq8hRawEeVUNndhZMinq4iTW4b2RF0dgvpSKjPx8Rp472c5wAlSudx1oZ
SR6IDrBbbv7h6LLTzaEtOtUCwjJz2mUld6zwYajQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DDC45385840D
X-ME-Sender: <xms:iCqZYY4Be606l5QlSMtGHUh8SXbIr3mUaXaDR_spTl92sv7fCXPhWQ34>
<xme:iCqZYZ5ZozvAtERXRi_Q1qs2q_kEO7V4P7P9I-0fQaiUA6BRyuFdztIVqQgYdhx-4
v8y6VjSXUE8XQ>
X-ME-Received: <xmr:iCqZYXd0GcBBLonZZ3n8wOYF3on6hq1nU6qStsemMeEGHfPNEecqYQozA79gcfsF6QGb2mtrXm9lJCZnk9bPTCdqpgS3PvY7OiI>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgedtgdeliecutefuodetggdotefrodftvf
curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthejre
dttdefjeenucfhrhhomhepmfgvvhhinhcutehnughrvgifucfnihhpshgtohhmsgcuoehk
vghvihhnrghnughrvgiflhhiphhstghomhgssehvthdrvgguuheqnecuggftrfgrthhtvg
hrnhepleehvdefgfdugfefkeffvdejlefgvdefvdelkefgffejvedugeffvdeugeefkeeh
necuffhomhgrihhnpehrvgguhhgrthdrtghomhenucevlhhushhtvghrufhiiigvpedtne
curfgrrhgrmhepmhgrihhlfhhrohhmpehkvghvihhnrghnughrvgiflhhiphhstghomhgs
sehvthdrvgguuh
X-ME-Proxy: <xmx:iCqZYdLsEH4oFszJ3niKDWcJ2JHsPd9kzwwZePwDUXtPC0d6xZrQBw>
<xmx:iCqZYcJF1YtZtoIg7bJA33jMBQvDEEWVjhc0Qe0YP9ptBIWHiudi-g>
<xmx:iCqZYeybOTJuQRyHESpMZXNjRhpLGBCnoi6TxnKoT07Rk8Y3MdyMZQ>
<xmx:iSqZYayBXpn7pO_2TMI_rbmm8T2yNxMX9JrksbOmQAP9mwbS9nth7w>
Message-ID: <7044d2f5-ebd0-4de7-bf07-5a38e2985087@vt.edu>
Date: Sat, 20 Nov 2021 12:04:08 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Subject: Re: ssmtp-config fails on step 6
To: cygwin AT cygwin DOT com
References: <6f224c0f-9629-ab70-1bef-c2c1e742b5fc AT vt DOT edu>
<CAJ1FpuOm_=nw0QyCjmszGnqXouzsCucM9uMhix6iB-NdbQFVog AT mail DOT gmail DOT com>
In-Reply-To: <CAJ1FpuOm_=nw0QyCjmszGnqXouzsCucM9uMhix6iB-NdbQFVog@mail.gmail.com>
X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, KAM_DMARC_NONE, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW,
RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_SOFTFAIL,
TXREP autolearn=ham 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 AT cygwin DOT 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 AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Kevin Andrew Lipscomb via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Kevin Andrew Lipscomb <kevinandrewlipscomb AT vt DOT edu>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 2021-11-19 18:54, Doug Henderson wrote:
> On Fri, 19 Nov 2021 at 11:00, Kevin Andrew Lipscomb via Cygwin <cygwin AT cygwin DOT com> wrote:
>>
>> 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.
>> --
>> -- Kevin
> 
> Please reply quoting the complete failing command line and output from
> "uname -a".

 From a shell launched (from Windows) as Administrator (which is a user that has fully elevated rights)...

Administrator AT WIN-O968FBUMJDS ~
$ /usr/sbin/alternatives --verbose --install /usr/sbin/sendmail mta /usr/sbin/ssmtp.exe 0 \
         --slave /usr/lib/sendmail mta-sendmail /usr/sbin/ssmtp.exe \
         --slave /usr/bin/mailq mta-mailq /usr/sbin/ssmtp.exe \
         --slave /usr/bin/newaliases mta-newaliases /usr/sbin/ssmtp.exe
reading /var/lib/alternatives/mta

Administrator AT WIN-O968FBUMJDS ~
$ uname -a
CYGWIN_NT-6.1 WIN-O968FBUMJDS 3.3.2(0.341/5/3) 2021-11-08 16:55 x86_64 Cygwin

> Also please post the bug number or a link to the bug on bugzilla.redhat.com.

I haven't managed to accomplish that yet.  Their system requires me to select a "classification" or "product" that the bug applies to, and it's not clear to me what I should select.


On 2021-11-19 19:07, Andrey Repin wrote:
:
> alternatives is known to make links to nonexistent objects. While this is
> possible on *NIX, you can only link to existing objects on Windows.

In my case, /var/lib/alternatives/mta does exist, and its contents can be seen here:

Administrator AT WIN-O968FBUMJDS /var/lib/alternatives
$ cat /var/lib/alternatives/mta
manual
/usr/sbin/sendmail
mta-mailq
/usr/bin/mailq
mta-newaliases
/usr/bin/newaliases
mta-sendmail
/usr/lib/sendmail

/usr/sbin/ssmtp.exe
0
/usr/sbin/ssmtp.exe
/usr/sbin/ssmtp.exe
/usr/sbin/ssmtp.exe

Administrator AT WIN-O968FBUMJDS /var/lib/alternatives
$


On 2021-11-19 20:10, Doug Henderson wrote:
:
> 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
> 

Here's what I have:

$ ls -Fals /var/lib/alternatives
total 1
0 drwxr-xr-x+ 1 Administrator None   0 Nov 20 11:46 ./
0 drwxr-xr-x+ 1 Administrator None   0 Feb  5  2018 ../
0 -rw-r--r--  1 Administrator None   0 Apr  4  2013 .keep-alternatives
1 -rw-r--r--  1 Administrator None 200 Nov 20 11:46 mta


Thank you both for your help with this.

-- Kevin

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019