-
Notifications
You must be signed in to change notification settings - Fork 491
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
Update package database and core system packages: Cannot open package file #1962
Comments
Came here to find info about this issue. Happened on two machines, one of which is a clean Windows VM |
Sorry for the inconvenience :/ There is some breakage today with the upgrade path from the last stable installer. Please try the nightly installer: https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-x86_64-latest.exe |
This issue is also affecting AppVeyor builds |
I seem to be able to install and get setup with that new installer. Thanks! |
You can fix this issue by upgrading pacman first:
|
A suggested workaround for msys2 upgrade breakage: msys2/MSYS2-packages#1962 (comment)
Thank you @mati865 . You're workaround worked, but there's a quirk. After updating pacman I called pacman -Su. During the installation, I got the prompt to close down the terminal window, restart msys2.exe and run the command again. The thing is, that msys2.exe did not start again. I tried multiple times and the process just quit right after. It worked after a reboot, though. I could open msys2.exe successfully and the packman -Su ran through. |
@ZuBsPaCe it should be printed in the terminal that you should close all remaining MSYS2 processes (or simply reboot) after the update before opening the shell again. |
@mati865 Just for reference. The exact wording is:
I tried again, just to be sure. I close the terminal and mintty.exe shuts down. msys2.exe cannot be started thereafter. I see gpg-agent.exe and dimngr.exe hanging around, but that's all. Nowhere does it say, that you need a reboot, but I'm happy, that I figured that one out. Thanks for your help. 👍 Edit: Found this in the troubleshooting section of the documentation: |
Hi @lazka, I would like to put absolute no pressure, because this must be already stressful for you. However, I'm trying to setup MSYS2 on GitHub Actions, and there seems to be no solution since yesterday... The context is setup-msys2, where the distributed release package is unpacked and (optionally)
@k-takata (from #1961), note that I cannot reboot the system because this is being executed on a GitHub Actions workflow. As shown in the logs, I print Ref #1960 |
@eine as said above you can upgrade |
@mati865, I would say I have already tried that with no success. However, I'm going to try it again. |
FTR, upgrading pacman first produces the same result, either with 20190524 or 20200517. See https://github.com/eine/setup-msys2/actions/runs/109176396 and https://github.com/eine/setup-msys2/runs/688664492. @lazka, you rock! https://github.com/eine/setup-msys2/runs/688691639?check_suite_focus=true Of course, it'd be good to release a newer nightly (or hopefully "stable" release) which does not require this. Or to automatically handle it otherwise. However, it works for now! Thanks a lot! Is there any list of the tasks we should search for? |
Hello! I just stumbled upon this problem on 2 machines.
|
You might be missing some dll, maybe
You have running processes that have handle on |
Switch to a `setup-msys2` fork working around msys2/MSYS2-packages#1962
I compared the list of files in the directory with a working install: no missing files.
Strange, but that was it! Thank you. |
Works around msys2/MSYS2-packages#1962.
This seems like a good solution to me. What about we run this at the end of every core update? (with confirmation in the tty case) |
I wouldn't recommend killing GnuPG daemons with |
@jtanx, thanks a lot for that so valuable hint! I will test it in https://github.com/eine/setup-msys2/blob/master/main.js#L62-L63
@lazka, I'd be willing to help test such an approach by contributing a GitHub Actions workflow. However, given the volume of repos and packages, I'd need some guidance. |
@emptyVoid what about something like |
Looks good, going to try it out. |
I was thinking about something like
|
What about scripted installations -- will MSYS2 processes be auto-closed with |
sure. I still need to figure out how to make those cases not report a non-error exit status. Maybe skip pacman itself and the parent process if it is a bash and we are noconfirm. edit: SIGTERM and finally taskkill seems to do the trick |
core packges are .xz again now and pacman will autokill all msys packages on a runtime update. I'll release a new installer later today which includes the new pacman version. |
A suggested workaround for msys2 upgrade breakage: msys2/MSYS2-packages#1962 (comment)
remove taskkills per msys2/MSYS2-packages/issues/1962#issuecomment-632703947 also shorten pacman cmds
Underlying issue (msys2/MSYS2-packages#1962) seems to have been fixed.
Still not solved... |
See msys2/MSYS2-packages#1962 (cherry picked from commit c2ae4b4)
Works around msys2/MSYS2-packages#1962.
Underlying issue (msys2/MSYS2-packages#1962) seems to have been fixed.
Hi there. I'm new to MSYS2 and would like to evaluate it to build some software on windows which needs to be built with gcc.
Unfortunately I get an error on a fresh MSYS2 installation when running pacman -Suy. Sorry, can't tell if I did something stupid.
The text was updated successfully, but these errors were encountered: