Apt-get update doesn't pull 0% connection. What am I missing?

I a new user I tried installing mautic on my droplet but messed up at the end so I deleted my droplet several times and started clean. Now I try to re-install but not getting to connect with digitalocean.

apt update && apt upgrade -y

And I am getting this errors

0% [Connecting to] [Connecting to] Err:1 xenial InRelease Temporary failure resolving ‘’ Err:2 xenial-security InRelease Temporary failure resolving ‘

I am not sure how to proceed and resolve the problem. What am I missing?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @dropingdroplet,

It seems like you have messed either with your network connection, or with your repository list.

If you are network connection is broken, I’ll recommend contacting DigitalOcean’s support. If it’s indeed broken, most probably, you won’t be able to ping your DigitalOcean’s droplet IP.

Another solution would be as mentioned to have messed with your repository list. Your repository file list can be found at /etc/apt/sources.list. It should contain the following information

deb bionic main restricted
deb bionic-updates main restricted
deb bionic universe
deb bionic-updates universe
deb bionic multiverse
deb bionic-updates multiverse
deb bionic-backports main restricted universe multiverse
deb bionic-security main restricted
deb bionic-security universe
deb bionic-security multiverse                 

and that’s for Ubuntu 18.04.

If you are trying to use an older version of Ubuntu like 16.04, I’ll suggest to immediately use a newer one as 16.04 has been EOL for about a year or more.

Regards, KFSys