Turns out, shifting from default to a one near your location boosts up your mirror speed and removes errors. When reverting to the main mirror doesn’t work, what should you do? Changing the mirror to a working one is your best option. cat /usr/share/doc/apt/examples/sources.listĬheck all the enabled repositories using the command, grep ^deb /etc/apt/sources.list Method-3: Change the Mirror to a Functional One Near You You need to make a new source list from the “sources.list” path to solve it.
Sometimes, Ubuntu servers change their mirror without you even noticing.
Now, use the command, sudo apt updateĪfter you update your system and find no luck, try reverting to the default mirror. Method 1: Try Updating Your Systemįirst, you need to update your Linux distro, as updating makes things work properly. Proceed on the method only if the earlier one doesn’t work. Now go through the methods below for the top solutions. They have been ignored, or old ones used instead. But first, try updating your system with “ $ sudo apt update” If your problem doesn’t fix itself, you will see an error message like, W: Failed to fetch Unable to connect to in.:http: But knowing the right time when things are going to change is tough. Generally speaking, the problem will resolve itself after a few hours. Once you know the do’s and don’ts of Ubuntu, finding a solution to the index files download fail is easy. W: Some index files failed to download: Let’s fix it