Fix Failed To Download Package Files Error In Ubuntu

Update error in Ubuntu are pretty common. One of the errors you will see while updating Ubuntu is failed to download package files. In this quick tip we shall see how to fix this error.

Failed to download package files error

This error is not limited to Ubuntu only. Other distributions based on Ubuntu too have this error every now and then. In fact, I encountered this issue in Elementary OS but since the fix is common to all, I put Ubuntu in title so that it could reach more people.

Let’s try to understand the error first. I ran the Update Manager and I saw ‘failed to download package files error’:

failed to download package files error in Ubuntu 14.04

Looking at the details of the error, I found that it could not get a specific package from the URL it was trying to access. I copied the URL and tried to access it via web browser. As expected, files was not there:

Not_found_error

To further check, I tried to look for all the available versions of the same package only to find that specific version which Update Manager was looking for was missing:

Update_error_Ubuntu_failed_Download

Now, this is amusing. Why would the Update Manager try to get the version which is not on the server?

Fixing ‘failed to download package files’ error

The reason for this error is that Update Manager is using a server which doesn’t have that specific package version, not yet. If you do not know already, when you install Ubuntu or any other Linux OS, the software sources are set by default to the server mirror near your location. This is to ensure that software downloads (and updates) are at good speed.

But it could happen that the server your system is using, has not been updated from the main server yet. This could happen for several reasons. What you can do to fix the error is to change the server to Main Server and you can continue with the updates smoothly.

Let’s see how to fix it.

Step 1:

Go to Software Source:

Ubuntu Software Update Settings

Step 2:

In Ubuntu Software tab, change server to Main server.

error while downloading package files

Save your change. It will update the software cache. Run the Update Manager again. The update should work just fine now.

A similar update error is failed to download repository information which can be fixed easily as well. I hope this tutorial helped you to fix theย failed to download package files error in Ubuntu.ย Any questions or suggestions are always welcomed.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries ๐Ÿ•ต๏ธโ€โ™‚๏ธ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! Youโ€™ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.