LinuxSay - A Discussion Forum for Linux Enthusiasts

Unable to install any packages in manjaro linux -PGP Signature error


#1

Hi Friends, i tried to install simple screen recorder in manjaro , it shows following error PGP signature error…something , i don’t know about PGP keys anyone explain

[root@KING pkg]# pacman -S simplescreenrecorder
resolving dependencies…
looking for conflicting packages…

Packages (11) geoclue-0.12.99-2 qt5-declarative-5.5.0-1 qt5-location-5.5.0-1 qt5-sensors-5.5.0-1 qt5-tools-5.5.0-1
qt5-translations-5.5.0-1 qt5-webchannel-5.5.0-1 qt5-webkit-5.5.0-1 qt5-x11extras-5.5.0-1 qt5-xmlpatterns-5.5.0-1
simplescreenrecorder-0.3.3-2

Total Download Size: 20.93 MiB
Total Installed Size: 92.07 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages …
qt5-x11extras-5.5.0-1-x86_64 10.6 KiB 21.1K/s 00:01 [##############################################] 100%
qt5-xmlpatterns-5.5.0-1-x86_64 867.4 KiB 29.4K/s 00:30 [##############################################] 100%
qt5-declarative-5.5.0-1-x86_64 3.1 MiB 29.3K/s 01:48 [##############################################] 100%
qt5-sensors-5.5.0-1-x86_64 142.5 KiB 27.4K/s 00:05 [##############################################] 100%
geoclue-0.12.99-2-x86_64 110.3 KiB 24.9K/s 00:04 [##############################################] 100%
qt5-location-5.5.0-1-x86_64 562.1 KiB 25.8K/s 00:22 [##############################################] 100%
qt5-webchannel-5.5.0-1-x86_64 56.1 KiB 24.6K/s 00:02 [##############################################] 100%
qt5-webkit-5.5.0-1-x86_64 8.7 MiB 24.5K/s 06:05 [##############################################] 100%
qt5-translations-5.5.0-1-x86_64 1160.6 KiB 18.9K/s 01:01 [##############################################] 100%
qt5-tools-5.5.0-1-x86_64 5.3 MiB 22.5K/s 04:00 [##############################################] 100%
simplescreenrecorder-0.3.3-2-x86_64 1016.5 KiB 29.5K/s 00:34 [##############################################] 100%
(11/11) checking keys in keyring [##############################################] 100%
(11/11) checking package integrity [##############################################] 100%
error: qt5-x11extras: signature from “Felix Yan felixonmars@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/qt5-x11extras-5.5.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: qt5-xmlpatterns: signature from “Felix Yan felixonmars@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/qt5-xmlpatterns-5.5.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: qt5-declarative: signature from “Felix Yan felixonmars@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/qt5-declarative-5.5.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: qt5-sensors: signature from “Felix Yan felixonmars@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/qt5-sensors-5.5.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: geoclue: signature from “Jan Alexander Steffens (heftig) jan.steffens@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/geoclue-0.12.99-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: qt5-location: signature from “Felix Yan felixonmars@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/qt5-location-5.5.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: qt5-webchannel: signature from “Felix Yan felixonmars@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/qt5-webchannel-5.5.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: qt5-webkit: signature from “Felix Yan felixonmars@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/qt5-webkit-5.5.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: qt5-translations: signature from “Felix Yan felixonmars@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/qt5-translations-5.5.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: qt5-tools: signature from “Felix Yan felixonmars@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/qt5-tools-5.5.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: simplescreenrecorder: signature from “Kyle Keen keenerd@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/simplescreenrecorder-0.3.3-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

How to solve this ?


#2

It could be multiple possible reasons about this problem:

  1. Outdated archlinux-keyring package or incorrect date
  2. May be the port used to import PGP keys might be blocked by your ISP
  3. May be your pacman cache has copy of unsigned software packages from last attempts.

Solution to fix the invalid or corrupted database (PGP signature) in Manjaro you should follow below things:

  1. Upgrading the system will fix this problem
  2. Try switching to MIT keyserver in /etc/pacman.d/gnupg/gpg.conf file and change the keyserver parameter, which gives alternative ports for fetching PGP keys.
  3. If nothing above works, try this command…
# rm -R /var/lib/pacman/sync
# pacman -Syuf

#3

Well done @anusha

You seem to have learned quite a bit in these six monts since you started using Lnux (Mint if I’m not mistaken: Does Linux run much faster than Windows?) :wink:

May I just add that -f option is not in use for quite some time. Arch developers decided that it’s much safer (and wiser in my opinion) to replace it with –force option. However, I haven’t used it for ages, so now I’m not really sure, but if you look at your man pages for pacman, you’ll see that the only option is –force.

Please see this thread: https://bbs.archlinux.org/viewtopic.php?id=160914

Also you might want to see this page (see version 4.1.0) https://projects.archlinux.org/users/allan/pacman.git/tree/NEWS#n15

Cheers! :smile:


#4

Thanks for reply i tried the commands

[root@KING king]# rm -R /var/lib/pacman/sync/
[root@KING king]# pacman -Syuf

But again

Packages (1) xf86-video-intel-1:2.99.917+381+g5772556-1

Total Download Size: 0.64 MiB
Total Installed Size: 2.08 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages …
xf86-video-intel-1:… 656.8 KiB 18.9K/s 00:35 [######################] 100%
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
error: xf86-video-intel: signature from “Laurent Carlier lordheavym@gmail.com” is unknown trust
:: File /var/cache/pacman/pkg/xf86-video-intel-1:2.99.917+381+g5772556-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
[root@KING king]#

how to solve this error is there any command available in manjaro like > apt-get -f install


#5

@Raja_Tirupur

You don’t need to use the -f option. That’s not your problem. Simple # pacman -Syu will update your system.

Your problem is a PGP signature from the maintainer:

You need to add it to your pacman key-ring: # pacman-key -r keyid
Pacman will never update or install anything if the key isn’t verified. If you like you may try adding his key from here: https://www.archlinux.org/people/trusted-users/

Just look for Laurent Carlier. His PGP key is 0xD1CEDDAC. So I suggest is you do the following:

sudo pacman -r 0xD1CEDDAC

And then

sudo pacman -Syu

Please do not use any force option because it can only harm your system.

Please let me know if this worked.

EDIT: when I took a second look at your OP, I saw that none of the keys were imported. In this case, your mirror list may be the problem. Can you please post your mirrorlist:

nano /etc/pacman.d/mirrorlist (Or use any editor you like: vim, gvim, gedit…)


#6

Thanks @BrankoTesla
i tried with > pacman-key -r 0x5CF9C8D4

gpg: connecting dirmngr at ‘/root/.gnupg/S.dirmngr’ failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
==> ERROR: Remote key not fetched correctly from keyserver.

same problem again
its my mirror list
> ##
> ## Manjaro Linux repository mirrorlist
> ## Generated on 02 August 2015 09:51
> ##
> ## Use pacman-mirrors to modify
> ##

> ## Location : China
> ## Time : 0.544
> ## Last Sync : 3:51
> Server = http://ftp.cuhk.edu.hk/pub/Linux/manjaro/stable/$repo/$arch

> ## Location : Japan
> ## Time : 0.564
> ## Last Sync : 3:51
> Server = http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/stable/$repo/$arch

> ## Location : Indonesia
> ## Time : 0.576
> ## Last Sync : 3:51
> Server = http://kartolo.sby.datautama.net.id/manjaro/stable/$repo/$arch

> ## Location : United_Kingdom
> ## Time : 0.622
> ## Last Sync : 0:21
> Server = http://www.mirrorservice.org/sites/repo.manjaro.org/repos/stable/$repo/$arch

> ## Location : United_Kingdom
> ## Time : 0.641
> ## Last Sync : 0:41
> Server = http://sorch.uk/manjaro/stable/$repo/$arch

> ## Location : France
> ## Time : 0.646
> ## Last Sync : 0:11
> Server = http://manjarolinux.polymorf.fr/stable/$repo/$arch

> ## Location : United_Kingdom
> ## Time : 0.649
> ## Last Sync : 0:31
> Server = http://manjaro.mirrors.uk2.net/stable/$repo/$arch

> ## Location : United_States
> ## Time : 0.649
> ## Last Sync : 3:31
> Server = http://mirror.solarvps.com/manjaro/stable/$repo/$arch

> ## Location : United_Kingdom
> ## Time : 0.659
> ## Last Sync : 0:21
> Server = http://repo.manjaro.org.uk/stable/$repo/$arch

> ## Location : United_Kingdom
> ## Time : 0.660
> ## Last Sync : 2:51
> Server = http://mirror.catn.com/pub/manjaro/stable/$repo/$arch

> ## Location : Netherlands
> ## Time : 0.670
> ## Last Sync : 0:21
> Server = http://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch

> ## Location : Philippines
> ## Time : 0.671
> ## Last Sync : 3:51
> Server = http://mirror.rise.ph/manjaro/stable/$repo/$arch

> ## Location : United_States
> ## Time : 0.683
> ## Last Sync : 0:21
> Server = http://mirror.dacentec.com/manjaro/stable/$repo/$arch

> ## Location : United_States
> ## Time : 0.688
> ## Last Sync : 3:41
> Server = http://www.gtlib.gatech.edu/pub/manjaro/stable/$repo/$arch

> ## Location : Ireland
> ## Time : 0.691
> ## Last Sync : 0:21
> Server = http://ftp.heanet.ie/mirrors/manjaro/stable/$repo/$arch

> ## Location : Germany
> ## Time : 0.698
> ## Last Sync : 0:41
> Server = http://ftp.tu-chemnitz.de/pub/linux/manjaro/stable/$repo/$arch

> ## Location : Germany
> ## Time : 0.698
> ## Last Sync : 0:11
> Server = http://mirror3.layerjet.com/manjaro/stable/$repo/$arch

> ## Location : China
> ## Time : 0.706
> ## Last Sync : 3:51
> Server = http://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch

> ## Location : United_States
> ## Time : 0.709
> ## Last Sync : 2:01
> Server = http://lug.mtu.edu/manjaro/stable/$repo/$arch

> ## Location : Sweden
> ## Time : 0.717
> ## Last Sync : 0:21
> Server = http://ftp.lysator.liu.se/pub/manjaro/stable/$repo/$arch

> ## Location : Sweden
> ## Time : 0.722
> ## Last Sync : 2:11
> Server = http://mirror.zetup.net/manjaro/stable/$repo/$arch

> ## Location : Romania
> ## Time : 0.726
> ## Last Sync : 3:31
> Server = http://manjaro.mirrors.linux.ro/repos/stable/$repo/$arch

> ## Location : Romania
> ## Time : 0.727
> ## Last Sync : 1:51
> Server = http://ftp.lug.ro/manjaro/stable/$repo/$arch

> ## Location : Russia
> ## Time : 0.737
> ## Last Sync : 0:41
> Server = http://mirror.yandex.ru/mirrors/manjaro/stable/$repo/$arch

> ## Location : Germany
> ## Time : 0.739
> ## Last Sync : 3:31
> Server = http://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch

> ## Location : Australia
> ## Time : 0.925
> ## Last Sync : 1:51
> Server = http://manjaro.uberglobalmirror.com/stable/$repo/$arch

> ## Location : Germany
> ## Time : 0.976
> ## Last Sync : 0:01
> Server = http://mirror.netzspielplatz.de/manjaro/packages/stable/$repo/$arch

> ## Location : Brasil
> ## Time : 0.990
> ## Last Sync : 3:31
> Server = http://linorg.usp.br/manjaro/stable/$repo/$arch

> ## Location : Africa
> ## Time : 1.016
> ## Last Sync : 2:41
> Server = http://mirror.is.co.za/mirrors/manjaro.org/stable/$repo/$arch

> ## Location : China
> ## Time : 1.178
> ## Last Sync : 3:41
> Server = http://mirrors.tuna.tsinghua.edu.cn/manjaro/stable/$repo/$arch

> ## Location : Chile
> ## Time : 1.188
> ## Last Sync : 1:21
> Server = http://manjaro.dcc.uchile.cl/stable/$repo/$arch

> ## Location : France
> ## Time : 1.235
> ## Last Sync : 0:11
> Server = http://mirror.lignux.com/manjaro/packages/stable/$repo/$arch

> ## Location : Brasil
> ## Time : 1.690
> ## Last Sync : 3:31
> Server = http://www.las.ic.unicamp.br/pub/manjarolinux/stable/$repo/$arch

> ## Location : Costa_Rica
> ## Time : 2.151
> ## Last Sync : 2:21
> Server = http://mirrors.ucr.ac.cr/manjaro/stable/$repo/$arch


#7

OK, now I see what your problem might be:

I would suggest refreshing pacman keys. You can try this procedure:

sudo rm -R /etc/pacman.d/gnupg/
sudo rm -R /root/.gnupg/ # only if the directory exists
sudo gpg --refresh-keys
sudo pacman-key --init
sudo pacman-key --populate
sudo pacman-key --refresh-keys

Then sudo pacman -Syu

Also see this thread for more info and other possible solutions:

https://bbs.archlinux.org/viewtopic.php?id=190380