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 mirrors.digitalocean.com] [Connecting to security.ubuntu.com]
Err:1 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Temporary failure resolving ‘mirrors.digitalocean.com’
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving 'security.ubuntu.com’

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

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.

Submit an Answer
1 answer

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 http://mirrors.digitalocean.com/ubuntu/ bionic main restricted
deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates main restricted
deb http://mirrors.digitalocean.com/ubuntu/ bionic universe
deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates universe
deb http://mirrors.digitalocean.com/ubuntu/ bionic multiverse
deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates multiverse
deb http://mirrors.digitalocean.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu 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.