Package manager Error: The package lists or status file could not be parsed or opened
I'm running Stretch and 6 days ago I had trouble in Synaptic using the Reload function.
I tried a few times thinking I had a connection problem but now:- Synaptic gives me the following error message and when I close the error message box Synaptic closes. E: Encountered a section with no Package:header E: Problem with MergeList /var/lib/apt/lists/ftp.iinet.net.au_debian_debian_dists_stretch_main_binary-amd64_Packages E: The package lists or status file could not be parsed or opened. E: _cache->open() failed. please report. I've tried apt-get clean and apt-get update without any improvement. Can I delete the file named in the error message or replace it with an empty file? Or would changing mirrors do anything useful? |
Post sources.list.
|
Sources list minus commented out CD lines is
deb http://ftp.iinet.net.au/debian/debian/ stretch main contrib non-free deb http://security.debian.org/ stretch/updates main contrib deb-src http://security.debian.org/ stretch/updates contrib main I have been using and updating the box for a few months and haven't changed the sources but maybe I should. The mirror I'm using gives me free data for Debian. |
You could try deleting /var/lib/apt/lists/ftp.iinet.net.au_debian_debian_dists_stretch_main_binary-amd64_Packages. It should just re-download the Packages list. I've never done this, though, so I can't be sure of all the risks involved.
|
Risks
Thanks
I have considered doing that and maybe which ever other ones as necessary if it barfed on the first one and didn't check the rest. I don't really want to make things worse because a re-install over my SLOW connection is a pain and it takes forever to get the links etc all set up again. |
You should be able to delete the file with no adverse affects. Just your next apt-get update will be SLOW (since it's downloading everything new).
Have you ever considered trying the debian redirector to see if you got a faster connection? Not sure how slow the actual connection is, but MIGHT help some. |
I'll try it later when my wife is not using teh connection
My connection is slow between my modem and the exchange. Nothing I can do except wait until the NBN in Australia gets it's act together and starts work in this area.
|
Solved
Thanks to Tim.
Had to progressively cycle through about 8 deletes. Stretch on a NUC5CPYH |
Hi I tried to update using sudo apt-get update command but am getting some messages like
[ ERR]: Reading package lists E: Encountered a section with no Package:header E: Problem with MergeList /var/lib/apt/lists/ftp.iinet.net.au_debian_debian_dists_wheezy-updates_main_il8n_Translation-en.gz E: The package lists or status file could not be parsed or opened. Please send me the solution |
Code:
#! /bin/sh Found this on ask ubuntu which worked for me and resets everything. Just paste it as a shell program. Cheers! |
All times are GMT -5. The time now is 06:53 PM. |