0

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

1 Answers1

0

Sounds like maybe you’re repositories are outdated or corrupt.

Try sudo su root apt update

apt full-upgrade -y

If that fails (it should if your repositories are messed up.)

Try this

apt-get check && apt-get update
apt-upgrade

Note you may need to run the update a couple of times.

Taux1c
  • 76