New answers tagged

0

Instead of add-apt-repository which you need python-software-properties package for, try the built in apt-add-repository. Works in Precise, Trusy and Xenial right out of the box. See manpage for details. Note both commands look the same, but look at the order of the apt. The built in one starts with apt, where as the other one starts with add.


0

I added the -E switch to my sudo command and it worked. Try: sudo -E apt-add-repository ppa:ansible/ansible This moves (or copies) your environment variables, including http_proxy into the sudo context.


0

I had the same issue and the following worked for me. # Make sure the source list directory exists sudo mkdir -p /etc/apt/sources.list.d # Adde the Ansible sources. echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu wily main" | sudo tee -a /etc/apt/sources.list.d/ansible.list echo "deb-src http://ppa.launchpad.net/ansible/ansible/ubuntu wily main" |...



Top 50 recent answers are included