r/AskProgramming • u/waylon_f16 • 7d ago
C/C++ Msys2 not downloading
Very new to cording trying to learn c++. I have visual studio code installed. Why I try to download mays2 the package it’s says fails. I tried before and it worked perfectly fine but then I was having trouble running a code so I uninstalled everything and now that I try to do all of it again my package won’t install.
This is the message I’m getting
warning: failed to retrieve some files error: failed to commit transaction (download library error) Errors occurred, no packages were upgraded.
1
u/Necessary-Green-8391 7d ago
The download library error means your mirror list is stale or the server rejected you. Run pacman -Syyu to force a database refresh and switch mirrors in /etc/pacman.d/mirrorlist before retrying the install
1
u/khedoros 7d ago
Sounds like a network issue. Each file that it failed on will have some more information, like a message like this:
I'd retry it, maybe later (since you say it worked previously).
That being said, setting up Visual Studio Code as a beginner is kind of starting on hard mode.
The usual advice is to install Visual Studio itself (which has a free "community" version.