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.

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,275
  • 8
  • 29
  • 50
1

Run these commands:

sudo rm -f /var/lib/apt/lists/*
sudo apt update
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,