# No\_pubkey 23e7166788b63e1e

**URL:** https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575
**Category:** Support
**Tags:** english
**Created:** [October 23, 2024, 4:08am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575 "2024-10-23T04:08:30Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![wxie](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@wxie](https://forum.yunohost.org/u/wxie)
#### Post date: [October 23, 2024, 4:08am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/1 "2024-10-23T04:08:30Z")

</div>

### I have searched the forum for similar issues

on

### This category is for general issues regarding YunoHost, _NOT_ apps.

on

### This form is written in English 🇬🇧 but feel free to write in French 🇫🇷 if you’re more comfortable!

on

### What type of hardware are you using

Old laptop or computer

### What YunoHost version are you running

12

### How are you able to access your server

Direct access via physical keyboard/screen

### Are you in a special context or did you perform specific tweaking on your YunoHost instance ?

Normal CLI

### Describe your issue

```auto
sudo apt update

```

W: GPG error: [https://dl.yarnpkg.com/debian](https://dl.yarnpkg.com/debian) stable InRelease: The following signatures couldn’t be verified because the public key is not available: NO\_PUBKEY 23E7166788B63E1E

Where to get the keys?

### Share relevant logs or error messages

This was reported by Markus. However, that post was closed without knowing how to solve it.

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [October 23, 2024, 6:09am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/2 "2024-10-23T06:09:27Z")

</div>

Let’s try `sudo yunohost tools regen-conf apt` which should redownload fresh keys

---

<div class="post-metadata">

### Author: ![wxie](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@wxie](https://forum.yunohost.org/u/wxie)
#### Post date: [October 23, 2024, 6:54am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/3 "2024-10-23T06:54:43Z")

</div>

Thanks.

The command replies:

```auto
gpg: no valid OpenPGP data found.
Could not run script: /usr/share/yunohost/hooks/conf_regen/10-apt

```

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [October 23, 2024, 8:32am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/4 "2024-10-23T08:32:08Z")

</div>

Hmmokay then lets debug with `sudo yunohost tools regen-conf apt --debug`

---

<div class="post-metadata">

### Author: ![wxie](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@wxie](https://forum.yunohost.org/u/wxie)
#### Post date: [October 24, 2024, 2:00am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/5 "2024-10-24T02:00:50Z")

</div>

Error log:

```auto
File /usr/lib/python3/dist-packages/yunohost/hook.py, line 298, in hook_callback
hook_return = hook_exec(

File /usr/lib/python3/dist-packages/yunohost/hook.py, line 418, in hook_exec
raise YunohostError("hook_exec_failed", path=path)

```

Could not run script: /usr/share/yunohost/hooks/conf\_regen/10-apt

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [October 24, 2024, 10:14am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/6 "2024-10-24T10:14:07Z")

</div>

Please share the entire log and not just the last few lines

---

<div class="post-metadata">

### Author: ![wxie](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@wxie](https://forum.yunohost.org/u/wxie)
#### Post date: [October 25, 2024, 4:02am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/7 "2024-10-25T04:02:10Z")

</div>

Thank you. I attach the log files.  
[20241025-031753-regen\_conf-apt.odt](https://forum.yunohost.org/uploads/short-url/nQxvz0jZSjbTfMI9Vysopq6dRo0.odt) (4.5 KB)  
[regen-conf.odt](https://forum.yunohost.org/uploads/short-url/tBJph1FkzXFyuC9GOQewgpwBms2.odt) (5.5 KB)

They are both plain text file. You should change the file extension to .txt.

Let me know if you have further questions.

Thank you.

---

<div class="post-metadata">

### Author: ![wxie](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@wxie](https://forum.yunohost.org/u/wxie)
#### Post date: [November 1, 2024, 2:30am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/8 "2024-11-01T02:30:10Z")

</div>

I tried to get the key

```auto
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg

```

but no key is found.

Has anyone the pubkey.gpg for yarnpkg?

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [November 1, 2024, 9:26am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/9 "2024-11-01T09:26:44Z")

</div>

> [@wxie](#):
>
> They are both plain text file. You should change the file extension to .txt.

If you run commands whose output you would like to share, add ` | yunopaste` at the end: `sudo yunohost tools regen-conf apt --debug | yunopaste`. Then share the URL 😉

---

<div class="post-metadata">

### Author: ![wxie](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@wxie](https://forum.yunohost.org/u/wxie)
#### Post date: [November 1, 2024, 9:45am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/10 "2024-11-01T09:45:01Z")

</div>

I think I am missing pubkey - maybe it is not available at the desired address.

Do you have the pubkey file?

---

<div class="post-metadata">

### Author: ![wxie](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@wxie](https://forum.yunohost.org/u/wxie)
#### Post date: [November 5, 2024, 7:23am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/11 "2024-11-05T07:23:45Z")

</div>

The key problem is solved - it maybe is related to bad network connection.

This issue can be closed.

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [December 5, 2024, 7:24am UTC](https://forum.yunohost.org/t/no-pubkey-23e7166788b63e1e/31575/12 "2024-12-05T07:24:39Z")

</div>

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