Hi,
I am following https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04 link to deploy my node application to digital ocean. But when I am trying to install node using curl I am getting the following exception,
E: Failed to fetch http://sgp1.mirrors.digitalocean.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages.xz Hash Sum mismatch E: Failed to fetch http://sgp1.mirrors.digitalocean.com/ubuntu/dists/xenial-updates/universe/binary-amd64/Packages.xz 404 Not Found [IP: 103.253.144.50 80] E: Failed to fetch http://sgp1.mirrors.digitalocean.com/ubuntu/dists/xenial-updates/universe/i18n/Translation-en.xz 404 Not Found [IP: 103.253.144.50 80] E: Failed to fetch http://sgp1.mirrors.digitalocean.com/ubuntu/dists/xenial-updates/multiverse/binary-amd64/Packages.xz 404 Not Found [IP: 103.253.144.50 80] E: Some index files failed to download. They have been ignored, or old ones used instead. Error executing command, exiting.
I connected the server using ubuntu’s console with authentication and also using ssh, but this problem is still persisting.
Also tried removing var/lists directory and then tried to install node using apt-get but the didn’t succeeded.
Also can you please give me some link to deploy bitbucket repository on digital ocean ?
Thanks in advance.
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!
Hi,
Usually, a 404 error means that your package index list is outdated. Run sudo apt-get update to refresh the index and download the latest info from your repositories. Then, you should be able to re-run the apt-get install ... command that failed.
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.