`update`: error: failed to synchronize all databases (unexpected error)

:warning:This issue is now fixed. you can run either garuda-update or garuda-update -a (to update AUR as well) to update normally! :warning:

:warning: The information below is currently here for historical reasons and is not needed at this time :warning:

I thought I would try to recap things here.
As SGS mentioned you need to have a working mirror list and then use garuda-update --skip-mirrorlist in order to update. Here are the steps to do so:

  1. Generate new mirrors that work best for your location by using: Arch Linux - Pacman Mirrorlist Generator
  2. sudo micro /etc/pacman.d/mirrorlist
    (in this example we are using mirco as the text editor; use what you normally like of course)
  3. Delete everything currently inside that file.
  4. Paste new mirrors obtained from the Pacman Mirrorlist Generator in step 1.
  5. Remove the # in front of the lines of the mirrors you want to use. You’ll want to use a few mirrors of course.
  6. Save using ctrl+S then quit using ctrl+Q
  7. garuda-update --skip-mirrorlist
    (or garuda-update -a --skip-mirrorlist to update AUR packages as well)

(note to Moderators:
These are the steps I tried myself. If anything needs to be edited, feel free to do so)

18 Likes