# Problem importing PGP key while updating

**URL:** <https://forum.endeavouros.com/t/problem-importing-pgp-key-while-updating/29574>\
**Category:** Newbie\
**Created:** [July 25, 2022, 2:56pm UTC](https://forum.endeavouros.com/t/problem-importing-pgp-key-while-updating/29574 "2022-07-25T14:56:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lilit](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/lilit/32/57027_2.png) [@Lilit](https://forum.endeavouros.com/u/Lilit)\
**Post date:** [July 25, 2022, 2:56pm UTC](https://forum.endeavouros.com/t/problem-importing-pgp-key-while-updating/29574/1 "2022-07-25T14:56:16Z")

</div>

Dear community and support team…  
First of all, please, note I’m new to Linux and this is my second distro after Mint (it was slow and boring on my laptop, thus I came to EndeavourOS with KDE)… Before creating this post I’ve already scanned all the similar problems and tried the solutions from different threads in this forum having no luck unfortunately(((  
Today I tried to update my system in the morning as I do every morning and faced a problem of importing some PGP key… I am not a techie. Just a humanitarian. Could, anybody, pls try to help me to solve this problem?  
 ![Screenshot_20220725_182716](https://forum.endeavouros.com/uploads/default/original/3X/c/d/cd5bfa7880f1c9be4c5bba09f84042a1d3e930c6.png)

---

<div class="post-metadata">

**Author:** ![SearingSunrazeSmash](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/searingsunrazesmash/32/74433_2.png) [@SearingSunrazeSmash](https://forum.endeavouros.com/u/SearingSunrazeSmash)\
**Post date:** [July 25, 2022, 3:03pm UTC](https://forum.endeavouros.com/t/problem-importing-pgp-key-while-updating/29574/2 "2022-07-25T15:03:29Z")

</div>

Hello @Lilit , Welcome to EndeavourOS 🥳 🥳

Now the error showed up there points the issue related to keyrings.

I had found an article which matches to your case.

[https://arcolinux.com/fix-for-key-could-not-be-looked-up-remotely/](https://arcolinux.com/fix-for-key-could-not-be-looked-up-remotely/)

---

<div class="post-metadata">

**Author:** ![Lilit](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/lilit/32/57027_2.png) [@Lilit](https://forum.endeavouros.com/u/Lilit)\
**Post date:** [July 25, 2022, 3:10pm UTC](https://forum.endeavouros.com/t/problem-importing-pgp-key-while-updating/29574/3 "2022-07-25T15:10:44Z")

</div>

hello Phoenix! Thank you so much for your immediate response! Let me check it and let you know if that worked or…

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [July 25, 2022, 3:10pm UTC](https://forum.endeavouros.com/t/problem-importing-pgp-key-while-updating/29574/4 "2022-07-25T15:10:53Z")

</div>

```auto
sudo pacman -Sy archlinux-keyring
sudo pacman -Syu

```

See also:

> [@\[FAQ\] Issues with “signature is marginal trust”, "signature is unknown trust", or “invalid or corrupted package”](https://forum.endeavouros.com/t/faq-issues-with-signature-is-marginal-trust-signature-is-unknown-trust-or-invalid-or-corrupted-package/6756):
>
> If you’re getting an error similar to “Can’t update: signature from \*\*\* is marginal trust” or “invalid or corrupted package” you probably just need to update your package signing keys: sudo pacman -Sy archlinux-keyring endeavouros-keyring sudo pacman -Syu Also make sure your system clock is correct! Of course, it’s also possible that the package file actually is corrupt. Remove it from /var/cache/pacman/pkg/ so pacman will download it again. If no package file is explicitly mentioned then yo…

---

<div class="post-metadata">

**Author:** ![anon75994754](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/d78d45/32.png) [@anon75994754](https://forum.endeavouros.com/u/anon75994754)\
**Post date:** [July 25, 2022, 4:10pm UTC](https://forum.endeavouros.com/t/problem-importing-pgp-key-while-updating/29574/5 "2022-07-25T16:10:32Z")

</div>

@Lilit Welcome to Endeavouros forum . Enjoy your stay :enos_flag:

---

<div class="post-metadata">

**Author:** ![kjw](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kjw/32/9327_2.png) [@kjw](https://forum.endeavouros.com/u/kjw)\
**Post date:** [July 25, 2022, 4:51pm UTC](https://forum.endeavouros.com/t/problem-importing-pgp-key-while-updating/29574/6 "2022-07-25T16:51:39Z")

</div>

Welcome to the forum @Lilit :enos_flag: 🥳🎉🎈

---

<div class="post-metadata">

**Author:** ![MindTheGAAP](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/mindthegaap/32/47060_2.png) [@MindTheGAAP](https://forum.endeavouros.com/u/MindTheGAAP)\
**Post date:** [July 25, 2022, 5:37pm UTC](https://forum.endeavouros.com/t/problem-importing-pgp-key-while-updating/29574/7 "2022-07-25T17:37:07Z")

</div>

I had to add the Ubuntu key server. This works for even on Arch as I had the same issue. So this is one of the first steps I take whenever installing on a new machine.

## GPG import key error

1. Create a .conf file in /home/user/.gnupg with name `dirmngr.conf`
2. Add `keyserver hkp://keyserver.ubuntu.com:80`
3. Add `standard-resolver`
4. save and close

Note: `:80` is for DNS related. If it doesn’t work with 80 then remove and try again by running `killall dirmngr` in terminal.
