Pacman error: failed to synchronize all databases (no servers configured for repository)

While running sudo pacman -Sy, I get the following error :
error: failed to synchronize all databases (no servers configured for repository)

Beforehand, I've already ran refresh mirrorlist using Garuda Assistant, can anyone guide me through a fix? Thank you!

Please post the full output. This error will be tied to one specific repository, but there's no way of knowing from the output you have provided.

If you don't want to do that, try running upd in a terminal.

As an aside, running pacman -Sy is almost always a bad idea.

5 Likes

I have the same issue, The issue arised after updating my package keys. I did sudo pacman -Sy archlinux-keyring chaotic-keyring .
the output showed to check and merge the .pacnew files. I merged the files using mv . And after that I tried pacman -Syu and got this error.

That was not a good choice. You actually overwrote the old setting with the new. Blind eyes. Instead of merging them.
Also an idea, maybe you unwillingly moved the pacman.conf into the pacman.confnew, instead of the contrary, so basically lost any config?

3 Likes

Thanks for the suggestion. Will keep it in mind. I used mv as the forum instructing the manual intervention for pacman 6 update did the same. Also I don't know other ways to do it :sweat_smile: . Linux noob here :raising_hand_man: .
I checked whether I moved the files , the other way around, but that does not seem to be the case.

I do it with sudo -H DIFFPROG=kompare pacdiff (meld instead of compare is also fine of course).
mv is OK, but you’ll need to know what to add or change after.
Good idea, to go back to the long pacman 6 topic, because there you’ll find many examples and screenshots of the needed configuration.
For example, if you moved pacman.conf.pacnew into pacman.conf you’ll have lost at the end:

[chaotic-aur]
Include = /etc/pacman.d/chaotic-mirrorlist
3 Likes

Thank you. . Will use this from now on.

1 Like

Sorry, I just noticed a typo in my previous post: it is kompare not compare :slight_smile:

2 Likes

Best to always make a backup before modifying any root configuration file.

2 Likes

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