I can't update my KDE!

Sorry I am new to this community and this is my first post. Please ignore the mistakes. I have been trying to update my KDE manjaro from last night. Still not able to do it.
I have updated and changed to various mirrors still the error is there.

error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))

This the error I get when I try to update my system.

Preparing...
Checking nerd-fonts-noto-sans-mono dependencies...
Checking pamac-tray-icon-plasma dependencies...
Checking snapd-glib dependencies...
Checking ckbcomp dependencies...
Checking snapd dependencies...
Checking yay dependencies...
Checking gestures dependencies...
Checking v86d dependencies...
Checking gtk-doc-git dependencies...
Checking vala0.42 dependencies...
Checking vala0.44 dependencies...
Checking vala-git dependencies...
Checking go-tools-git dependencies...
Checking glib2-docs-git dependencies...
Checking help2man-git dependencies...
Checking autoconf-archive-git dependencies...
Synchronizing package databases...
Refreshing core.db...
Refreshing extra.db...
Refreshing community.db...
Refreshing multilib.db...
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
invalid or corrupted database (PGP signature)
Failed to synchronize databases
Failed to prepare transaction:
invalid or corrupted database
Transaction cancelled.

Please help me out. These are my system configuration:

Operating System: Manjaro Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.10.63-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3-4005U CPU @ 1.70GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4400

Open terminal and run:

sudo pacman-mirrors -f5 && pamac update

and if that is not enough, read this:

2 Likes

Hey I am really a newbie in here so can you help me what is gpg and do I need to downgrade the entire system? It will be very helpful for me and sorry for bothering you again. :cry: :cry:

Maybe you can first answer what has been asked before asking other question? What is the result of

First I didn’t edit the files so I got this error:

sudo pacman-mirrors -f5 && pamac update
[sudo] password for soumadip: 
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: http://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  2.157 Germany        : https://mirror.23media.com/manjaro/
  ..... Germany        : http://mirror.23media.com/manjaro/

::ERROR Connection: HTTPConnectionPool(host='mirror.23media.com', port=80): Read timed out. (read timeout=2)

  ..... United_States  : https://mirrors.ocf.berkeley.edu/manjaro/
  2.686 Sweden         : https://mirror.zetup.net/manjaro/
  1.528 Netherlands    : https://mirror.erickochen.nl/manjaro/
  ..... Netherlands    : http://mirror.erickochen.nl/manjaro/

::ERROR Connection: HTTPConnectionPool(host='mirror.erickochen.nl', port=80): Read timed out. (read timeout=2)

  1.596 Germany        : https://manjaro.moson.org/
  ..... Germany        : http://manjaro.moson.org/

::ERROR Connection: HTTPConnectionPool(host='manjaro.moson.org', port=80): Read timed out. (read timeout=2)

::INFO Writing mirror list
::Sweden          : https://mirror.zetup.net/manjaro/stable
::United_States   : https://mirrors.ocf.berkeley.edu/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
Preparing...
Checking nerd-fonts-noto-sans-mono dependencies...
Checking pamac-tray-icon-plasma dependencies...
Checking snapd-glib dependencies...
Checking ckbcomp dependencies...
Checking snapd dependencies...
Checking yay dependencies...
Cloning gestures build files...
Checking gestures dependencies...
Checking v86d dependencies...
Checking gtk-doc-git dependencies...
Checking vala0.42 dependencies...
Checking vala0.44 dependencies...
Checking vala-git dependencies...
Checking go-tools-git dependencies...
Checking glib2-docs-git dependencies...
Checking help2man-git dependencies...
Checking autoconf-archive-git dependencies...
Synchronizing package databases...
Refreshing core.db...                                                                                                                                                  
Refreshing extra.db...                                                                                                                                                 
Refreshing community.db...                                                                                                                                             
Refreshing multilib.db...                                                                                                                                              
Error: multilib.db: GPGME error: No data                                                                                                                               
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
invalid or corrupted database (PGP signature)
Failed to synchronize databases
Error: Failed to prepare transaction: invalid or corrupted database



Edit build files : [e] 
Apply transaction ? [e/y/N] 

Transaction cancelled.

Now when I gave permission to edit the build files, I am getting the same error again:

Edit build files : [e] 
Apply transaction ? [e/y/N] e

Cloning nerd-fonts-noto-sans-mono build files...
Generating nerd-fonts-noto-sans-mono information...
Cloning pamac-tray-icon-plasma build files...
Generating pamac-tray-icon-plasma information...
Cloning snapd-glib build files...
Generating snapd-glib information...
Cloning ckbcomp build files...
Generating ckbcomp information...
Cloning snapd build files...
Generating snapd information...
Cloning yay build files...
Generating yay information...
Cloning v86d build files...
Generating v86d information...
Edit nerd-fonts-noto-sans-mono build files ? [y/N] 

Edit pamac-tray-icon-plasma build files ? [y/N] 

Edit snapd-glib build files ? [y/N] 

Edit ckbcomp build files ? [y/N] 

Edit snapd build files ? [y/N] 

Edit yay build files ? [y/N] 

Edit gestures build files ? [y/N] 

Edit v86d build files ? [y/N] 


