# error on playbook when trying to run apt-get

**URL:** <https://forum.ansible.com/t/error-on-playbook-when-trying-to-run-apt-get/36948>\
**Category:** AWX Project\
**Created:** [August 4, 2022, 11:47am UTC](https://forum.ansible.com/t/error-on-playbook-when-trying-to-run-apt-get/36948 "2022-08-04T11:47:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanec40](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@shanec40](https://forum.ansible.com/u/shanec40)\
**Post date:** [August 4, 2022, 11:47am UTC](https://forum.ansible.com/t/error-on-playbook-when-trying-to-run-apt-get/36948/1 "2022-08-04T11:47:29Z")

</div>

hi any help here would be apricated,  
basically this playbook creates a snapshot of a VM and then runs an update,

playbook

 ![Screenshot 2022-08-04 121554.png](https://us1.discourse-cdn.com/ansible/original/2X/2/21d9c4ea868637d037c9426230ef53ebddbe5d18.png)

- error as below

**sudo: apt-get: command not found**

 ![Screenshot 2022-08-04 121655.png](https://us1.discourse-cdn.com/ansible/original/2X/c/c524dbdc824dcd5043a9751f58783a74e346ba79.png)

I have also tried without the sudo and also.

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [August 5, 2022, 11:16am UTC](https://forum.ansible.com/t/error-on-playbook-when-trying-to-run-apt-get/36948/2 "2022-08-05T11:16:54Z")

</div>

Based on these screen shots it appears you are targeting localhost. Through AWX localhost would be the container that is running your EE. Assuming you are using the default EE with AWX, that would be a Fedora based machine, not debian. Try targeting a different machine in your inventory and let us know if the apt-get command works.

-The AWX Team
