> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Fix Failed To Download Package Files Error In Ubuntu
- URL: https://itsfoss.com/fix-failed-download-package-files-error-ubuntu/
- Published: 2014-09-06T19:50:34.000Z
- Updated: 2023-01-11T09:56:08.000Z
- Author: Abhishek Prakash
- Tags: Ubuntu, #Import 2022-12-26 08:27

[Update error in Ubuntu](https://itsfoss.com/ubuntu-update-error/) are pretty common. One of the errors you will see while [updating Ubuntu](https://itsfoss.com/update-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](https://ubuntu.com/?ref=itsfoss.com) 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](https://itsfoss.com/content/images/wordpress/2014/09/Ubuntu_Update_error.jpeg)](https://itsfoss.com/content/images/wordpress/2014/09/Ubuntu%5FUpdate%5Ferror.jpeg)

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](https://itsfoss.com/content/images/wordpress/2014/09/Not_found_error.jpeg)](https://itsfoss.com/content/images/wordpress/2014/09/Not%5Ffound%5Ferror.jpeg)

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](https://itsfoss.com/content/images/wordpress/2014/09/Update_error_Ubuntu_failed_Download.jpeg)](https://itsfoss.com/content/images/wordpress/2014/09/Update%5Ferror%5FUbuntu%5Ffailed%5FDownload.jpeg)

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](http://en.wikipedia.org/wiki/Mirror%5F%28computing%29?ref=itsfoss.com) 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](https://itsfoss.com/content/images/wordpress/2014/08/Software_Update_Ubuntu.jpeg)](https://itsfoss.com/content/images/wordpress/2014/08/Software%5FUpdate%5FUbuntu.jpeg)

### Step 2:

In Ubuntu Software tab, change server to **Main server**.

[![error while downloading package files](https://itsfoss.com/content/images/wordpress/2014/09/Change_server_Ubuntu.jpeg)](https://itsfoss.com/content/images/wordpress/2014/09/Change%5Fserver%5FUbuntu.jpeg)

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](https://itsfoss.com/failed-to-download-repository-information-ubuntu-13-04/ "[How To] Fix “Failed to download repository information” In Ubuntu 14.04") 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.