Failed retrieving file 'code.db' from

I get this error if I want update my OS, this happened after yesterday updated + my Visual Studio Code is deleted from my OS why this happened?
error: failed retrieving file ‘code.db’ from : The requested URL returned error: 404
error: failed to synchronize all databases (unexpected error)
** → error refreshing databases - exit status 1**

How did you install Visual Studio Code and how did you uninstall it?

My VS code is deleted after update and I don’t uninstalled his. I don’t remember how I installed it.

Do you have in your /etc/pacman.d/mirrorlist?

Remove it and try updating again: sudo pacman -Syu

If you get any errors, post the whole terminal outout:

Copy, paste and press Ctrl-E to format.

If you mean /etc/pacman.conf yes I have two repository, but in this way /etc/pacman.d/mirrorlist, I have only country repositories

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
Server =$arch
Server =$arch
Server =$repo

If you had added these for installing Visual Studio Code, you could remove them.

I have no idea what this one is for.

1 Like

this Server =$arch is crypto currency app from ledger, it’s ok now is workes and update os thank you.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.