3
I am using Homestead and Vagrant to create a Virtual Machine and run my web projects. However, I cannot log into my hosts (ex: meusite.dev), all are already properly configured on Homestead.yaml and in the archive hosts windows, however, whenever I apply the command Vagrant up, at the end of the command I receive the following error message:
==> homestead-7:
==> homestead-7: [Composer\Downloader\TransportException]
==> homestead-7: The "https://getcomposer.org/versions" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Name or service not known
==> homestead-7: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
==> homestead-7:
==> homestead-7:
==> homestead-7: self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--] [<version>]
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Both the bash, like Vagrant, like Composer are already properly installed and updated. What could be this error?
Ideoliveira, how do I apply these commands via terminal? inside a specific folder?
– Hitch Leonardo
only log via SSH and type one command at a time
– ldeoliveira
is what I tried now... but when I type the command appears: "-bash: auto: command not found"
– Hitch Leonardo
see if the "Vagrant login" command works https://www.vagrantup.com/docs/cli/login.html
– ldeoliveira
outside the "Vagrant ssh" works, inside ssh does not work and presents the same error.
– Hitch Leonardo
I am using linux - Ubuntu 16.4 LTS. I have already discovered the question, they are written inside: sudo vi /etc/network/interface and not directly on the terminal.
– Hitch Leonardo
@ideoliveira, I’m just not being able to execute the last command: // vagrant@homestead:~$ sudo service network Restart Failed to Restart network.service: Unit network.service not found.
– Hitch Leonardo
yes, I’m connected!
– Hitch Leonardo
try this one: sudo ifdown eth0 && sudo ifup eth0
– ldeoliveira
I gave the command, but it appeared: "Unknown interface eth0"
– Hitch Leonardo