Whenever I try to download an app using pacman, I get this:
sudo pacman -S vlc ✔
[sudo] password for calvino:
warning: database file for 'vscode' does not exist (use '-Sy' to download)
:: Some packages should be upgraded first...
error: failed to prepare transaction (could not find database)
error: failed to prepare transaction (could not find database)
sudo pacman -Syu vlc ✔
[sudo] password for calvino:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
vscode.db failed to download
error: failed retrieving file 'vscode.db' from packages.microsoft.com : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)
Your problem had multiple parts.
The first part was your mirror status, lack of database, etc. that part is fixed now.
This is a different problem.
You seem to have manually added a third party repository.
This is of course unsupported.
I cannot comment on whether it is functioning properly or not.
(you will find your entry somewhere in /etc/pacman.conf or in directory /etc/pacman.conf.d/)
You asked a different question in your original post text than you did in the title.
Resync/update after the edits and your output should be more clean:
sudo pacman -Syu
PS.
I realize there is another problem.
The communty repo no longer exists.
Given your recent operations you probably know how to handle this.
But it would have also been provided via a pacnew file … so this indicates you may have been ignoring those for some time.
To print your pacnews:
pacdiff -o
For an easy gui to handle them see package manjaro-pacnew-checker
That … that probably means some good sections of the file system has been augmented from its packaged status.
If they were untended for years I might think there would be a few dozen … but hundreds? …
Thats more likely an outcome of running a downloaded install script that overwrites large numbers of drivers libraries or something.
Sorry, what language is that? It’s definitely not English. Please use words, not invented abbreviations.
This is a support forum, not a social network or instant messenger. Note that I have merged your successive replies and fixed your formatting–this time.