I can complete startup on my vagrant(ubuntu-18.lts) . Everytime i try up(vagrant up) in my directory, i get a error in update task. This task look like a apt-get update. I find the probmem, the problem is the nat network(default setup in vagrant), this not connect in many repos on default source.list.
I try insert a publuc_network with default route, but the startup crash before. The vagrant not run this step.
Bellow my Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
# config.vm.box_version = "20220920.0.0"
config.vm.define "core" do |core|
core.vm.network "public_network", ip: "192.168.1.214", bridge: "en0: Wi-Fi (Wireless)"
config.ssh.dsa_authentication
config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/me.pub"
config.vm.provision "shell", inline: <<-SHELL
cat /home/vagrant/.ssh/me.pub >> /home/vagrant/.ssh/authorized_keys
SHELL
config.vm.provision "file", source: "config/network/50-local-custom.yaml", destination: "/etc/netplan"
config.vm.provision "shell", inline: <<-SHELL
netplan apply
SHELL
end
end
Bellow error steps on my terminal: enter image description here