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.

I don't really know what happened, after reboot I got many crash messages, and if I would open Firefox or Synaptic, they would crash. Synaptic returns this:

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_main_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.

Then crash icon on the top panel appeared, and there was some error about mergelist. I googled, and found this sudo rm /var/lib/apt/lists/* -vf sudo apt-get update That didn't work. To be able to work in browser I deleted all files in /var/lib/apt/lists. If I try sudo apt-get update, I get this:

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ua.archive.ubuntu.com_ubuntu_dists_raring_main_source_Sources Hash Sum mismatch
W: Failed to fetch gzip:/var/lib/apt/lists/partial/ua.archive.ubuntu.com_ubuntu_dists_raring_restricted_source_Sources Hash Sum mismatch
W: Failed to fetch gzip:/var/lib/apt/lists/partial/ua.archive.ubuntu.com_ubuntu_dists_raring_universe_source_Sources Hash Sum mismatch
W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_raring-security_main_source_Sources Hash Sum mismatch
W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_raring-security_universe_source_Sources Hash Sum mismatch
W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_raring-security_main_binary-i386_Packages Hash Sum mismatch
W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_raring-security_universe_binary-i386_Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.

I do not want to reinstall the system. How could I fix that? Thanks.

Some photos there. I can't make screenshots, it crashes: Photo 1 Photo 2

share|improve this question
    
Did you recursively remove the contents of /var/lib/apt/lists? Or did you leave the partial subdirectory (including contents) there? Those files in there seem to be corrupted. The command you showed does not do that. –  gertvdijk Jun 23 '13 at 18:59
    
I removed partial also... I think if i will run sudo apt-get update it will reappear. –  AlexJ Jun 23 '13 at 19:01
    
Then what command does that? –  AlexJ Jun 23 '13 at 19:11
    
Nothing - you just said in the comments you removed partial as well. (though that was not in your question) –  gertvdijk Jun 23 '13 at 19:14
    
sudo apt-get install -f worked, but i have other problems now... –  AlexJ Jun 23 '13 at 21:31

3 Answers 3

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 -p /var/lib/apt/lists/partial
sudo chmod 755 /var/lib/apt/lists/partial

Also, is possible that the mirror you are using have problems. Select another mirror and update again.

share|improve this answer
    
I already had the partial folder, but the chmod fixed the issue for me –  Johan Bjäreholt Mar 13 at 21:33

For me something is wrong in Ukrainian server! Changing to main automatically solves the problem. Please try different server if nothing of above was helpful.

share|improve this answer

I changed servers in Software Sources and problem disappeared.

share|improve this answer
1  
Could you explain how to do this? –  Tim Aug 4 at 7:50
    
I've edited it to add a link to information on what I think you're talking about. But is this an attempt to answer the question separately from the other answers. Or are you just trying to comment that that other answer worked? –  Eliah Kagan Aug 4 at 8:05
    
Actually, I intended to comment on "that other answer" but somehow it created a new answer. –  rlib Aug 4 at 11:24
    
@Tim I upgraded from Linux Mint Petra (16) To Qiana (17). You can change software source in Petra by going to Menu->Control Center->Software Sources. After changing the servers, press Update the Cache. –  rlib Aug 4 at 11:29

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.