# Apt-get update fails inside container yarn repo not signed

**URL:** https://meta.discourse.org/t/apt-get-update-fails-inside-container-yarn-repo-not-signed/253133
**Category:** Bug
**Created:** [January 27, 2023, 5:02pm UTC](https://meta.discourse.org/t/apt-get-update-fails-inside-container-yarn-repo-not-signed/253133 "2023-01-27T17:02:41Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [January 29, 2023, 6:41pm UTC](https://meta.discourse.org/t/apt-get-update-fails-inside-container-yarn-repo-not-signed/253133/6 "2023-01-29T18:41:09Z")

</div>

@Falco Sorry for my duplicate post!

@pfaffman Thanks very much! I confirm this workaround works with the `mysql-dep.template.yml` too.

> [@pfaffman](#):
>
> Similarly, if I add
> 
> ```plaintext
> - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg -o /usr/share/keyrings/yarn-keyring.asc && sed -i '1s;^deb;deb [signed-by=/usr/share/keyrings/yarn-keyring.asc];' /etc/apt/sources.list.d/yarn.list
> 
> ```
> 
> before the `apt-get update` in `templates/import/phpbb3.template.yml` I’m able to build a new container.

---

_[View the full topic](https://meta.discourse.org/t/apt-get-update-fails-inside-container-yarn-repo-not-signed/253133)._
