Could not initialize the package information

Asked by Thomas

I am running ubuntu 9.04 for some days but now a red mark appears in my task bar. The following error is shown when I click the red mark or try apt-get check in a terminal window:

Could not initialize the package information

A unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists de.archive.ubuntu.com_ubuntu_dists_jaunty_universe_binary-i386_Packages
E: Package list or status file could not be read or opened

Thanks for your help
Regards
Thomas

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Did you try:
sudo dpkg --configure -a

Please check if your sources.list is 'clean'.
http://wiki.ubuntuusers.de/sources.list
http://wiki.ubuntuusers.de/apt-get

Revision history for this message
Thomas (thomas-familiezimmermann) said :
#2

Hi Sam,

- I tried sudo dpkg --configure -a with no positive result. The error remains.
- The sources.list should be clean:
  deb http://de.archive.ubuntu.com/ubuntu/ jaunty main restricted
  deb http://de.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
  deb http://de.archive.ubuntu.com/ubuntu/ jaunty universe
  deb http://de.archive.ubuntu.com/ubuntu/ jaunty-updates universe
  deb http://de.archive.ubuntu.com/ubuntu/ jaunty multiverse
  deb http://archive.canonical.com/ubuntu jaunty partner
  deb-src http://archive.canonical.com/ubuntu jaunty partner
  deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
  deb http://security.ubuntu.com/ubuntu jaunty-security universe
  deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
  deb http://download.virtualbox.org/virtualbox/debian jaunty non-free
- I also checked the above mentioned links. But I still have no idea.

Regards
Thomas

Revision history for this message
Sam_ (and-sam) said :
#3

Ok,
this will remove the lists, repair and update:

sudo rm -rf /var/lib/apt/lists/*
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install

##If this error occurs (usually the lists should be created automatically):
E:Lists directory /var/lib/apt/lists/partial is missing"

you need to create the lists manually:
sudo mkdir -p /var/lib/apt/lists/partial

Cleanup:
sudo apt-get autoremove && sudo apt-get clean && sudo apt-get autoclean

Revision history for this message
Fethi DILMI (addictcook) said :
#4

This problem is normal , have you signed the Virtual Box you have added lately by a GPG key. I see you didn't so go back to the tutorial where you have read how to add the VirtualBox and download the GPG key. If you don't remember where I'll give the easiest solution for that.

1- Remove The current Virtual Box from the software source list. when closing that window , click on reload on the shown message.

2- Download ubuntu tweak from here.
http://ubuntu-tweak.googlecode.com/files/ubuntu-tweak_0.4.7.1-1%7Ejaunty1_all.deb

Double clock on the downloaded deb file. and click then on Install This package. It may download some files.

3- Open it from Applications->System Tools-> ubuntu tweak.
Click in that window on Applications then Third Party Ressource and click Unlock , Type your password. And then From that list check Virtual Box and click refresh .

Now You haven't lost anything , and you have corrected the problem ; Now you can make the update safely without any error.

The lesson you must get from this problem ; is that any software source you add must identify it by a GPG key , otherwise the system will consider it as unsafe. and you find always the gpg key in the website where you are reading how to add the key.

Good luck

Can you help with this problem?

Provide an answer of your own, or ask Thomas for more information if necessary.

To post a message you must log in.