public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Doug Henderson <djndnbvg@gmail.com>
To: cygwin <cygwin@cygwin.com>
Cc: Kevin Andrew Lipscomb <kevinandrewlipscomb@vt.edu>,
	Andrey Repin <anrdaemon@yandex.ru>
Subject: Re: ssmtp-config fails on step 6
Date: Fri, 19 Nov 2021 18:10:04 -0700	[thread overview]
Message-ID: <CAJ1FpuNKAMJt68OQ-MnWAEzTWzGtStTMXwN_DXd9K3E2umkC5A@mail.gmail.com> (raw)
In-Reply-To: <238898726.20211120030728@yandex.ru>

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

  reply	other threads:[~2021-11-20  1:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19 17:59 Kevin Andrew Lipscomb
2021-11-19 23:54 ` Doug Henderson
2021-11-20 17:04   ` Kevin Andrew Lipscomb
2021-11-20  0:07 ` Andrey Repin
2021-11-20  1:10   ` Doug Henderson [this message]
2021-11-20 22:26   ` Ken Brown
2021-11-22 10:28     ` Corinna Vinschen
2021-11-22 18:04       ` Achim Gratz
2021-11-22 18:29         ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ1FpuNKAMJt68OQ-MnWAEzTWzGtStTMXwN_DXd9K3E2umkC5A@mail.gmail.com \
    --to=djndnbvg@gmail.com \
    --cc=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=kevinandrewlipscomb@vt.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).