Remove lock file as in message
I have same problem. windows 7 64 bit.
Install from msys2-x86_64-20161025.exe and exec 'pacman -Syuu' and close window.
(It dose not close in several minutes, I have to kill mintty, though.)
After restarting mintty from msys2_shell.cmd, 'pacman -Suu' or 'pacman -Syuu' command exits without installing anything, and return to bash prompt. Lock file remains. If I remove lock file, next pacman command exits abnormally as well.
PS. I tried 32 bit msys msys2-i686-20161025.exe on the same PC, but the result are the same.
I tried doing a fresh install on x64 Win7 and everything worked fine here :/
I found a workaround, See https://github.com/msys2/msys2/issues/87#issuecomment-335368074 , but then problem occurred on the next step:
$ pacman -S mingw-w64-x86_64-toolchain
:: There are 17 members in group mingw-w64-x86_64-toolchain:
:: Repository mingw64
1) mingw-w64-x86_64-binutils 2) mingw-w64-x86_64-crt-git
3) mingw-w64-x86_64-gcc 4) mingw-w64-x86_64-gcc-ada
5) mingw-w64-x86_64-gcc-fortran 6) mingw-w64-x86_64-gcc-libgfortran
7) mingw-w64-x86_64-gcc-libs 8) mingw-w64-x86_64-gcc-objc
9) mingw-w64-x86_64-gdb 10) mingw-w64-x86_64-headers-git
11) mingw-w64-x86_64-libmangle-git 12) mingw-w64-x86_64-libwinpthread-git
13) mingw-w64-x86_64-make 14) mingw-w64-x86_64-pkg-config
15) mingw-w64-x86_64-tools-git 16) mingw-w64-x86_64-winpthreads-git
17) mingw-w64-x86_64-winstorecompat-git
Enter a selection (default=all):
resolving dependencies...
looking for conflicting packages...
Packages (41) mingw-w64-x86_64-bzip2-1.0.6-6
mingw-w64-x86_64-ca-certificates-20170211-2
mingw-w64-x86_64-expat-2.2.3-1 mingw-w64-x86_64-gdbm-1.12-1
mingw-w64-x86_64-gettext-0.19.8.1-2 mingw-w64-x86_64-gmp-6.1.2-1
mingw-w64-x86_64-isl-0.18-1 mingw-w64-x86_64-libffi-3.2.1-4
mingw-w64-x86_64-libiconv-1.15-1
mingw-w64-x86_64-libsystre-1.0.1-3
mingw-w64-x86_64-libtasn1-4.12-1
mingw-w64-x86_64-libtre-git-r128.6fb7206-1
mingw-w64-x86_64-mpc-1.0.3-2 mingw-w64-x86_64-mpfr-3.1.6-1
mingw-w64-x86_64-ncurses-6.0.20170916-1
mingw-w64-x86_64-openssl-1.0.2.l-1
mingw-w64-x86_64-p11-kit-0.23.7-1
mingw-w64-x86_64-python2-2.7.14-1
mingw-w64-x86_64-readline-7.0.003-1 mingw-w64-x86_64-tcl-8.6.7-1
mingw-w64-x86_64-termcap-1.3.1-2 mingw-w64-x86_64-tk-8.6.7-1
mingw-w64-x86_64-windows-default-manifest-6.4-3
mingw-w64-x86_64-zlib-1.2.11-1
mingw-w64-x86_64-binutils-2.29.1-1
mingw-w64-x86_64-crt-git-5.0.0.4966.1eee2140-1
mingw-w64-x86_64-gcc-7.2.0-1 mingw-w64-x86_64-gcc-ada-7.2.0-1
mingw-w64-x86_64-gcc-fortran-7.2.0-1
mingw-w64-x86_64-gcc-libgfortran-7.2.0-1
mingw-w64-x86_64-gcc-libs-7.2.0-1
mingw-w64-x86_64-gcc-objc-7.2.0-1 mingw-w64-x86_64-gdb-8.0.1-2
mingw-w64-x86_64-headers-git-5.0.0.4966.1eee2140-1
mingw-w64-x86_64-libmangle-git-5.0.0.4760.d3089b5-1
mingw-w64-x86_64-libwinpthread-git-5.0.0.4850.d1662dc7-1
mingw-w64-x86_64-make-4.2.1-1
mingw-w64-x86_64-pkg-config-0.29.2-1
mingw-w64-x86_64-tools-git-5.0.0.4849.1259532f-1
mingw-w64-x86_64-winpthreads-git-5.0.0.4850.d1662dc7-1
mingw-w64-x86_64-winstorecompat-git-5.0.0.4760.d3089b5-1
Total Download Size: 124.08 MiB
Total Installed Size: 694.42 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
(41/41) checking keys in keyring [#####################] 100%
(41/41) checking package integrity [#####################] 100%
error: mingw-w64-x86_64-libiconv: signature from "Alexey Pavlov (Alexpux) <[email protected]>" is invalid
:: File /var/cache/pacman/pkg/mingw-w64-x86_64-libiconv-1.15-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
Am I connecting to wrong repository?
EDIT
Oddly, all mingw* files in /var/cache/pacman/pkg is 0KB.
I reedit pacman.conf to change download command to wget, then 'pacman -S' command download them correctly.
There is a newer installer, which might work better: https://sourceforge.net/projects/msys2/files/Base/x86_64/msys2-x86_64-20170918.exe/download
--debug and --verbose.--
David Macek
Weird.
Can you check if you have anything from BLODA running?
Other than that, try strace or procmon to check what happens right before the crash.
--
David Macek
Can you check pldd $$ (maybe post the output here)?
--
David Macek
/c/Windows/system32/tmumh/20019/AddOn/6.80.0.1007/TmUmEvt64.dll
/c/Windows/system32/tmumh/20019/TmMon/1.6.0.1201/tmmon64.dll
Oh yeah, those are some trendy micros right there. :P
Since you can't remove the AV, is there at least an option to ignore specific programs or whole directories?
--
David Macek
I have exactly the same problem.
I've found a solution: edit your /etc/pacman.conf and uncomment the following line:
XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
I have the same problem.
Nothing happened when I run pacman.

I use msys2 that comes preinstalled with omnet++, When I update pacman to support zstd, I get the same result. Any way to fix this?
Hi @a-huk Have you contacted that project devs? Maybe you can ask them to update the installer?
Hi @a-huk Have you contacted that project devs? Maybe you can ask them to update the installer?
Yes, I have, was just wondering if there was anything I could do on my side?
There are some tips and tricks here https://www.msys2.org/news/. But it depends on your specific issue and you have to know the pacman commands well.
Most helpful comment
I've found a solution: edit your /etc/pacman.conf and uncomment the following line:
XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u