Error: GPGME error: No data (once more)

Hi,

I’m getting this error while trying to update the system.

I read other threads on this error and tried the following, to no success.

Any ideas on how to fix this?

  501  sudo rm -R /var/lib/pacman/sync
  502  sudo nano /etc/pacman.conf
  503  ls /var/cache/pacman/pkg
  504  clear
  505  eos-rankmirrors
  506   sudo pacman -Syyu
  507  sudo rm -r /var/lib/pacman/sync/
  508   sudo pacman -Syyu
  509  clear
  510  sudo cp -f “/etc/pacman.conf” “/etc/pacman.conf.orig”
  511  sudo cp -f “/etc/pacman.conf” “/etc/pacman.conf.orig”
  512  sudo cp -f "/etc/pacman.conf" "/etc/pacman.conf.orig"
  513  sudo sed -i ‘s/SigLevel.*/SigLevel = Never/’ /etc/pacman.conf
  514  sudo sed -i 's/SigLevel.*/SigLevel = Never/' /etc/pacman.conf
  515  sudo pacman -Syy gnupg archlinux-keyring endeavouros-keyring
  516  sudo mv -f "/etc/pacman.conf.orig" "/etc/pacman.conf"
  517  sudo pacman -Syu
  518  clear
  519   sudo pacman-key --refresh-keys
  520  sudo pacman -Syu
  521  history
  522  sudo pacman -Scc
  523  sudo pacman -Syu

What does the whole output show for sudo pacman -Syu

[gustavo@dellg155 ~]$ sudo pacman -Syu
[sudo] password for gustavo: 
error: GPGME error: No data
:: Synchronizing package databases...
 endeavouros                                     7,5 KiB  1634   B/s 00:05 [------------------------------------------] 100%
 core is up to date
 extra is up to date
 multilib is up to date
error: GPGME error: No data
error: failed to synchronize all databases (unexpected error)
[gustavo@dellg155 ~]$ 

Thanks.

Followed the guide, but step 3 failed:

[gustavo@dellg155 ~]$ sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
[sudo] password for gustavo: 
[gustavo@dellg155 ~]$ sudo nano /etc/pacman.d/mirrorlist
[gustavo@dellg155 ~]$ sudo rm -rf /etc/pacman.d/gnupg
[gustavo@dellg155 ~]$ sudo rm -R /var/lib/pacman/sync
[gustavo@dellg155 ~]$ sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/6E3480691986682D608B2B5653F5CBE499995B63.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
[gustavo@dellg155 ~]$ sudo pacman-key --populate
==> Appending keys from archlinux.gpg...
==> Appending keys from endeavouros.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 12 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabled 45 keys.
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  12  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  12  signed: 100  trust: 0-, 0q, 0n, 12m, 0f, 0u
gpg: depth: 2  valid:  75  signed:  23  trust: 75-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-06-29
[gustavo@dellg155 ~]$ sudo pacman -Syy
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)
[gustavo@dellg155 ~]$ 

This may be a clue?

Edit: I always update Arch mirrors from the welcome screen. I’m not sure your location but i don’t use Worldwide. I stick to countries that i know work that are close to my location. Mainly US & Canada.

Edit: I see others with this error also. Not sure why. I have not had any issues updating like this and if i do i usually just update the mirrors and run the update again with success.

What does this show? Post the url

cat /etc/pacman.conf | eos-sendlog

Most likely similar issue as in:

Edit:

Sorry, I posted a wrong link first. Check the link above!

1 Like

It’s syncing a bad mirror? :thinking:

1 Like

https://0x0.st/HIT5.txt

That’s what I did in the first place, as usual.

I did that but no success:

[gustavo@dellg155 ~]$ cat  /etc/pacman.d/endeavouros-mirrorlist | grep nimatarlani
Server = https://mirror.nimatarlani.com/endeavouros/repo/$repo/$arch
# https://mirror.nimatarlani.com/endeavouros/repo/$repo/$arch        <!DOCTYPE     html>       1.418296
#Server = https://mirror.nimatarlani.com/endeavouros/repo/$repo/$arch
[gustavo@dellg155 ~]$ nano /etc/pacman.d/endeavouros-mirrorlist
[gustavo@dellg155 ~]$ sudo nano /etc/pacman.d/endeavouros-mirrorlist
[sudo] password for gustavo: 
[gustavo@dellg155 ~]$ sudo rm -r /var/lib/pacman/sync/
[gustavo@dellg155 ~]$ sudo pacman -Syu
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)
[gustavo@dellg155 ~]$ 

I missed this one. You are on to something :+1:t5:

I’m trying to understand why? I’ve never had this issue in 5 years. :thinking:

Quite a few users have had the issue with that bad mirror recently.

Yes… i see that. Not sure where it is but it’s not in my list for mirrors.

Edit: I only use US & Canada mirrors. There are enough US mirrors that are crap! I always update my mirrors on a regular basis.

Edit: My arch mirror list.

https://0x0.st/XT-G.txt

1 Like

@gadolf

Please post:

cat /etc/pacman.d/mirrorlist | eos-sendlog

and

cat /etc/pacman.d/endeavouros-mirrorlist | eos-sendlog

1 Like

While you guys were talking about mirror selection, using only CAN and US, I did that, and now it worked :smiley:

Now I’m not sure if that was the only thing I should have done in the first place…

I’m sure it’s just some bad mirror or mirrors in your list that aren’t synced properly.

Edit: Not sure your location but if you are using worldwide or a country that is giving some bad mirrors. This can give you problems with updating.

I see.

I’m new to arch and still getting used to these mirror issues, which were extremely rare in the debian ecosystem where I come from.
(I’m not complaining, just adapting, I’m really enjoyng EOS)
I’m from Brazil, and usually I was choosing CAN and US for Americas and a couple of “more reliable” countries from Europe.
I think I’ll keep just CAN/US from now on.

Well all i can say is use whatever works best for your location. When I’m updating even US mirrors can be problematic. I know exactly when i run an update if there is an issue. I will run a mirror update then and it’s fine. Also i keep my system updated frequently because of the rolling release nature of Arch.

1 Like

Thanks all for the quick help

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