Manjaro is unable to update (GPGME & keyring errors)

Ok, there are still some pgp-key wrong.

Please run:

sudo pacman-key --refresh-keys

… and than run your update again. :grinning:

Edit1: sorry … forgot the ‘sudo’ before pacman-key

OK, I ran it and currently updating, it’s still retrieving packages, checking dependencies, etc. It may take a while (and my PC keeps freezing right now), I’ll get back to you and let you know when it’s finished. And I gathered the “sudo” part, thank you anyway! I’ll share its output for the sake of completeness:

gpg: error retrieving 'philm@manjaro.org' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key CAA6A59611C7F07E: 4 signatures not checked due to missing keys
gpg: key CAA6A59611C7F07E: "Philip Müller (Called Little) <philm@manjaro.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'mark@manjaro.org' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 150C200743ED46D8: "Mark Wagie <mark@manjaro.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: key 7258734B41C31549: "David Runge <dvzrv@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   ed25519 2019-10-01 [SC] [expires: 2023-09-30]
      C7E7849466FE2358343588377258734B41C31549
uid           [ unknown] David Runge <dvzrv@archlinux.org>
sub   cv25519 2019-10-01 [E] [expires: 2023-09-30]

gpg: key B02854ED753E0F1F: "Anatol Pomozov (Arch Linux developer account) <anatolik@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa4096 2014-02-04 [SC] [expires: 2026-10-25]
      8E1992167465DB5FB045557CB02854ED753E0F1F
uid           [ unknown] Anatol Pomozov (Arch Linux developer account) <anatolik@archlinux.org>
uid           [ unknown] Anatol Pomozov <anatol.pomozov@gmail.com>
sub   rsa4096 2014-02-04 [E] [expires: 2026-10-25]

gpg: key 4AC5588F941C2A25: "Antonio Rojas <arojas@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa4096 2014-10-21 [SC]
      9D74DF6F91B7BDABD5815CA84AC5588F941C2A25
uid           [ unknown] Antonio Rojas <arojas@archlinux.org>
sub   rsa2048 2014-11-07 [S]
sub   rsa2048 2014-11-07 [E]

gpg: key 19802F8B0D70FC30: "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   ed25519 2020-05-11 [SC]
      A2FF3A36AAA56654109064AB19802F8B0D70FC30
uid           [ unknown] Jan Alexander Steffens (heftig) <heftig@archlinux.org>
sub   cv25519 2020-05-11 [E]
sub   ed25519 2020-05-11 [S]
sub   ed25519 2020-05-11 [A]

gpg: error retrieving 'lordheavym@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: key 06096A6AD1CEDDAC: "Laurent Carlier <lordheavym@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2011-10-30 [SC]
      535F8C0339450F054A4D282706096A6AD1CEDDAC
uid           [ unknown] Laurent Carlier <lordheavym@gmail.com>
uid           [ unknown] Laurent Carlier <lordheavym@archlinux.org>
sub   rsa2048 2011-10-30 [E]

gpg: key 94657AB20F2A092B: "Andreas Radke <andyrtr@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2011-05-14 [SC]
      ADC8A1FCC15E01D45310419E94657AB20F2A092B
uid           [ unknown] Andreas Radke <andyrtr@archlinux.org>
sub   rsa2048 2011-05-14 [E]

gpg: key 771DF6627EDF681F: "Tobias Powalowski <tpowa@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2011-07-18 [SC]
      5B7E3FB71B7F10329A1C03AB771DF6627EDF681F
uid           [ unknown] Tobias Powalowski <tpowa@archlinux.org>
sub   rsa2048 2011-07-18 [E]

gpg: key F22FB1D78A77AEAB: "Giancarlo Razzolini (grazzolini) <grazzolini@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa4096 2016-11-11 [SC]
      ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB
uid           [ unknown] Giancarlo Razzolini (grazzolini) <grazzolini@archlinux.org>
sub   rsa4096 2016-11-11 [E]

gpg: key 786C63F330D7CB92: "Felix Yan <felixonmars@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa4096 2012-01-20 [SC]
      B5971F2C5C10A9A08C60030F786C63F330D7CB92
uid           [ unknown] Felix Yan <felixonmars@archlinux.org>
sub   rsa4096 2012-01-20 [E]

GUI pacman gave me the invalid or corrupted package (PGP signature): message and apparently, I cannot update the kernel as well. It now shows the other kernels but fails to install any one (the one I’m currently running is unsupported).

Coud you identify the package with the invalid pgp signature?

And yes a kernel switch is recommend. :grinning:

I’m running the update via terminal now so that I can do so.

The pacman-logfile should record such things. :grinning:

Its located at:

/var/log/pacman.log

1 Like
error: failed retrieving file 'filelight-21.12.0-1-x86_64.pkg.tar.zst.sig' from manjaro.mirror.liquidtelecom.com : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

And the kernel error as well:

The following packages will be installed:
linux515

