MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

Problem: git-remote-http.exe and git-remote-https.exe: requires permission to perform this action to copy

Open avachon100510 opened this issue 2 years ago • 6 comments

I'm running a Windows 11 laptop running MSYS2. Upon doing pacman -S git, it is unable to copy git-remote-http.exe and git-remote-https.exe. I also tried copying it manually, but that also fails, saying that it requires permission to perform this act. The msys64 folder is clearly whitelisted from Avast Antivirus detection, and made sure that every user has permission for this folder, it doesn't work. I'm starting to suspect that a bug is in cause. Some help would be appreciated. Thanks.

avachon100510 avatar Jan 10 '22 18:01 avachon100510

Just to confirm a few things

  • Where is msys2 installed (is it in C:\msys64 for example)?
  • How did you install it? Was it using the .exe installer or tar unpack?
  • Is the location it's installed on a local drive or a smb or nfs share?

1480c1 avatar Jan 10 '22 18:01 1480c1

  1. In C:\msys64, indeed
  2. MSYS2, the latest version, was installed using the .exe installer.
  3. It's on the main C: drive.

avachon100510 avatar Jan 10 '22 18:01 avachon100510

Can you try downloading either the .sfx.exe or .tar.xz from http://repo.msys2.org/distrib/ and unpacking it to somewhere else and see if you can run the msys2 shell and run pacman from there? I'm trying to determine if it's an issue with running msys2 from the top-level folder of your C drive or if it's msys2 itself that doesn't allow you to run pacman to install git

1480c1 avatar Jan 10 '22 18:01 1480c1

Only git-remote-http.exe and git-remote-https.exe did not copy, the other files from git-core had no problem, I forgot to clarify.

avachon100510 avatar Jan 10 '22 18:01 avachon100510

Oh, that's even weirder then.

1480c1 avatar Jan 10 '22 18:01 1480c1

@avachon100510 The tortoisegit program running in the background may be a problem.

piotrvv avatar Jan 22 '22 23:01 piotrvv