Error encountered while installing/upgrading ansible

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/”, 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:
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


Check this out: ansible=8.6.0-1ppa~jammy fails to install · Issue #77 · ansible-community/ppa · GitHub

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 :slight_smile:.


Thank you very much for your time and help.

1 Like

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