Solve Ubuntu Error: Failed to download repository information Check your Internet connection

One of the most common error one faces while updating Ubuntu, either through Software Updater or in Terminal, is Failed to download repository information Check your Internet connection.” 

However, this is a generic error shown for any kind of Ubuntu update error. What you need to know is exactly what’s wrong with it. And for that, you’ll have to use the terminal.

Open the terminal application and use the following command:

sudo apt-get update

There will be a huge output. Don’t worry about that. Once the command finishes running, carefully look at the last two or three lines. This is where you’ll find the exact error.

W:Failed to fetch bzip2:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric_restricted_binary-i386_Packages Hash Sum mismatch
W:Failed to fetch bzip2:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-i386_Packages Hash Sum mismatch
E:Some index files failed to download. They have been ignored, or old ones used instead

As you can see, the error is “Hash Sum Mismatch”. If you don’t see this error, try this tutorial to fix ‘failed to download repository information‘ error.

The one shot solution to this problem which has always worked for me is to run the following commands in terminal:

sudo rm -rf /var/lib/apt/lists/* 
sudo apt-get update

I hope this quick tip helps you as well.

Similar Posts

  • Okay. This has cost me a full day of work now. I have tried and tried and tried to get this call out of sources.list and all other calls. Why is Linux still continually trying to get to https://dl.winehq.org/wine-builds/ubuntu impish InRelease? I’ve deleted files. I’ve removed wine from my home directory. I’ve edited sources.list and this url isn’t in there.

    I don’t even want Winehq on my system. I installed it and it never worked. Not once. Now I just want it off. But it won’t get out of the way. What else am I supposed to delete?

  • Tried this fix but unsuccessful. Running Ubuntu 20.04. I have tried many “fixes” I found in forums but nothing worked. Errors I received after $ sudo apt update

    E: Failed to fetch https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/dists//InRelease 400 Bad Request [IP: 35.190.146.4 443]
    E: The repository ‘https://adoptopenjdk.jfrog.io/adoptopenjdk/deb InRelease’ is not signed.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    W: Skipping acquire of configured file ‘main/source/Sources’ as repository ‘https://adoptopenjdk.jfrog.io/adoptopenjdk/deb focal InRelease’ does not seem to provide it (sources.list entry misspelt?)
    E: The repository ‘http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release’ does not have a Release file.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    Any help would be greatly appreciated.

    • Well… it seems you have added several external repository blindly in order to install Java.

      This is a common issue I notice with Ubuntu users.

      You should remove the webupd8 PPA first.

      Second, you have added the adoptopenjdk repo in the main sources.list file. You should edit thte file and remove that particular line.

      • Hi, Abhishek, Thanks for the quick reply. I have been using linux less than a year so still walking up the learning curve. I unchecked all the ppa’s under the update manager. The lines in sources.list is commented out,”#”. Do I need to setup another path for updates for java or should I go for a newer version. I am using my machine to learn devops tools, getting ready to install Jenkins, and part of the install is having java.
        Thanks for the advice!