How to Install Ansible on Ubuntu 25.10 (Questing Quokka)
By Luca Berton · Published 2024-01-01 · Category: installation
Step-by-step guide to install Ansible on Ubuntu 25.10 Questing Quokka using apt or pip. Includes verification steps and troubleshooting tips.
How to Install Ansible on Ubuntu 25.10 (Questing Quokka)
Learn how to install Ansible on Ubuntu 25.10 "Questing Quokka" using two methods: the system package manager (apt) and Python's pip package manager.
Prerequisites • Ubuntu 25.10 "Questing Quokka" installed and updated • A user account with sudo privileges • Internet connection
Method 1: Install Ansible Using apt (Recommended)
Step 1: Update System Packages
Step 2: Install the Software Properties Common Package
Step 3: Add the Ansible PPA
Step 4: Install Ansible
Step 5: Verify the Installation
Expected output:
Method 2: Install Ansible Using pip
Step 1: Install Python3 and pip
Step 2: Create a Virtual Environment (Recommended)
Step 3: Install Ansible via pip
Step 4: Verify the Installation
Verify Ansible Works
Test connectivity to localhost:
Expected output:
Troubleshooting
Error: "add-apt-repository: command not found"
Install the required package:
Error: "externally-managed-environment"
Ubuntu 25.10 uses PEP 668. Use a virtual environment (Method 2) or install via apt (Method 1).
Multiple Python Versions
If you have multiple Python versions installed, set the interpreter explicitly in your ansible.cfg:
Uninstall Ansible
If installed via apt:
If installed via pip:
FAQ
What version of Python does Ubuntu 25.10 use?
Ubuntu 25.10 "Questing Quokka" ships with Python 3.13.
Can I install ansible-core only?
Yes, use pip install ansible-core for a minimal installation without community collections.
What is the difference between apt and pip installation?
The apt method installs a system-wide package maintained by Ubuntu/PPA. The pip method gives you the latest version and more control, especially useful in virtual environments.
Related Articles • How to Install Ansible on Ubuntu 25.04 • How to Install Ansible on Ubuntu 24.04 • Ansible Extra Vars: Pass Variables via Command Line • What is Ansible? A Complete Guide
Category: installation