Informational Website publish

Blog

News about our company, tutorials about IT and much more you will find in this page.

Getting error 404 failed to fetch on ubuntu 14.04

Janeiro 30th, 2018

Who hasn’t come across an error while doing an update in Ubuntu?

Update errors are common and plenty in Ubuntu and other Linux distributions based on Ubuntu. Here are some common Ubuntu update errors and their fixes. (error 404)


W: Failed to fetch http://mirror.../ubuntu-releases/dists/trusty/main/source/Sources 404 Not Found (IP: ...)
W: Failed to fetch http://mirror.../ubuntu-releases/dists/trusty/restricted/source/Sources 404 Not Found (IP: ...)
W: Failed to fetch http://mirror.../ubuntu-releases/dists/trusty/universe/source/Sources 404 Not Found (IP: ...)
W: Failed to fetch http://mirror.../ubuntu-releases/dists/trusty/multiverse/source/Sources 404 Not Found (IP: ...)
...

Delete file /etc/apt/sources.list

rm -rf /etc/apt/sources.list

Create a new one and copy the morrors below

nano /etc/apt/sources.list
###### Ubuntu Main Repos
deb http://nl.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse 
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse 

deb http://nl.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse 
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse

Save and close

:wq

Trying again

apt-get update