# Ansible Tower installation error

**URL:** <https://forum.ansible.com/t/ansible-tower-installation-error/24836>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [June 28, 2017, 6:27am UTC](https://forum.ansible.com/t/ansible-tower-installation-error/24836 "2017-06-28T06:27:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luvpreet\_Singh](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Post date:** [June 28, 2017, 6:27am UTC](https://forum.ansible.com/t/ansible-tower-installation-error/24836/1 "2017-06-28T06:27:29Z")

</div>

Hi,

I am installing a fresh ansible tower on my localhost on ubuntu 16.04LTS. This is my first experience with the tower.

When I run the setup.sh script, I get this error,

It is on this task,

\< TASK [packages\_ubuntu : install apt repository keys] \>

Below is the error,

failed: [localhost] (item={u’url’: u’[https://www.postgresql.org/media/keys/ACCC4CF8.asc’](https://www.postgresql.org/media/keys/ACCC4CF8.asc%27)}) =\> {“failed”: true, “item”: {“url”: “[https://www.postgresql.org/media/keys/ACCC4CF8.asc](https://www.postgresql.org/media/keys/ACCC4CF8.asc)”}, “msg”: “Failed to download key at [https://www.postgresql.org/media/keys/ACCC4CF8.asc](https://www.postgresql.org/media/keys/ACCC4CF8.asc): An unknown error occurred: ~/.netrc file owner (luvpreet) does not match current user (root) (/home/luvpreet/.netrc, line 2)”}

failed: [localhost] (item={u’url’: u’[https://www.rabbitmq.com/rabbitmq-release-signing-key.asc’](https://www.rabbitmq.com/rabbitmq-release-signing-key.asc%27)}) =\> {“failed”: true, “item”: {“url”: “[https://www.rabbitmq.com/rabbitmq-release-signing-key.asc](https://www.rabbitmq.com/rabbitmq-release-signing-key.asc)”}, “msg”: “Failed to download key at [https://www.rabbitmq.com/rabbitmq-release-signing-key.asc](https://www.rabbitmq.com/rabbitmq-release-signing-key.asc): An unknown error occurred: ~/.netrc file owner (luvpreet) does not match current user (root) (/home/luvpreet/.netrc, line 2)”}

failed: [localhost] (item={u’url’: u’[https://releases.ansible.com/keys/442667A9.asc’](https://releases.ansible.com/keys/442667A9.asc%27)}) =\> {“failed”: true, “item”: {“url”: “[https://releases.ansible.com/keys/442667A9.asc](https://releases.ansible.com/keys/442667A9.asc)”}, “msg”: “Failed to download key at [https://releases.ansible.com/keys/442667A9.asc](https://releases.ansible.com/keys/442667A9.asc): An unknown error occurred: ~/.netrc file owner (luvpreet) does not match current user (root) (/home/luvpreet/.netrc, line 2)”}

failed: [localhost] (item={u’url’: u’[http://nginx.org/keys/nginx\_signing.key’](http://nginx.org/keys/nginx_signing.key%27)}) =\> {“failed”: true, “item”: {“url”: “[http://nginx.org/keys/nginx\_signing.key](http://nginx.org/keys/nginx_signing.key)”}, “msg”: “Failed to download key at [http://nginx.org/keys/nginx\_signing.key](http://nginx.org/keys/nginx_signing.key): An unknown error occurred: ~/.netrc file owner (luvpreet) does not match current user (root) (/home/luvpreet/.netrc, line 2)”}

What is the possible reason for this and the solution ?

---

<div class="post-metadata">

**Author:** ![Andrew\_Latham](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@Andrew\_Latham](https://forum.ansible.com/u/Andrew_Latham)\
**Post date:** [June 28, 2017, 2:20pm UTC](https://forum.ansible.com/t/ansible-tower-installation-error/24836/2 "2017-06-28T14:20:31Z")

</div>

For tower questions and support please utilize [https://access.redhat.com/products/ansible-tower-red-hat](https://access.redhat.com/products/ansible-tower-red-hat)

This mailing list is for the open source ansible project.
