COULD NOT INITIALIZE PACKAGE INFORMATION

Asked by ramesh

A red mark appears in my task bar and i am unable to install or remove anything.I am also unable to login to recovery mode.Please help !The following error is shown when i click red mark.

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:Could not open file /var/lib/dpkg/status - open (2 No such file or directory), E:The package lists or status file could not be parsed or opened.'

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Juha Siltala
Solved:
Last query:
Last reply:
Revision history for this message
Best Juha Siltala (topyli) said :
#1

I would try replacing the status fiile with status-old. dpkg must have been working when it was created. :)

sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-b0rken
sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status

Revision history for this message
ramesh (rameshiit19) said :
#2

A red mark appears in my status bar and when i click it the following error is diplayed.Plz help me!!!

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:Could not open file /var/lib/dpkg/status - open (2 No such file or directory), E:The package lists or status file could not be parsed or opened.'

I am unable to install or remove any apllications.

Revision history for this message
Juha Siltala (topyli) said :
#3

Did you try the above? It should let you do "apt-get update" then.

Does the file /var/lib/dpkg/status exist in the first place?

Revision history for this message
ramesh (rameshiit19) said :
#4

I tried
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-b0rken
sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status

ramesh@Ramesh:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-b0rken
mv: cannot stat `/var/lib/dpkg/status': No such file or directory
ramesh@Ramesh:~$ sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status
mv: cannot stat `/var/lib/dpkg/status-old': No such file or directory
ramesh@Ramesh:~$

Revision history for this message
Juha Siltala (topyli) said :
#5

Okay, no status file exists, renaming it won't help. We can forget my hunch on this problem then.

In other words, i don't know :-(

Revision history for this message
bhuvi (bhuvanesh) said :
#6

please mark this question as solved if your problem is solved

Revision history for this message
ramesh (rameshiit19) said :
#7

Thanks Juha Siltala, that solved my question.