I recently installed Ubuntu 18.04 alongside windows 10 but I am getting these message whenever trying to install anything.
~$ sudo snap install canonical-livepatch
[sudo] password for john:
error: cannot install "canonical-livepatch": Post
https://api.snapcraft.io/v2/snaps/refresh: dial tcp: lookup
api.snapcraft.io: no such host
~$ sudo apt install ubuntu-restricted-extras
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ubuntu-restricted-extras
nmcli networking connectivity check
? api.snapcraft.io should resolve to a set of IPs, try other DNSs – Pablo Bianchi Feb 06 '20 at 01:17