Apt-get update failing with unable to resolve error

  • Posted on January 30, 2015
  • do999Asked by do999

root@docean9:~# apt-get update Err virtualmin-trusty InRelease

Err virtualmin-universal InRelease

Err trusty-security InRelease

Err trusty-security Release.gpg Could not resolve ‘’ Err virtualmin-trusty Release.gpg Could not resolve ‘’ Err virtualmin-universal Release.gpg Could not resolve ‘’ Err trusty InRelease

Err trusty-updates InRelease

Err trusty Release.gpg Could not resolve ‘’ Err trusty-updates Release.gpg Could not resolve ‘’ Reading package lists… Done W: Failed to fetch

W: Failed to fetch nRelease

W: Failed to fetch ease

W: Failed to fetch usty/InRelease

W: Failed to fetch iversal/InRelease

W: Failed to fetch usty/Release.gpg Could not resolve ‘

W: Failed to fetch iversal/Release.gpg Could not resolve ‘

W: Failed to fetch se.gpg Could not resolve ‘

W: Failed to fetch pg Could not resolve ‘

W: Failed to fetch elease.gpg Could not resolve ‘

W: Some index files failed to download. They have been ignored, or old ones used instead. root@docean9:~#

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Following solution helped me:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update 

I found it here:

I am assuming Ubuntu 14.04 on a recent Droplet (considering apt-get is looking for trusty)… lsb_release -a will tell you your Ubuntu version.

Do you have ufw enabled? If so, disable ufw and try apt-get update again…if it works, you need to add outgoing rules for http(s) and dns like so ufw allow out 80 ufw allow out 443 ufw allow out 53 ufw enable

try apt-get update again…now it should work

so how did you guys solved this? I’m having the same issue