Linux operating systems need to be configured to obtain the network settings from a DHCP server automatically. Usually this is done by using a DHCP client.
If the operating system is showing that no network cable is connected, a network socket lock could be the reason.