delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/29/11:47:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=fMM5tundIXjedcgZQeze1VxyAaguF
/actOMkIW5w0KMgn29+OkLSpofUJP2hO0npBO50IcT/+6rfIrVmrKqq9ZS/QSXlb
U3GTvpNJibLZzMiT6OXBf855tJeU6m979+EVQMdk38Q/OzHaJzIPwWD2nvils6jw
m531WOfDsiscoM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=MPt6RxfI42EWVfshPtCXYyTkySI=; b=K4/
X3nxI2nuUtdP0U2nnpbctbFUBYyf1wy9+SnRl4c7Enz4rPSGmWhTg7av0Ip4pyEv
gvkmue41fFmr3P5k+0BVjtOIpBcHMMAFo1/gIRpw406u7UeuOda8qzBarXBQeWbW
oyxwMBmaSQVSY3RudJ/0yy8pkW9X0ASsKw/BsuY8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_YG autolearn=ham version=3.3.1
MIME-Version: 1.0
X-Received: by 10.60.51.105 with SMTP id j9mr2041862oeo.22.1369842440855; Wed, 29 May 2013 08:47:20 -0700 (PDT)
Date: Wed, 29 May 2013 10:47:20 -0500
Message-ID: <CAHiT=DFj=y4PS5d_mj0erWpB-uCieE+KWh3T=J4wnuSOij5hJA@mail.gmail.com>
Subject: Re: cygutils Postinstall Script Errors With Exit Code 128
From: Reini Urban <rurban AT x-ray DOT at>
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>,
Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>

On Tue, May 28, 2013 at 2:43 Paul.Nickerson wrote:
> I am attempting to install Cygwin, and am getting errors near the end of
> the process. I am using version 2.774 of setup.exe on Microsoft Windows
> Server 2003 R2 Datacenter x64 Edition Service Pack 2 and the default
> Cygwin packages. This is an Amazon AWS EC2 instance, and I am remote
> desktopping in. In the Cygwin Setup GUI, after it goes through the install
> procedure, I get a window titled Postinstall script errors, with the below
> output text:
>
> Package: base-cygwin
>         000-cygwin-post-install.sh exit code 128
> Package: terminfo
>         terminfo.sh exit code 128
> Package: bash
>         bash.sh exit code 128
> Package: coreutils
>         coreutils.sh exit code 128
> Package: _autorebase
>         autorebase.bat exit code -1073741819
> Package: base-files
>         base-files-profile.sh exit code 2816
>         base-files-mketc.sh exit code 128
> Package: cygutils
>         cygutils.sh exit code 127
> Package: man
>         man.sh exit code 128

I got the cygutils postinstall error also, caused by missing dependencies.

$ cat /etc/postinstall/cygutils.sh
/usr/bin/update-desktop-database
/usr/bin/update-mime-database /usr/share/mime

both scripts do not exist, and are no cygutils reqs.
please test against it.
like:
test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database
test -f /usr/bin/update-mime-database && /usr/bin/update-mime-database
/usr/share/mime

> If I then open Cygwin Terminal using the Desktop shortcut, I get a window
> titled "-sh" and a prompt that says "-sh-4.1$". The command "ls" returns
> "-sh: ls: command not found", but echo works. I have tried re-running
> setup.exe, removing the cygwin directory, re-downloading the setup.exe,
> removing HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygwin from the registry,
> setting "Turn on DEP for essential Windows programs and services only" and
> rebooting, altering file and folder permissions, deleting the cache and
> using different mirrors, and using rdesktop in CentOS vs. mstsc.exe in
> Windows to remote desktop in, but none of this changes the behavior.
>
> I have an odd and possibly related behavior. If I open Command Prompt, run
> C:\cygwin\bin\bash.exe --norc --noprofile
> to get a "bash-4.1$" prompt, then in there run
> if [ "foo" = "foo" ]; then echo "Expression evaluated as true."; fi
> the bash prompt will exit back to command prompt, and %ERRORLEVEL% has
> been set to 128.
> Running that if statement in the window brought up by the Cygwin Terminal
> Desktop shortcut will sometimes make the window close, but not always. I
> have not explored how I might be triggering the Desktop shortcut to work
> or not work.
>
> I have attached setup.log and setup.log.full.
>
> When I run cygcheck -s -v -r > cygcheck.out, it hangs and does not exit.
> Checking Task Manager, I see that it's using ~45% CPU (I have 2 virtual
> cores). It does write some things out to cygcheck.out, which I have
> attached. When I run the command in Command Prompt without redirecting
> output to a file, I get a little more information before it hangs, which I
> have copied out of the command prompt and attached as
> cygcheck-no-redirect.out. I do not know why it's saying I have multiple
> cygwin1.dlls on my path. There is only C:\cygwin\bin\cygwin1.dll.
>
> Looking at cygcheck.out, I am running in a Terminal Service session, which
> makes sense as I am remote desktopped in. My problem might be related to
> FAQ #2.14 (http://cygwin.com/faq-nochunks.html#faq.setup.setup-fails-on-ts
> ), but the DEP solution is not helping me. I tried running
> "C:\cygwin\bin>peflags --tsaware=true --tsaware *" in Command Prompt, but
> it did not change anything.

--
Reini Urban
http://cpanel.net/   http://www.perl-compiler.org/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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