Skip to content
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

error: failed retrieving file 'msys.db' (Solved on x86_64 Windows 10) #1581

Closed
rdthree opened this issue Feb 21, 2019 · 14 comments
Closed

error: failed retrieving file 'msys.db' (Solved on x86_64 Windows 10) #1581

rdthree opened this issue Feb 21, 2019 · 14 comments

Comments

@rdthree
Copy link

rdthree commented Feb 21, 2019

pacman.conf sets Architecture = auto and it appears that auto uses uname -m which results in 86_64.
the msys mirror paths use x86_64 not 86_64
as a result I manually changed pacman.conf to say Architecture = x86_64. This might be useful if posted somewhere for others having similar problems.

This was one example from the debug result of pacman -Syuv --debug
debug: response code: 404 error: failed retrieving file 'msys.db' from repo.msys2.org : The requested URL returned error: 404 debug: url: https://sourceforge.net/projects/msys2/files/REPOS/MSYS2/86_64/msys.db
it should instead direct to:
https://sourceforge.net/projects/msys2/files/REPOS/MSYS2/86_64/msys.db

@baysmith
Copy link

Thank you. This fixed the same issue for me.

@StarWolf3000
Copy link
Contributor

For me $ uname -m gives x86_64, so I don't know what your problem is.

@orgads
Copy link
Contributor

orgads commented Feb 24, 2019

I have the same issue. uname -m gives 86_64 with msys2-runtime version 3.0.1.

@StarWolf3000
Copy link
Contributor

There is no msys2-runtime with version 3.0.1. The latest is 2.11.2-1. See this comment: #1578 (comment)

@orgads
Copy link
Contributor

orgads commented Feb 24, 2019

Right. That's from GfW.

@StarWolf3000
Copy link
Contributor

So, if you want Git for Windows and don't care about pacman, use the Git for Windows setup, otherwise install MSYS2 and then install the git package with pacman to make sure, everything is working as intended.
For some reason, the standalone setup is not in line with the release in MSYS2, breaking things afterwards.

@rdthree
Copy link
Author

rdthree commented Feb 26, 2019

the same thing just happened when updating my other laptop. changing the Architecture line on pacman.conf was a pretty easy fix. Almost reminded of the good ol' days when all I used was Arch Linux.

@StarWolf3000
Copy link
Contributor

StarWolf3000 commented Feb 28, 2019

As stated, this is not an issue with the official repositories of MSYS2 and their mirrors. Report it at https://github.com/git-for-windows/msys2-runtime and https://github.com/git-for-windows/MSYS2-packages.

@rdthree
Copy link
Author

rdthree commented Feb 28, 2019

As stated, this is not an issue with the official repositories of MSYS2 and their mirrors. Report it at https://github.com/git-for-windows/msys2-runtime and https://github.com/git-for-windows/MSYS2-packages.

sounds good, those repo's have no issues section so I just made pull requests.

@rdthree rdthree closed this as completed Feb 28, 2019
@pjlbyrne
Copy link

New MSYS2 user here - this is still happening.

@WhiteChairFromIkea
Copy link

WhiteChairFromIkea commented Jun 2, 2022

In case error is: 'msys.db' from downloads.sourceforge.net : The requested URL returned error: 404, (got that on 2022-June):

  1. Sourceforge server is empty now:
    0348d
    0557S

  2. I have fixed this by removing Server = https://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/$arch/ line from \etc\pacman.d\mirrorlist.msys:

was:
0744l

fixed:
0819v

Got this idea by examining pacman log file, found inside \var\log\pacman.log: such line appeared there: [ALPM] warning: /etc/pacman.d/mirrorlist.msys installed as /etc/pacman.d/mirrorlist.msys.pacnew.

I hope that helps!

@marsteen
Copy link

marsteen commented Jun 5, 2022

@WhiteChairFromIkea
Thanks, this solved the problem for me, too!

@Kingnon6754
Copy link

i false to solve this proplem

@chucklu
Copy link

chucklu commented Jan 18, 2024

similar issue Install gcc and ninja failed through the mirrors.tuna.tsinghua.edu.cn
file content of C:\msys64\etc\pacman.d\mirrorlist.msys should contains $arch

Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch/

@msys2 msys2 deleted a comment from FOASHA Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants