
Error “error: GPGME error: No data. error: failed to synchronize all databases (unexpected error)” (SOLVED)
October 5, 2022
When updating the package cache with the pacman package manager, for example, when running the following command to update package information and update the system:
sudo pacman -Syu
An error may occur:
error: GPGME error: No data :: Synchronizing package databases... core 155.5 KiB 444 KiB/s 00:00 [######################] 100% extra is up to date community is up to date multilib is up to date blackarch is up to date error: GPGME error: No data error: failed to synchronize all databases (unexpected error)
To fix the error, run the following command:
sudo rm -R /var/lib/pacman/sync
And then run the system update command again:
sudo pacman -Syu
This time the error should be gone.
Cause “error: GPGME error: No data. error: failed to synchronize all databases (unexpected error)” may be the following situation: you have exhausted the limit of your Internet connection and instead of the requested data, your Internet provider shows its page with information about the need to replenish the balance. As a result, incorrect data is sent in response to outgoing Internet connections, although the connection is successful from the point of view of the computer.
That is, pacman asks for information about the packages, but the ISP sends the data to show the Captive Portal. As a result of this, pacman has the indicated error. To fix it, you need to delete the cached data, which is done by the above command.
Related articles:
- Error “cannot resolve dependency lib32 (32-bit library)” (SOLVED) (100%)
- “Error: failed to commit transaction (invalid or corrupted package)” (SOLVED) (100%)
- Error: failed to commit transaction (conflicting files) (SOLVED) (100%)
- How to install and use pikaur and makepkg on a server (100%)
- How to install (or remove) packages using a regular expression in pacman (98.2%)
- How to display only column names and nothing more for a table in MySQL and MariaDB (RANDOM - 50%)