vagrant
vagrant copied to clipboard
Fixed issue provisioning ubuntu 22.04 python-dev has no install candidate
Ran into this issue today dug through the code and resolved it with the following minor change. didn't see this reported in the issue list so if there is another plan to resolve this please close and i will wait for the updated version. Thanks
Faced this after adding to my Vagrantfile
:
config.vm.box = 'ubuntu/jammy64'
config.vm.provision 'ansible_local' do |ansible|
ansible.playbook = 'playbook.yml'
+ ansible.install_mode = 'pip_args_only'
+ ansible.pip_args = '-r requirements.txt'
end
I can confirm that the fix is working. What is required to move this issue forward? @teh-syntax can you maybe add a bug label so that it gets prioritized a bit higher by Hashicorp?
Hey @chrisroberts thanks for merging my change.
BTW this broke the provisioning for our Ubuntu 18.04 VMs because the package python-dev-is-python3
is missing. However I don't really mind since we're phasing out 18.04 anyway.
For the moment we stay on Virtualbox 6.1 and Vagrant 2.2.19 until we've migrated all our systems to 22.04.