Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Whenever I try to update my computer using the Update Manager or sudo apt-get update on a terminal I get this:

Failed to download the information from the repository
Check your Internet connection    
Details:    
 `W:Failed to fetch gzip:/var/lib/apt/lists/partial/ar.archive.ubuntu.com_ubuntu_dists_oneiric_unive‌rse_i18n_Translation-en`     
  Encountered a section with no Package: header , E:Some index files
  failed to download. They have been ignored, or old ones used instead.

But my Internet connection works fine.

The banish404 software doesn't work. Here is my /etc/apt/sources.list file.

What do I have to do?

share|improve this question
    
Do you get any messages when you run sudo apt-get update? –  Mitch May 31 '12 at 15:12
    
@Mitch Yes, the message is the following: "W:Failed to fetch gzip:/var/lib/apt/lists/partial/ar.archive.ubuntu.com_ubuntu_dists_oneiric_unive‌​‌​rse_i18n_Translation-en Encountered a section with no Package: header , E:Some index files failed to download. They have been ignored, or old ones used instead" I explained above.. –  Lucio May 31 '12 at 15:52
add comment

2 Answers 2

up vote 2 down vote accepted

open your terminal and do as

sudo rm -rf /var/lib/apt/lists/partial/ar.archive.ubuntu.com_ubuntu_dists_oneiric_unive‌​rse_i18n_Translation-en

sudo apt-get update

All the best :)

share|improve this answer
add comment

The problem is that you deleted recursively /var/lib/apt/lists, which deleted the partial directory too. So, recreating the directory should solve the issue:

sudo mkdir /var/lib/apt/lists/partial
sudo chmod 755 /var/lib/apt/lists/partial
share|improve this answer
    
That wasn't my case, I solved this with the procedure mentioned above. But if that doesn't help, other may find your solution helpful. –  Lucio Dec 22 '13 at 3:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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