# AWX - Update OS

**URL:** <https://forum.ansible.com/t/awx-update-os/36403>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 6, 2022, 7:51pm UTC](https://forum.ansible.com/t/awx-update-os/36403 "2022-03-06T19:51:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattia\_Maragno](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mattia\_Maragno](https://forum.ansible.com/u/Mattia_Maragno)\
**Post date:** [March 6, 2022, 7:51pm UTC](https://forum.ansible.com/t/awx-update-os/36403/1 "2022-03-06T19:51:33Z")

</div>

Hello to all,

i setup awx (previus i use only ansible from cli), i create ansible-palybook to run on my linux server the apt update.  
Task failed with error:  
“fatal: [localhost]: FAILED! =\> {“changed”: false, “cmd”: “apt-get update”, “msg”: “[Errno 2] No such file or directory: b’apt-get’: b’apt-get’”, “rc”: 2}”…

My playbook are configured in this mode:

##ansible PLAYBOOK UPDATE VM##  
#Mattia Maragno#

---

<div class="post-metadata">

**Author:** ![Lejooohn](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@Lejooohn](https://forum.ansible.com/u/Lejooohn)\
**Post date:** [March 7, 2022, 1:37pm UTC](https://forum.ansible.com/t/awx-update-os/36403/2 "2022-03-07T13:37:01Z")

</div>

Hi,

From which user did you launch the playbook? Maybe you have to set become: true.

Regards,

---

<div class="post-metadata">

**Author:** ![Vincent\_Rubiolo](https://avatars.discourse-cdn.com/v4/letter/v/a183cd/32.png) [@Vincent\_Rubiolo](https://forum.ansible.com/u/Vincent_Rubiolo)\
**Post date:** [March 7, 2022, 5:41pm UTC](https://forum.ansible.com/t/awx-update-os/36403/3 "2022-03-07T17:41:53Z")

</div>

Hi there,

The apt-get binary appears to be missing. Keep in mind in AWX everything runs in a container using an Execution Environment so `localhost` will mean this container runtime, not your actual host. You need to target your actual server via the inventory instead.

For the error itself, the default AWX Execution Environment, being based on a RHEL image, does not provide apt-related utilities (AFAIK).

HTH,

Vincent
