# GPG error: public key is not available

**URL:** <https://forum.opennebula.io/t/gpg-error-public-key-is-not-available/1638>\
**Category:** Product Support\
**Created:** [December 29, 2015, 10:57pm UTC](https://forum.opennebula.io/t/gpg-error-public-key-is-not-available/1638 "2015-12-29T22:57:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheshan\_Kutty](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@Sheshan\_Kutty](https://forum.opennebula.io/u/Sheshan_Kutty)\
**Post date:** [December 29, 2015, 10:57pm UTC](https://forum.opennebula.io/t/gpg-error-public-key-is-not-available/1638/1 "2015-12-29T22:57:50Z")

</div>

On Ubuntu 14.04, after i added the deb location, i did apt-get update. And i got this.

W: GPG error: [http://downloads.opennebula.org](http://downloads.opennebula.org) stable Release: The following signatures couldn’t be verified because the public key is not available: NO\_PUBKEY XXXXXXXXXXXXX

---

<div class="post-metadata">

**Author:** ![Sheshan\_Kutty](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@Sheshan\_Kutty](https://forum.opennebula.io/u/Sheshan_Kutty)\
**Post date:** [December 30, 2015, 8:04am UTC](https://forum.opennebula.io/t/gpg-error-public-key-is-not-available/1638/2 "2015-12-30T08:04:52Z")

</div>

My bad, i did not add the key.

---

<div class="post-metadata">

**Author:** ![thomasalrin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/thomasalrin/32/4297_2.png) [@thomasalrin](https://forum.opennebula.io/u/thomasalrin)\
**Post date:** [December 30, 2015, 12:11pm UTC](https://forum.opennebula.io/t/gpg-error-public-key-is-not-available/1638/3 "2015-12-30T12:11:59Z")

</div>

Hi,

Execute this command to get key  
wget -q -O- [http://downloads.opennebula.org/repo/Ubuntu/repo.key](http://downloads.opennebula.org/repo/Ubuntu/repo.key) | apt-key add -

---

<div class="post-metadata">

**Author:** ![Sheshan\_Kutty](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@Sheshan\_Kutty](https://forum.opennebula.io/u/Sheshan_Kutty)\
**Post date:** [January 3, 2016, 2:19am UTC](https://forum.opennebula.io/t/gpg-error-public-key-is-not-available/1638/4 "2016-01-03T02:19:04Z")

</div>

I did, but there is something about /var/lib/one/datastore symlink, Opennebula do not have well defined log roll over, so it filled up the space, remember, /var/lib and /var/log are similar, and worst, the home directory sets to /var/lib/one, so when some one did cd ~, it is going to go into /var/lib/one. In the process of cleaning up log files, one of our admins deleted the files under datastore, because they were lying under home directory like some backup. Luckily though it was not on production. These are common stupid mistakes guys might run into. So it is not a good idea to link datastore under /var/lib/one, definitely not. So i had to reconfigure everything back to some mount other than any directory that starts with /var.