Cloning nerd-fonts-noto-sans-mono build files...
Checking nerd-fonts-noto-sans-mono dependencies...
Cloning pamac-tray-icon-plasma build files...
Checking pamac-tray-icon-plasma dependencies...
Cloning snapd-glib build files...
Checking snapd-glib dependencies...
Cloning ckbcomp build files...
Checking ckbcomp dependencies...
Cloning snapd build files...
Checking snapd dependencies...
Cloning yay build files...
Checking yay dependencies...
Cloning gestures build files...
Checking gestures dependencies...
Cloning v86d build files...
Checking v86d dependencies...
Checking gobject-introspection-git dependencies...
Checking gtk-doc-git dependencies...
Checking vala0.42 dependencies...
Checking vala0.44 dependencies...
Checking vala-git dependencies...
Checking go-tools-git dependencies...
Checking python-sphinx-git dependencies...
Checking python-sphinx-2 dependencies...
Checking glib2-docs-git dependencies...
Checking help2man-git dependencies...
Checking autoconf-archive-git dependencies...
Error: Failed to prepare transaction: invalid or corrupted database

What should I do now?

I notice you have many AUR packages… Try with Pacman then to ignore the AUR package? (The issue doesn’t seem to be related to AUR but let see)

sudo pacman -Syyu

What is the result?

//EDIT: a quick google gave me something, but let see what is the result here first.

I tried this earlier. This is the first thing I do to update my system and here the error came first:

sudo pacman -Syyu
[sudo] password for soumadip: 
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 core                                                                    169.2 KiB  41.7 KiB/s 00:04 [###########################################################] 100%
 extra                                                                  1892.1 KiB  71.7 KiB/s 00:26 [###########################################################] 100%
 community                                                                 6.7 MiB   469 KiB/s 00:15 [###########################################################] 100%
 multilib                                                                175.2 KiB   142 KiB/s 00:01 [###########################################################] 100%
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))

If it still doesn’t work, try (and be carefully to not type wrong things here with the rm command)

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

I did it but suddenly my package manager is not showing updates and this happened first:

sudo rm -R /var/lib/pacman/sync
[sudo] password for soumadip:

Then I did this:

sudo pacman -Syu
:: Synchronizing package databases...
 core                          169.2 KiB  51.6 KiB/s 00:03 [################################] 100%
 extra                        1892.1 KiB   245 KiB/s 00:08 [################################] 100%
 community                       6.7 MiB   295 KiB/s 00:23 [################################] 100%
 multilib                      175.2 KiB  50.2 KiB/s 00:03 [################################] 100%
:: Starting full system upgrade...
warning: manjaro-hello: local (0.6.7-2) is newer than extra (0.6.6-9)
warning: whatsapp-for-linux: local (1.2.1-1) is newer than community (1.1.2-0)
resolving dependencies...

And no website is opening and system is showing this error:

 sudo pacman -Syyu
[sudo] password for soumadip: 
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 core.db failed to download
error: failed retrieving file 'core.db' from mirror.ufro.cl : OpenSSL SSL_connect: Connection reset by peer in connection to mirror.ufro.cl:443 
error: failed to synchronize all databases (download library error)

Yes the command removes all package databases. Don’t play with the GUI package manager at the same time please. Close all, focus on terminal.

It seemed it was working, where is the rest of the output?

You also seem to have mirror issues with the rest of your post. Let retry again.

Force Manjaro Global mirror:
sudo pacman-mirrors -c Global

Remove all Pacman databases and signatures:
sudo rm -R /var/lib/pacman/sync

Retry update:
sudo pacman -Syu

Give the full output of the commands.

First really thanks for your time and help. :blush: :blush: I have closed everything except terminal now.
Now I have updated my mirrors:

sudo pacman-mirrors -c Global
[sudo] password for soumadip: 
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: http://repo.manjaro.org/status.json
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  2.033 Global         : https://mirrors.fossho.st/manjaro/
  ..... Global         : http://mirrors.fossho.st/manjaro/

::ERROR Connection: HTTPConnectionPool(host='mirrors.fossho.st', port=80): Read timed out. (read timeout=2)

  3.985 Global         : https://mirrors.manjaro.org/repo/
  ..... Global         : http://mirrors.manjaro.org/repo/

::ERROR Connection: HTTPConnectionPool(host='mirrors.manjaro.org', port=80): Read timed out. (read timeout=2)

::INFO Writing mirror list
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist

Then I did the second command:

[soumadip@soumadip-inspiron3542 ~]$ sudo rm -R /var/lib/pacman/sync
[soumadip@soumadip-inspiron3542 ~]$ 

It didn’t give any output now.
And for the update it is giving me this error now:

sudo pacman -Syu
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)

What should I do? :cry:

Force refresh the database maybe?

sudo pacman -Syyu

//EDIT: no wait, from my understanding you have connection issues, this may be why you have corrupted databases.signatures downloaded too.
Apparently you can’t even connect to Manjaro CDN

Then what should I do?

It is giving the same error:

sudo pacman -Syyu
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)

I’m a bit lost here, retry again

sudo pacman-mirrors --country Global,Belgium && sudo pacman -Syyu

//EDIT:

Try this Update archive corrupted - #10 by linux-aarhus