2

I am trying to setup msys2 as mentioned here. When i do the step 5 to run the "pacman -Sy pacman", it reports that

error: failed retrieving file 'mingw32.db' from repo.msys2.org : The requested URL returned error: 403
error: failed retrieving file 'mingw32.db' from downloads.sourceforge.net : The requested URL returned error: 403
error: failed retrieving file 'mingw32.db' from www2.futureware.at : The requested URL returned error: 403

I am running this under a network with authenticated proxy and i have already configured the proxy settings as mentioned here before running the "pacman" commands.

In the same shell, i ran the "pacman" with --debug option to get the URL of "mingw32.db" and tried to manually download that using "curl" as

 curl -O http://repo.msys2.org/mingw/i686/mingw32.db

This is able to download the file. So i assume my proxy setup is fine in the msys2 shell.

I am not sure why "pacman" is not able to download the file by itself as it internally uses "curl".

Any hints on what is wrong here?

user1767316
  • 3,276
  • 3
  • 37
  • 46
Sankar
  • 41
  • 1
  • 4
  • Seems to be an intermittent issue with `mingw32.db` repos. It happens to me sometimes but the next day it works OK. – roblogic Nov 22 '16 at 20:26
  • @ropata, thanks, atleast you are lucky – Sankar Nov 28 '16 at 11:18
  • @user1767316 You say you want to make `pacman-game` a synonym for `pacman`, but this post has nothing to do with the game?! It's about the package manager with the same name. – HolyBlackCat Jul 31 '21 at 15:12
  • @user1767316 exactly but I need to suggest a change to the pacman tag because it is often used for subjects related to pacman package manager and I need points linked to the pacman tag to do the suggestion ... but I only asked and answered questions about the pacman package manager ... I stoppped this attempt and put the right pacman-package-manager tag – user1767316 Jul 31 '21 at 15:16
  • @HolyBlackCat ... do not know yet if it gives a point, I stopped my attempts to get it this way anyway – user1767316 Jul 31 '21 at 15:22
  • @user1767316 Ah, now I get what you were trying to do. Ok. – HolyBlackCat Jul 31 '21 at 15:22

2 Answers2

3

In the /etc/pacman.conf file, uncomment either line 18 or 19, to use either curl or wget:

XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

exit and restart the shell. The repos should be accessible now.

(Source)

Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
nza96
  • 41
  • 4
  • did that - changed it to `/c/Windows/System32/curl` has no effect - `which curl` still returns `/usr/bin/curl` despite calling `/c/Windows/System32/curl --trace '/dev/stdout' http://www.google.com` working correctly And putting an alias in my .bashrc for that is a really sad solution (for this MSYS2 bug) – GWD May 14 '22 at 17:30
0

I had similar issues. The mys2 curl package didn't work, but the mingw version did.

XferCommand = /mingw64/bin/curl -L -C - -f -o %o %u
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
Paul
  • 1