You only have loopback addresses, that won’t work at all. Odd. Unless Ubuntu doesn’t use dhcp. You can try eg “sudo dhclient” or do a manual configuration in the range of your modem (eg ip 192.168.1.2, netmask /24 aka 255.255.255.0, gw 192.168.1.1, dns 9.9.9.9).
Vivek is (y)our friend: cyberciti.biz/…/setting-up-an-network-interfaces-…