Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After I installed Ubuntu , I cannot update any software with the error message "failed to download package files". After having googled, I have tried:

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. changed to another sources

But I still got the same error message. And there is no problem with internet connection as i can connect to internet using Firefox in Ubuntu.

Any ideas?

share|improve this question
I had the same problem after upgradin from 13.10 to 14.04. It was fixed by running: sudo rm /var/lib/apt/lists/* -vf & sudo apt-get update See… – parvus May 11 '14 at 9:26

Press Alt+F2 and type software-properties-gtk.

Change the download location to Main Server or another server close to the country you live in and try to sudo apt-get update again.

enter image description here

share|improve this answer
It fixed the problem. Thank you! :) – bludger Jul 14 '15 at 15:51

Run the following commands (saves a backup of the old lists and creates a new lists folder) and the BADSIG error does not occur:

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update
share|improve this answer

There's a Package Manager Troubleshooting Procedure that usually solves this sort of problem. Perform steps 1-4 of that procedure. (Step 1, which is sometimes enough, is what Bruno Pereira has posted--in better detail--in this answer. If step 1 isn't enough, continue with the other steps.)

If that doesn't solve the problem, then please select all the text in the Terminal (Edit > Select All), copy it to the clipboard (Edit > Copy), and edit your question to include it (you'll want to make it a blockquote so that the formatting doesn't get messed up). This will then provide highly useful information for solving the problem.

share|improve this answer

protected by RolandiXor Dec 19 '13 at 1:44

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.