Error: Section with no Package header
I got a Error Message that reads:
E: Encountered a section with no Packaged header
E: Problem with Mergelist/
extras.
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report
This usually means that your installed packages have unmet dependencies.
Said to Run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong.
I do not know how to 'apt-get' in a terminal but did try the Package Manager. Could not open it. Looked in FAQ and seen the problem and answer at the top of the lists. Using a terminal like the answer said I put in ' sudo rm -rf /var/lists and pressed enter. Got '[sudo] password for margaret'... When I tried to put in the password I couldn't, the cursor froze in place.. So could not do as the person suggested. Now what can I do?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
This is not a bug, but rather a corrupted list file that needs to be removed.
Revision history for this message
|
#2 |
Try these two commands to see if you can resolve it quickly:
sudo rm -r /var/lib/
sudo apt-get update
When you are prompted for a password, type it in and press [Enter]. The cursor will not be shown when you are entering the password for security reasons (so if someone is watching over your shoulder, they won't know how many characters your password is).
If that fails, there is a more comprehensive set of instructions here:
https:/
Revision history for this message
|
#3 |
Hi,
I just tried what Daniel suggested. When I typed in "sudo rm-r /var/lib/
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/
E: _cache-
Any other suggestions on how to fix this?
Revision history for this message
|
#4 |
I cannot run Package Manager cause of this problem or Update Manager.
Revision history for this message
|
#5 |
There is a space between "rm" and "-r"
Copy/paste the command to avoid typos.
Revision history for this message
|
#6 |
Went to link that Daniel (dtl131) gave and followed instructions. Was told to copy & paste results here. See below:
margaret@
Traceback (most recent call last):
File "/usr/bin/
cache = apt.Cache()
File "/usr/lib/
self.
File "/usr/lib/
self._cache = apt_pkg.
SystemError: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/
margaret@
[sudo] password for margaret:
margaret@
margaret@
margaret@
margaret@
margaret@
margaret@
cat: /etc/apt/apt.conf: No such file or directory
margaret@
margaret@
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
margaret@
Linux margaret-Z62FM 3.2.0-56-
margaret@
margaret@
margaret@
margaret@
cp: target `/var/backips/
margaret@
margaret@
margaret@
margaret@
margaret@
margaret@
margaret@
margaret@
margaret@
Reading package lists... Error!
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
margaret@
Reading package lists... Error!
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
margaret@
Reading package lists... Error!
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
margaret@
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Ign http://
Get:16 http://
Ign http://
Get:17 http://
Ign http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Ign http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
Get:65 http://
Get:66 http://
Get:67 http://
Get:68 http://
Get:69 http://
Get:70 http://
Get:71 http://
Get:72 http://
Get:73 http://
Get:74 http://
Get:75 http://
Get:76 http://
Get:77 http://
Get:78 http://
Get:79 http://
Fetched 19.7 MB in 1min 16s (257 kB/s)
Reading package lists... Error!
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
margaret@
dpkg: error: failed to open package info file `/var/lib/
margaret@
margaret@
Reading package lists... Error!
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
margaret@
Reading package lists... Error!
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
margaret@
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Reading package lists... Error!
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
margaret@
/etc/apt/
1 deb http://
/etc/apt/
1 # deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 deb http://
6 deb-src http://
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://
11 deb-src http://
12
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
14 ## team. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16 deb http://
17 deb-src http://
18 deb http://
19 deb-src http://
20
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
22 ## team, and may not be under a free licence. Please satisfy yourself as to
23 ## your rights to use the software. Also, please note that software in
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
25 ## security team.
26 deb http://
27 deb-src http://
28 deb http://
29 deb-src http://
30
31 ## N.B. software from this repository may not have been tested as
32 ## extensively as that contained in the main release, although it includes
33 ## newer versions of some applications which may provide useful features.
34 ## Also, please note that software in backports WILL NOT receive any review
35 ## or updates from the Ubuntu security team.
36 deb http://
37 deb-src http://
38
39 deb http://
40 deb-src http://
41 deb http://
42 deb-src http://
43 deb http://
44 deb-src http://
45
46 ## Uncomment the following two lines to add software from Canonical's
47 ## 'partner' repository.
48 ## This software is not part of Ubuntu, but is offered by Canonical and the
49 ## respective vendors as a service to Ubuntu users.
50 # deb http://
51 # deb-src http://
52
53 ## This software is not part of Ubuntu, but is offered by third-party
54 ## developers who want to ship their latest software.
55 deb http://
56 deb-src http://
margaret@
Hope this helps to resolve the problem I still have. Cannot open Update Manager or Package Manager. This all occured after I updated last time ( a couple days ago or so. Most recent).
Margaret
Revision history for this message
|
#7 |
Just tried again Daniels commands at the beginning in the hopes it would do something. Results are:
margaret@
[sudo] password for margaret:
margaret@
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Ign http://
Get:20 http://
Get:21 http://
Ign http://
Get:22 http://
Get:23 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
Get:65 http://
Get:66 http://
Get:67 http://
Get:68 http://
Get:69 http://
Get:70 http://
Get:71 http://
Get:72 http://
Get:73 http://
Get:74 http://
Get:75 http://
Get:76 http://
Get:77 http://
Get:78 http://
Get:79 http://
Fetched 19.7 MB in 1min 16s (256 kB/s)
Reading package lists... Error!
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
margaret@
margaret@
What do I do now?
Revision history for this message
|
#8 |
This is still open and needing to be solved.
Revision history for this message
|
#9 |
Would downloading a new version of Ubuntu solve this problem?
Margaret
Revision history for this message
|
#10 |
It seems that there was a typo error in one of the commands, which has lead to the situation, that an important file of tha package management system is now missing.
To repair that please issue the following terminal command:
sudo cp /var/lib/
Then try again with
sudo dpkg --configure -a
sudo apt-get upgrade
and copy/paste all output into this question document as done before
Revision history for this message
|
#11 |
Hi Manfred,
Did as you suggested and this is the result:
margaret@
margaret@
margaret@
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
margaret@
I don't know what I should put at the prompt. Still have error symbol at top of screen.
Margaret
Revision history for this message
|
#12 |
Hi Manfred,
I just checked to see if I could use both the Package Manager and Update Manager. I CAN. Whoopie! The error symbol is also gone so this must of fixed the problem. Thank you very, very much. I also want to thank everyone who has tried to help me with this problem. At the moment the problem is solved, error symbol gone.
Margaret
Revision history for this message
|
#13 |
Thanks Manfred Hampl, that solved my question.