ping: http://google.com: Name or service not known

First make sure you have your network adapter enabled in virtual box settings.

Your network interface which you use it for connecting to internet might not be active.

  1. To check this,use "sudo nmcli d" command.

  2. If it is disconnected,use "sudo nmtui"->Edit a connection,select your network interface and choose "Automatically connect" option(by pressing Space key) and select OK.

  3. Do "sudo reboot now" After logging in,do "ping www.google.com".

You should be able to connect now.

猜你喜欢

转载自blog.csdn.net/hellocsz/article/details/82085713