1

How can I add the Mega repository to Arch Linux?

Already add this in my pacman.conf

[DEB_Arch_Extra]
SigLevel = Required TrustedOnly
Server = https://mega.nz/linux/MEGAsync/Arch_Extra/$arch

But I am getting this error:

❯ nocorrect sudo pacman -Syyu
[sudo] password for scarlet:
error: DEB_Arch_Extra: signature from "MegaLimited <[email protected]>" is unknown trust
:: Synchronizing package databases...
 kde-unstable                                                     122.0 KiB  74.2 KiB/s 00:02 [#######################################################] 100%
 gnome-unstable                                                    45.0   B   109   B/s 00:00 [#######################################################] 100%
 core                                                             136.5 KiB   136 KiB/s 00:01 [#######################################################] 100%
 extra                                                           1569.9 KiB   716 KiB/s 00:02 [#######################################################] 100%
 community                                                          5.8 MiB  1737 KiB/s 00:03 [#######################################################] 100%
 multilib                                                         148.2 KiB   136 KiB/s 00:01 [#######################################################] 100%
 archzfs                                                           14.1 KiB  16.4 KiB/s 00:01 [#######################################################] 100%
 DEB_Arch_Extra                                                     3.1 KiB  2.51 KiB/s 00:01 [#######################################################] 100%
error: DEB_Arch_Extra: signature from "MegaLimited <[email protected]>" is unknown trust
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))                                                            /17.4s

My system:

❯ uname -a
Linux lenovo 5.15.3-arch1-1 #1 SMP PREEMPT Thu, 18 Nov 2021 22:23:08 +0000 x86_64 GNU/Linux                                                            /0.1s

What I have tried:

2 Answers 2

1

I solved it by running the following commands

curl -fsSL https://mega.nz/keys/MEGA_signing.key | pacman-key --add -

pacman-key --finger 7F068E5D

pacman-key --lsign-key 7F068E5D

pacman -Syyu
0

Set SigLevel to Never or Optional TrustAll.

1
  • 1
    thanks for the reply , that might be a solution but since the repo itself contains .sig files i think this should work without changing SigLevel {am not sure though}
    – Madhubala
    Commented Nov 22, 2021 at 12:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .