0

Just installed server 14.04 LTS on server i have, but everytime i try to use "apt-get update" it fails with the output:

....    
    Reading package lists... Error!
    E: Encountered a section with no Package: header
    E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_universe_i18n_Translation-en
    E: The package lists or status file could not be parsed or opened.

I also tried multiple times to that Solution:

rm /var/lib/apt/lists/* -vf && apt-get update

I got the same error:

.....
Get:67 http://us.archive.ubuntu.com trusty/multiverse Translation-en [102 kB]                                                                  
Get:68 http://us.archive.ubuntu.com trusty/restricted Translation-en [3457 B]                                                                  
Get:69 http://us.archive.ubuntu.com trusty/universe Translation-en [4089 kB]                                                                   
Fetched 32.7 MB in 3min 43s (146 kB/s)                                                                                                         
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_universe_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.

Any Ideas?

Edit

apt-get install -f
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_universe_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
MohammedSimba
  • 848
  • 8
  • 20
  • 40
  • Solutions there didn't work with me, – MohammedSimba Apr 11 '16 at 10:27
  • What exactly is the matter with that particular file? Does it exist on your system? It ought to be fairly long, around 18Mb. If it's not there at all or has been damaged during download, perhaps you can download it manually (from here, obviously) and try again. – Jos Apr 11 '16 at 12:38

3 Answers3

1

Run:

sudo apt-get install -f 
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

Good luck.

MadMike
  • 4,244
  • 8
  • 28
  • 50
1

Run these commands:

sudo rm -f /var/lib/apt/lists/*
sudo apt update
Gunnar Hjalmarsson
  • 33,540
  • 3
  • 64
  • 94
  • I already tried those multiple times, as i mentioned in the post, but same error, – MohammedSimba Apr 11 '16 at 11:31
  • 1
    @user225844: Sorry, didn't read your question carefully enough. Another idea is to switch mirror: Open Software & Updates and change "Download from" to e.g. "Main server". – Gunnar Hjalmarsson Apr 11 '16 at 11:34
  • My case is server not desktop, but the idea helped a lot :), i changed the sources.list file, thanks alot :) – MohammedSimba Apr 11 '16 at 12:34
  • @user225844: Sorry for reading your question so bad. :( Anyway, glad it helped. Probably it's a temporary glitch with the US mirror, and it will probably be corrected soon. – Gunnar Hjalmarsson Apr 11 '16 at 13:10
1

Thanks to Mr. Grunnar's idea, and also thanks to that answer to change the Ubuntu's mirrors, I did that:

sed -i 's/http:\/\/us./http:\/\//g' /etc/apt/sources.list

Removing all "us." perfix in the file, and made it pointing to the mainserver itself,

And it fixed my issue,

MohammedSimba
  • 848
  • 8
  • 20
  • 40