Mesa-nonfree: failed to sync all databases (no server configured for repository)

I see this when trying to update:

$ sudo pacman -Sy
erro: mesa-nonfree: a assinatura de "Mesa Freeworld <info@manjaro.download>" é inválida
:: Sincronizando a base de dados de pacotes...
erro: falha ao sincronizar todas as bases de dados (nenhum servidor configurado para o repositório)

I already did the instructions on the page https://nonfree.eu/


Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

are you sure you? Not sure what the precise error is you get but what is the output you got when running:

# locally trust the ci key
sudo pacman-key --recv-keys B728DB23B92CB01B && \
  sudo pacman-key --lsign-key B728DB23B92CB01B
sudo pacman-key --recv-keys B728DB23B92CB01B && sudo pacman-key --lsign-key B728DB23B92CB01B
[sudo] senha para sergio: 
gpg: key B728DB23B92CB01B: "Mesa Freeworld <info@manjaro.download>" not changed
gpg: Número total processado: 1
gpg:              não modificados: 1
  -> Assinadas localmente 1 chaves.
==> Atualizando base de dados de confiança...
gpg: proxima verificação da base de dados de confiança a 2023-10-27

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

please:

Whatever the question is you’re asking:

  • Unless you’re asking in a foreign language section AND if you’re on a non-English version of Manjaro, always, always execute this command:
export LANG=C
$ sudo pacman-key --recv-keys B728DB23B92CB01B &&   sudo pacman-key --lsign-key B728DB23B92CB01B
gpg: key B728DB23B92CB01B: "Mesa Freeworld <info@manjaro.download>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
  -> Locally signed 1 keys.
==> Updating trust database...
gpg: next trustdb check due at 2023-10-27
$ sudo pacman -Sy
[sudo] password for sergio: 
error: mesa-nonfree: signature from "Mesa Freeworld <info@manjaro.download>" is invalid
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

What’s in your /etc/pacman.conf

Wait a minute… it looks like is working now…

probably
Include = /etc/pacman.d/mesa-nonfree.pre.repo.conf
was missing from the pacman.conf
or
/etc/pacman.d/mesa-nonfree.pre.repo.conf
was missing
since

1 Like

Could it be it’s because I put above it: [mesa nonfree]?
Yes, after I comment it works.
In /etc/pacman.conf says “The header [repo name] is crucial - it must be present and uncommented to enable the repo”. Maybe it’s another name.

It should be a dash ( - ) not a space.

Its also not like a normal section - its a stub linking to a section provided by another file.

This line is giving the header itself, so no need to place a header above the link:

Include = /etc/pacman.d/mesa-nonfree.pre.repo.conf

$ cat /etc/pacman.d/mesa-nonfree.pre.repo.conf

[mesa-nonfree]
SigLevel = Optional TrustAll
Server = https://nonfree.eu/unstable/$arch
1 Like

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