Se hai spostato una macchina virtuale Ubuntu o l'hai modificata e improvvisamente hai avuto problemi a far funzionare la rete, potresti voler leggere questa pagina, perché ho trovato una soluzione alternativa per farlo funzionare di nuovo.
Il messaggio di errore completo è questo:
eth0: ERROR while getting interface flags: No such device There is already a pid file /var/run/dhclient.eth0.pid with pid 6847440 Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/sw/dhcp/ SIOCSIFADDR: No such device eth0: ERROR while getting interface flags: No such device eth0: ERROR while getting interface flags: No such device Bind socket to interface: No such device Failed to bring up eth0.
sudo vi /etc/network/interfaces sudo /etc/init.d/networking restart
Dovresti essere in grado di eseguire un comando ping, o usare ifconfig -a e tutto funzionerà.