Sankar
Sankar

Reputation: 41

downlaod issue with msys2 pacman

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?

Upvotes: 2

Views: 5511

Answers (2)

Paul
Paul

Reputation: 1

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

Upvotes: 0

nza96
nza96

Reputation: 41

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)

Upvotes: 3

Related Questions