root@docean9:~# apt-get update Err http://software.virtualmin.com virtualmin-trusty InRelease
Err http://software.virtualmin.com virtualmin-universal InRelease
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://software.virtualmin.com virtualmin-trusty Release.gpg Could not resolve ‘software.virtualmin.com’ Err http://software.virtualmin.com virtualmin-universal Release.gpg Could not resolve ‘software.virtualmin.com’ Err http://mirrors.digitalocean.com trusty InRelease
Err http://mirrors.digitalocean.com trusty-updates InRelease
Err http://mirrors.digitalocean.com trusty Release.gpg Could not resolve ‘mirrors.digitalocean.com’ Err http://mirrors.digitalocean.com trusty-updates Release.gpg Could not resolve ‘mirrors.digitalocean.com’ Reading package lists… Done W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/trusty-updates/I nRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRel ease
W: Failed to fetch http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-tr usty/InRelease
W: Failed to fetch http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-un iversal/InRelease
W: Failed to fetch http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-tr usty/Release.gpg Could not resolve ‘software.virtualmin.com’
W: Failed to fetch http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-un iversal/Release.gpg Could not resolve ‘software.virtualmin.com’
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Relea se.gpg Could not resolve ‘security.ubuntu.com’
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/trusty/Release.g pg Could not resolve ‘mirrors.digitalocean.com’
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/trusty-updates/R elease.gpg Could not resolve ‘mirrors.digitalocean.com’
W: Some index files failed to download. They have been ignored, or old ones used instead. root@docean9:~#
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!
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
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: https://www.kubuntuforums.net/showthread.php?57567-Ubuntu-problems-on-update
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.