msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.28k stars 486 forks source link

MSYS2 always start as Firstime to run and not able to upgrade #1802

Open vnluc opened 4 years ago

vnluc commented 4 years ago

I just install Msys2 on Windows 10 with package msys2-x86_64-20190524.exe

Unfortunately I can not update any package after install. every time I try running msys2_shell.cmd it detect as "first time to run Msys2" ` ###################################################################

C A U T I O N

This is first start of MSYS2.

You MUST restart shell to apply necessary actions.

###################################################################

I try pacman-key --init and got this.

$ pacman-key --init /usr/share/makepkg/util/parseopts.sh: line 119: cannot create temp file for here-document: Invalid request code pacman-key: option '--' is ambiguous; possibilities: 'add' 'config' 'delete' 'edit-key' 'export' 'finger' 'gpgdir' 'help' 'import' 'import-trustdb' 'init' 'keyserver' 'list-keys' 'list-sigs' 'lsign-key' 'nocolor' 'populate' 'recv-keys' 'refresh-keys' 'updatedb' 'verify' 'version' ` What can I do? I just reinstall MSYS2 but still got issue

vnluc commented 4 years ago

I also try autorebase and got error

D:\bin2\msys64>autorebase rm: cannot remove '/c/Users/admin/AppData/Local/Temp/rebase.lst': Invalid request code rebase: Too many DLLs for available address space: Cannot allocate memory rm: cannot remove '/c/Users/admin/AppData/Local/Temp/rebase.lst': Invalid request code

guslanzetta1 commented 1 year ago

I have this problem too. Win 11 install

Biswa96 commented 1 year ago

Antivirus may interfere with the installation process. Try to exclude the msys2 installation directory in antivirus settings. I am using msys2 in both Windows 10 and Windows 11 without any issue.

rikivillalba commented 5 months ago

Try setting db_home dir to /home/ or another absolute path in /etc/nsswitch.conf.