Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
11.23k stars 364 forks source link

GPGME error: No data after 'yay -Syu' on port-restricted networks #2497

Open tjavdar opened 2 months ago

tjavdar commented 2 months ago

Affected Version

yay v12.3.5 - libalpm v14.0.0 (Arch packages: yay-bin 12.3.5-1, pacman 6.1.0-3)

Describe the bug

When I try to update my archlinux system using yay -Syu on a port-restrictive network, I get a GPGME error: No data.

This error persiststs afterwards when updating on my non-restricted home network.

None of sudo pacman-key --refresh-keys or sudo pacman-key --init && sudo pacman-key --populate archlinux did help.

The problem is solved only by:

  `sudo rm -R /var/lib/pacman/sync`

Afterwards, issuing yay updates the system properly.

Reproduction Steps

  1. Be on a port restrictive network, e.g. public library, hospital, etc.
  2. Issue yay
  3. Get GPGME error: No data

Expected behavior

Is GpgMe used internally by yay communicates on some fancy ports?

In such case yay should first poll to see if these ports are available and not allow signatures corruption.