-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSYS2 windows install missing means to decompress ZST archives #1960
Comments
I think got a different error under Win7 using the msys2-x86_64-20190524.exe installer. Tim S. |
I think something is wrong with the "msys2-runtime-3.1.4-1-x86_64.pkg.tar.zst" package. Tim S. |
@stahta01 I tried to fix the issue, via putting binary zstd.exe into msys2 bin folders (took it from mingw-w64-x86_64-zstd-1.4.4-1-any.pkg.tar.xz), but somehow everything broke in different way. |
Same issue -- I thought it was fixed by using nightly installer in that i was able to install GCC. However, my first |
You can fix this issue by upgrading pacman first:
As always, close the terminal and make sure there are no open processes when you see message like that in the terminal. |
@mati865 after using this, msys2 stops launching without any errors. |
@mamontov-cpp that happens when you haven't closed all remaining MSYS2 processes after upgrading. |
@mati865 Thank you! This fixed my issues. |
@mati865 with this last update, for some reason, closing the mintty window didn't close pacman. |
Why switch to zstd for critical packages is beyond me. This broke MSYS2 on my workstation beyond repair... |
For me doing a partial update of just When ArchLinux enabled zstd compression they provided a statically linked version of pacman with the zstd library so users could break the loop and update the system from an older state with no zstd support. Maybe MSYS2 could do the same? |
MSYS2 introduced a bug msys2/MSYS2-packages#1960 The current workaround is to update pacman before updatign rest of deps Signed-off-by: Adrian Suciu <adrian.suciu@analog.com>
MSYS2 introduced a bug msys2/MSYS2-packages#1960 The current workaround is to update pacman before updating rest of deps Signed-off-by: Adrian Suciu <adrian.suciu@analog.com>
Latest stable installer from 2019-05-24 has recent enough runtime to keep working with that partial upgrade.
This was always the case when upgrading runtime because of Windows limitations.
MSYS2 pacman is as much statically compiled as possible. The only dependency apart from Windows DLLs is |
MSYS2 introduced a bug msys2/MSYS2-packages#1960 The current workaround is to update pacman before updating rest of deps Signed-off-by: Adrian Suciu <adrian.suciu@analog.com>
MSYS2 introduced a bug msys2/MSYS2-packages#1960 The current workaround is to update pacman before updating rest of deps Signed-off-by: Adrian Suciu <adrian.suciu@analog.com>
@mati865 thanks for the pointers. I'll try the Chocolatey self-kill recipe to avoid the hang. |
FWIW this hang does not happen with the base I'm currently using, msys2-base-x86_64-20180531. |
I'm still new to this, but if I use the latest exe then I run into the the zst unrecognized archive files. If I use the installer from the website then I do NOT get the error upon installation, but I cannot reopen MSYS2 after that. After closing the window (when prompted to do so), I checked in task manager and nothing else was running under "pacman" or "msys2" to close. |
@kolt54321 they can have different names like gpgme or dir. The best way to find them is looking for |
@mati865 Thank you - this worked. Searching for "msys" found all the processes. Is there a better way to close MSYS2 after initial installation so users do not run into this issue? Say, through the terminal? I verified using the installer on msys2.org here that updating afterwards via |
MSYS2 introduced a bug msys2/MSYS2-packages#1960 The current workaround is to update pacman before updating rest of deps Signed-off-by: Adrian Suciu <adrian.suciu@analog.com>
FWIW a colleague debugged it and finally was able to get the following setup working to work around the first run hang problem, using msys2-base-x86_64-20200517.tar.xz. This is the first command we run after extracting the archive: .\msys64\usr\bin\bash.exe --login -cx "export THIS_BASH_PID=$$; ps -ef | grep '[?]' | awk '{print $2}' | grep -v $THIS_BASH_PID | xargs -r kill; exit 0" Thanks again for pointing to Chocolatey for the inspiration! |
This work around worked for me yesterday. But now I am getting-
Background info- |
@goalkeeper007 pacman was updated in meantime and is now archived with zstd. You can either use newer installer or download |
MSYS2 introduced a bug msys2/MSYS2-packages#1960 The current workaround is to update pacman before updating rest of deps Signed-off-by: Adrian Suciu <adrian.suciu@analog.com>
pacman 5.2.1 uses zstd instead of gzip. Upgrading pacman by pacman from old MSYS2 doesn't work. We need to upgrade pacman manually. See also: msys2/MSYS2-packages#1960
pacman 5.2.1 uses zstd instead of gzip. Upgrading pacman by pacman from old MSYS2 doesn't work. We need to upgrade pacman manually. See also: msys2/MSYS2-packages#1960 Closes #7239 from kou/glib-ci-fix-msys2-update Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
thanks @mati865. I couldnt find command line version of new installer. And ran into other issues getting downgraded versions to work. Ultimately what worked for me was-
That completed the installation error-free. Hopefully will help others. |
all core packages are .xz again now, so this should be fixed. (see #1969) |
pacman 5.2.1 uses zstd instead of gzip. Upgrading pacman by pacman from old MSYS2 doesn't work. We need to upgrade pacman manually. See also: msys2/MSYS2-packages#1960 Closes apache#7239 from kou/glib-ci-fix-msys2-update Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
The main problem is that we are using a build framework and I think that it's not feasible to fix locally the problem. I think that it's not a good idea to break the build for everyone and provide a manual solution of how to fix it. Please generate the package with the old extension. |
@sn-lurman I don’t want to switch back really. |
It was a message that all core packages are .xz again now, so this should be fixed. |
@sn-lurman wait when fix will be in repo. |
When it will be available? |
Try update |
FYI appveyor now has an image with an up-to-date preinstalled msys2:
|
pacman 5.2.1 uses zstd instead of gzip. Upgrading pacman by pacman from old MSYS2 doesn't work. We need to upgrade pacman manually. See also: msys2/MSYS2-packages#1960 Closes #7239 from kou/glib-ci-fix-msys2-update Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
I am starting with a fresh install installing MSYS2 on windows 10. After the install is complete I run "pacman -Syuu" to start updating it but it will fail with the error "Unrecognized archive format" for any archives that are a zst file.
Any solution I have found online to help fix it does not apply to windows.
The text was updated successfully, but these errors were encountered: