Report this

What is the reason for this report?

I get error when apt-get update how to resolve this problem?

Posted on March 20, 2018

Err http://security.ubuntu.com trusty-security InRelease

Err http://security.ubuntu.com trusty-security Release.gpg Could not resolve ‘security.ubuntu.com’ Err http://mz.archive.ubuntu.com trusty InRelease

Err http://mz.archive.ubuntu.com trusty-updates InRelease

Err http://mz.archive.ubuntu.com trusty-backports InRelease

Err http://mz.archive.ubuntu.com trusty Release.gpg Could not resolve ‘mz.archive.ubuntu.com’ Err http://mz.archive.ubuntu.com trusty-updates Release.gpg Could not resolve ‘mz.archive.ubuntu.com’ Err http://mz.archive.ubuntu.com trusty-backports Release.gpg Could not resolve ‘mz.archive.ubuntu.com’ Reading package lists… Done W: Failed to fetch http://mz.archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://mz.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://mz.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve ‘security.ubuntu.com

W: Failed to fetch http://mz.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve ‘mz.archive.ubuntu.com

W: Failed to fetch http://mz.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve ‘mz.archive.ubuntu.com

W: Failed to fetch http://mz.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve ‘mz.archive.ubuntu.com

W: Some index files failed to download. They have been ignored, or old ones used instead.



This textbox defaults to using Markdown to format your 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, I had same issue and tried many given solution but nothing worked. It was a issue with the domains. Some files does not exists. So I replace the us repositories.

Please referrer to https://gist.github.com/h0bbel/4b28ede18d65c3527b11b12fa36aa8d1

It looks like your Droplet is having trouble looking up domain names, possibly because the DNS resolvers are misconfigured. Can you post the output of these two commands?

cat /etc/resolv.conf
sudo netstat -plutn | grep :53

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.