4
respostas

Erro no comando vagrant init hashicorp/precise64

Essa é a mensagem após executar o comando:

C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/childprocess-4.0.0/lib/childprocess/windows/process_builder.rb:44:in encode!': "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE (Encoding::UndefinedConversionError) from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/childprocess-4.0.0/lib/childprocess/windows/process_builder.rb:44:into_wide_string' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/childprocess-4.0.0/lib/childprocess/windows/process_builder.rb:67:in create_environment_pointer' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/childprocess-4.0.0/lib/childprocess/windows/process_builder.rb:28:instart' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/childprocess-4.0.0/lib/childprocess/windows/process.rb:70:in launch_process' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/childprocess-4.0.0/lib/childprocess/abstract_process.rb:81:instart' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/subprocess.rb:155:in block in execute' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/safe_chdir.rb:26:inblock (2 levels) in safe_chdir' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/safe_chdir.rb:25:in chdir' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/safe_chdir.rb:25:inblock in safe_chdir' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/safe_chdir.rb:24:in synchronize' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/safe_chdir.rb:24:insafe_chdir' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/subprocess.rb:154:in execute' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/subprocess.rb:22:inexecute' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/powershell.rb:174:in version' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/powershell.rb:195:invalidate_install!' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/powershell.rb:96:in execute_cmd' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/platform.rb:82:inblock in windows_admin?' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/util/platform.rb:84:in windows_admin?' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/plugins/providers/hyperv/provider.rb:20:inusable?' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/environment.rb:361:in block in default_provider' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/registry.rb:49:inblock in each' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/registry.rb:48:in each' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/registry.rb:48:ineach' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/environment.rb:347:in default_provider' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/environment.rb:944:inguess_provider' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/environment.rb:956:in find_configured_plugins' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/environment.rb:984:inprocess_configured_plugins' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/lib/vagrant/environment.rb:178:in initialize' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/bin/vagrant:194:innew' from C:/HashiCorp/Vagrant/embedded/gems/2.2.15/gems/vagrant-2.2.15/bin/vagrant:194:in `

'

Não consigo passar desta etapa. Agradeço antecipadamente

4 respostas

Olá, Guilherme. Tudo bem?

Não consegui encontrar muita coisa sobre esse erro. Você realizou a instalação do VirtualBox e Vagrant com as últimas versões disponíveis para seu sistema operacional?

Um arquivo Vagrantfile chegou a ser criado no diretório? Se não tiver, crie um, coloque o conteúdo abaixo e execute o vagrant up pra testar se o restante está funcionando:

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"
end

Faz o teste e me diz o resultado?

Boa tarde, Vitor.

Sim, estou utilizando as ultimas versões do Virtual Box e Vagrant disponiveis. Criei o arquivo Vagrantfile e adicionei o contéudo mas ao executar o comando, o diretório .vagrant foi criado porém o mesmo erro da minha primeira msg ainda aparece.

O diretório .vagrant contém o seguinte conteudo: um diretório rgloader com um arquivo loader.rb dentro.

Agradeço novamente

Tenta esse código mano eu consegui assim: vagrant init hashicorp/bionic64

Fala ai, Daniel.

Pelo WIndows continuo com o mesmo erro. Mas eu fiz um dualboot com o Ubuntu e estou prosseguindo no curso sem problemas.

Obrigado pela dica