tmatilai / vagrant-proxyconf

Vagrant plugin that configures the virtual machine to use proxies
MIT License
531 stars 74 forks source link

Cannot add PPA: user or team does not exist #171

Closed forseti closed 5 years ago

forseti commented 6 years ago

Hi there,

I'm currently having problem adding apt repository

After I did vagrant ssh

I ran the following command:

Command: sudo apt-add-repository ppa:ansible/ansible

Output:

Cannot add PPA: 'ppa:~ansible/ubuntu/ansible'. ERROR: '~ansible' user or team does not exist.

I wonder if I missed anything during configuration?

Thanks a ton!!

Donny

iamteedoh commented 6 years ago

I'm also experiencing the same issue. Running Ubuntu 16.04 LTS I can sudo apt-get install software-properties-common just fine and install any packages including running update and upgrade so it's definitely not a proxy issue. However, when I run sudo apt-add-repository ppa:ansible/ansible, I get the following:

Cannot add PPA: 'ppa:~ansible/ubuntu/ansible'. ERROR: '~ansible' user or team does not exist.

tmatilai commented 6 years ago

Short googling gives me this. Could you try passing the -E switch for sudo?

forseti commented 6 years ago

Hi @tmatilai

I've tried sudo -E apt-add-repository ppa:ansible/ansible It returned same error message.

Thanks!! Donny

fahiddin commented 6 years ago

Hi,

I'm on Ubuntu 16.04 LTS as well, and am encountering the same error. I actually encountered it a few months ago when first installing Ansible. I tried all the workarounds I found online including -E. I recently saw a suggestion of adding Defaults env_keep="http_proxy https_proxy". I can install software-properties-common and do an upgrade/update, so it's definitely not that.

Has anyone managed to get past this? It sucks because I want to use a few module arguments that are not in the 2.0 version of ansible (i.e. path for lineinfile!)

Thanks!

radioactive73 commented 6 years ago

I was able to get this to work (in bionic) by manually adding the repo to /etc/apt/sources.list - for xenial it would be: deb http://ppa.launchpad.net/ansible/ansible-2.6/ubuntu xenial main Then you should be able to manually add the key: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 However since I'm running WSL I had to use a workaround for the key: curl -sL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x93C4A3FD7BB9C367" | sudo apt-key add Hope this helps.

forseti commented 6 years ago

Has anyone managed to get past this? It sucks because I want to use a few module arguments that are not in the 2.0 version of ansible (i.e. path for lineinfile!)

Thanks!

Hi, @fahiddin I managed to install Ansible using pip/python (with shell provisioning) Not the best solution. I think @radioactive73's approach is better.

pezhore commented 5 years ago

@radioactive73 That worked for me on my Ubuntu 18.04 WSL instance.

codylane commented 5 years ago

Hi Guys,

I'm having a hard time trying to understand this issue and whether or not it relates to the vagrant-proxyconf plugin. To me there isn't enough information to determine if this is an issue with the plugin or it's an issue with something else either the Ubuntu distro, apt, ansible... etc.

If this is an issue with this plugin please provide these details:

Because this issue doesn't appear to be related to vagrant-proxyconf plugin, i'm going to close out this issue. If you would like to provide the details I've requested above please feel free to re-open this issue.

Jummartinezro commented 4 years ago

I was able to get this to work (in bionic) by manually adding the repo to /etc/apt/sources.list - for xenial it would be: deb http://ppa.launchpad.net/ansible/ansible-2.6/ubuntu xenial main Then you should be able to manually add the key: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 However since I'm running WSL I had to use a workaround for the key: curl -sL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x93C4A3FD7BB9C367" | sudo apt-key add Hope this helps.

Worked for me :+1:

Lasts step I had to:

boillodmanuel commented 4 years ago

On my side, it was a proxy / firewall issue. I was able to add ppa after opening:

poige commented 4 years ago

It's solely and completely Ubuntu's fault and they do have a bug report in regards: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1781917

That cryptic message can arise from various networking malfunction starting from DNS and you name it.

markuszeller commented 3 years ago

I had the same error and found out python was blocked in the firewall.

akontsevich commented 3 years ago

So how to solve? Need to install this: https://answers.launchpad.net/ubuntu/+source/git-cola/+question/695751

codylane commented 3 years ago

@akontsevich - I'm not sure why you posted to this thread, your response is not a solution and it's phrased like a question. It is confusing and probably is confusing for others.

Given all the other responses it appears that this is a bug or a bad configuration in your guest VM.

I'm not sure I understand this issue and I've not been able to reproduce this over the past few years. However, if it were me the first things I would check are the following:

Anyway, I hope this helps others troubleshoot this as well. I wish I was able to reproduce this.

akontsevich commented 3 years ago

@codylane I'm not in VM and time is ok (NTP is set). I just saw you had same issue and probably have a solution. The problem here probably is https://launchpad.net/ubuntu/+source/git-cola - is not a PPA. Adding PPA manually could not work as I do not know exact URL and where to take the key.

codylane commented 3 years ago

@codylane I'm not in VM and time is ok (NTP is set).

I'm not sure I understand your issue then. If you are not inside a VM then you are not using Vagrant and this plugin which is not related to this thread. Also, no, "I did not have this issue!" I'm the maintainer and developer of vagrant-proxyconf.

If you do post again, please make sure to provide the following as stated above https://github.com/tmatilai/vagrant-proxyconf/issues/171#issuecomment-478700232, as well as any other steps to attempt to reproduce the error so that we can try and help you.

Otherwise, if you are not using vagrant-proxyconf I'm afraid this is not the right place to ask for IT support.

sanfx commented 2 years ago

I was able to get this to work (in bionic) by manually adding the repo to /etc/apt/sources.list - for xenial it would be: deb http://ppa.launchpad.net/ansible/ansible-2.6/ubuntu xenial main Then you should be able to manually add the key: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 However since I'm running WSL I had to use a workaround for the key: curl -sL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x93C4A3FD7BB9C367" | sudo apt-key add Hope this helps.

Useful in installing ansible in minimal/xenial vagrant box. thanks

dotnixx commented 2 years ago

Well, got this message in a new linux box setup for a lab, the issue was I forgot to configure the DNS servers, it worked after I set it up.