Please check that the PPA name or format is correct
installing ansible on ubuntu os,
on typing the command :
sudo apt-add-repository -y ppa:ansible/ansible
it is showing
Please check that the PPA name or format is correct.
how to fix this issue?
Solution 1:
To install Ansible on Ubuntu 14.04 from the terminal without the having to run the sudo add-apt-repository -y ppa:ansible/ansible
command, follow these steps.
-
Open the terminal and type:
sudo apt-get update sudo apt-get install software-properties-common sudo nano /etc/apt/sources.list
-
The last command will open your sources.list file, which specifies the software sources in Ubuntu, for editing in nano text editor. Add the following lines to the end of the sources.list file:
deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main deb-src http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main
Press the keyboard combination Ctrl+O and after that press Enter to save the changes in sources.list. Press the keyboard combination Ctrl+X to exit nano.
-
Pull down Ansible PPA's signing key and add it to your system.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7BB9C367
-
Run these commands to update the list of available software once again and install Ansible.
sudo apt-get update sudo apt-get install ansible
Alternatively you can install ansible from the default repositories in all currently supported versions of Ubuntu by running the following command.
sudo apt install ansible