Fixing internet on linux

Fixing internet on linux

Navigate to this file:
Sudo nano /etc/netplan/01-netcfg.yaml

Then paste in this code


NOTE: you might need to change the adapter accordingly (enp2s1)

network:

  version: 2

  renderer: networkd

  ethernets:

    enp2s1:

      dhcp4: true

then run the command:
sudo netplan apply