PDA

View Full Version : [SOLVED] No upgrading and updating available 11.04



earendil02
May 5th, 2011, 08:45 AM
I've just installed Ubuntu 11.04 from a usb flash disk, and during the installation I couldn't connect to internet, but the first time I tryed to connect and update/upgrade the system or install software I got this error message:

Could not initialize the package information

An 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/it.archive.ubuntu.com_ubuntu_dists_natty_main_bina ry-i386_Packages, E:L'elenco dei pacchetti o il file di stato non puņ essere letto o aperto.'

can you help me please?

lechien73
May 5th, 2011, 09:53 AM
Hi and welcome to the forums :)

This could be happening because of corrupted list files. Try deleting them using:


sudo rm /var/lib/apt/lists/* -vf

Then try the update again.

earendil02
May 5th, 2011, 10:05 AM
Thank You veryveryveryveryveryveryvery much!!!!! :):):):) you saved me! :)
Now it works! :)
Can you explain what I did precisely please? I'm very curious... ;)

lechien73
May 5th, 2011, 10:24 AM
The /var/lib/apt/lists folder contains package list files used by the package manager. Obsolete list files are usually removed whenever you run apt-get update, but this folder can grow quite large and occasionally files in here can get corrupted. The command I gave you deleted all the files in the folder, which allowed the package manger to run correctly. Necessary files will be re-created.

Please could you use the "Thread Tools" menu at the top of this page and mark this thread as [SOLVED]?

Thanks

earendil02
May 5th, 2011, 01:25 PM
Thank you very much! Very clear, thank you again! :)

orangep
May 7th, 2011, 10:50 PM
yes,

sudo rm /var/lib/apt/lists/* -vf

This clears out the offending file.
Thank you. I was tearing my hair out, which is not a good idea at my age.