Starting
resolving dependencies...
looking for conflicting packages...
Packages (1) linux515-5.15.7-1
Total Download Size:    99.61 MiB
Total Installed Size:  104.14 MiB
:: Proceed with installation? [Y/n] 
:: Retrieving packages...
linux515-5.15.7-1-x86_64 downloading...
checking keyring...
checking package integrity...
:: File /var/cache/pacman/pkg/linux515-5.15.7-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
Errors occurred, no packages were upgraded.
error: linux515: signature from "Manjaro Build Server <build@manjaro.org>" is unknown trust
error: failed to commit transaction (invalid or corrupted package (PGP signature))

Ok, ‘filelight’ seems not to be important for the system to work. You could try to deselect it from update OR remove it and install it again after your update is over.

OK, doing that as we speak; what about the kernel issue? Or should we put a pin on that for now (maybe split it to a new topic)?

At first please dont run an update and a kernel install at the same time. Both use pacman to get the packages.

First try to run all the updates. If this is done you can try to install another kernel. There is no need to split the topic at the moment I think. :grinning:

It just keeps giving me errors with some applications. It’s tedious to keep picking them up. Should I continue this way or deal with the problem? I’ll do nothing tell you reply.

Hm, sounds like there still problems with the pgp signatures.

There is a topic in the Wiki for this. Please take a look inside.

But I have to tell you that I never had these issues. So I could not tell if its the right solution for your problem. :slightly_smiling_face:

OK, I’m running the commands related to the keys problems in the Wiki topic you sent and got the following outputs:

    ~  sudo rm -r /etc/pacman.d/gnupg                                                                                                                                        ✔  7m 58s 
rm: cannot remove '/etc/pacman.d/gnupg/S.gpg-agent.extra': No such file or directory
    ~  sudo pacman-key --init                                                                                                                                                  1 ✘  7s  
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: key D2C57C100084394D marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/AF9DA55E65FFA7F7C2874E88D2C57C100084394D.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
    ~  mkdir -pv $HOME/.cache/pkg/ && sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/                                                                   ✔ 
mkdir: created directory '/home/old-man-jaro/.cache/pkg/'
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
resolving dependencies...

Packages (2) archlinux-keyring-20211028-1  manjaro-keyring-20210910-2

Total Download Size:  0.00 MiB

:: Proceed with download? [Y/n] Y
:: Retrieving packages...
 archlinux-keyring-20211028-1-any                                                       979.1 KiB   344 KiB/s 00:03 [#####################################################################] 100%
 manjaro-keyring-20210910-2-any                                                         141.6 KiB   345 KiB/s 00:00 [#####################################################################] 100%
(2/2) checking keys in keyring                                                                                      [#####################################################################] 100%
downloading required keys...
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <arch@eworm.de>"? [Y/n] Y
:: Import PGP key DAD3B211663CA268, "Bernhard Landauer <oberon@manjaro.org>"? [Y/n] Y
(2/2) checking package integrity                                                                                    [#####################################################################] 100%
error: archlinux-keyring: signature from "Christian Hesse (Arch Linux Package Signing) <arch@eworm.de>" is unknown trust
:: File /home/old-man-jaro/.cache/pkg/archlinux-keyring-20211028-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: manjaro-keyring: signature from "Bernhard Landauer <bernhard@manjaro.org>" is unknown trust
:: File /home/old-man-jaro/.cache/pkg/manjaro-keyring-20210910-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
    ~  rm -f $HOME/.cache/pkg/*.sig                                                                                                                                           1 ✘  35s  
zsh: no matches found: /home/old-man-jaro/.cache/pkg/*.sig
    ~  sudo pacman -U $HOME/.cache/pkg/*.tar.zst                                                                                                                                      1 ✘ 
zsh: no matches found: /home/old-man-jaro/.cache/pkg/*.tar.zst

As you can see, the one before the last two (which both gave “no matches”) gave an error regarding two keys again. How to go forward from this?

Hm, bad for you. Its above my knowledge. Perhaps someone else has more experience.
… its also slowly time for bed for me (its 5am) :laughing:

Still one thing, is date and systemtime showing the right values?

Ah, I kept you for so long. Sorry. They are showing the right values, I guess. I’ll wait for more helpful people like you and if no one added anything soon, I’ll mark one of your replies as a solution (you did solve something) and start a new topic. Happy holidays!

can you try running:

sudo rm -r /etc/pacman.d/gnupg
sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro 
sudo pacman-key --refresh-keys 
4 Likes

@H2I_net Refer to:

1 Like

All is solved now (yours in the solution actually). I was just coming here to document the solution. After running the following commands:

sudo pacman -Syy
sudo pacman-key --refresh-keys
sudo pacman-key --populate archlinux manjaro
sudo pacman -Sc

which was listed in the pacman troubleshooting Wiki that @kisun posted earlier (similar to the ones you suggested).

  1. I updated all the file systems (not the applications)
  2. Restarted the PC
  3. Updated the kernel and installed an LTS version (just in case)
  4. Then updated the applications

I’ll now go make a Timeshift snapshot so that I don’t go through all this again.
Thanks everyone! @kisun @ishaan2479 @Shirshendu Happy holidays!

3 Likes

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