# Error encountered while installing/upgrading ansible

**URL:** <https://forum.ansible.com/t/error-encountered-while-installing-upgrading-ansible/2277>\
**Category:** Get Help\
**Tags:** ansible-core\
**Created:** [November 9, 2023, 6:34pm UTC](https://forum.ansible.com/t/error-encountered-while-installing-upgrading-ansible/2277 "2023-11-09T18:34:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johntxjw](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/johntxjw/32/3520_2.png) [@johntxjw](https://forum.ansible.com/u/johntxjw)\
**Post date:** [November 9, 2023, 6:34pm UTC](https://forum.ansible.com/t/error-encountered-while-installing-upgrading-ansible/2277/1 "2023-11-09T18:34:45Z")

</div>

I’m trying to install ansible using ppa but I keep getting a error.

Setting up ansible-core (2.15.6-1ppa~jammy) …  
Setting up ansible (8.6.0-1ppa~jammy) …  
File “/usr/lib/python3/dist-packages/ansible\_collections/netapp/ontap/plugins/modules/na\_ontap\_s3\_users.py”, line 7  
from **future** import absolute\_import, division, print\_function  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
SyntaxError: from **future** imports must occur at the beginning of the file  
dpkg: error processing package ansible (–configure):  
installed ansible package post-installation script subprocess returned error exit status 1  
Processing triggers for man-db (2.10.2-1) …  
Errors were encountered while processing:  
ansible  
E: Sub-process /usr/bin/dpkg returned an error code (1)

since encountering this error i can’t use raw module with my cisco devices

---

<div class="post-metadata">

**Author:** ![ptn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ptn/32/481_2.png) [@ptn](https://forum.ansible.com/u/ptn)\
**Post date:** [November 13, 2023, 7:28pm UTC](https://forum.ansible.com/t/error-encountered-while-installing-upgrading-ansible/2277/2 "2023-11-13T19:28:37Z")

</div>

Hey,

Check this out: [ansible=8.6.0-1ppa~jammy fails to install · Issue #77 · ansible-community/ppa · GitHub](https://github.com/ansible-community/ppa/issues/77)

Also for this kind of issue, it would be appreciated you share more info on your setup, like:

- Your distribution release ? With `cat /etc/os-release` or `lsb_release -a` for instance
- The exact command you ran to get your error output
- The Ansible version you’re trying to upgrade from

Anyways, package seems to be fixed in the next release 🙂.

---

<div class="post-metadata">

**Author:** ![johntxjw](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/johntxjw/32/3520_2.png) [@johntxjw](https://forum.ansible.com/u/johntxjw)\
**Post date:** [November 18, 2023, 3:27am UTC](https://forum.ansible.com/t/error-encountered-while-installing-upgrading-ansible/2277/3 "2023-11-18T03:27:33Z")

</div>

Thank you very much for your time and help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [December 18, 2023, 3:28am UTC](https://forum.ansible.com/t/error-encountered-while-installing-upgrading-ansible/2277/4 "2023-12-18T03:28:05Z")

</div>

Closed on December 18, 2023, 3:28am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
