當 Linux Ubuntu 無法連接到網際網路時,Windows OS 卻可以連接到網際網路。有什麼區別?

可以嘗試在 Linux 中初始化 LAN Port
ifconfig -a 

則 nep1s0 是網卡 port 名稱,如果您的網卡 port 名稱不同,請根據您的網卡 port 名稱進行設定

ifconfig enp1s0 up
dhclient enp1s0 
ifconfig -a
您會發現 enp1s0 獲得 dhcp IP

網路卡設定參考 編譯器 例如 nano/vi/vim

sudo nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp1s0
iface enp1s0 inet dhcp
sudo /etc/init.d/networking restart