I just migrated from Ubuntu 18.04 to Ubuntu 20.04. After days of struggle from drivers incompatibility, I thought everything works well until I realized my computer cannot connect to the LAN internet.
Most internet-related problems that I read refers to netplan:
- No internet connection after ubuntu server 20.04 install, ifconfig not available
- How to restore a working network configuration with netplan on Ubuntu 20.04
- /etc/netplan: No such file or directory
From what I understood, netplan is being used to manage everything related to networking on Ubuntu 20.04. So I followed the tutorials and updated my /etc/netplan/01-network-manager-all.yaml
to:
network:
version: 2
renderer: networkd
ethernets:
ens33:
dhcp4: true
When I tried to run either sudo netplan generate
or sudo netplan apply
. I got an error message:
sudo: netplan: command not found
I thought probably it's because netplan is not installed (weirdly). So I tried to run this command:
sudo apt install netplan
But I encountered this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package netplan is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'netplan' has no installation candidate
Any idea what should be done? Feel free to also suggest on how to improve the question. Thanks in advance!