Cannot install Updates or anything

Asked by Raman

Hey i am unable to install automatic updates or install any app from add and remove.
the error i get is

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

I am totally new to linux. I dont know anything about it. So, please explain in detail so that i can understand.

Thanx.

Revision history for this message
Kevin (kevinrs91) said :
#1

try go to system --> Administration --> Synaptic Package Manager --> edit --> fix broken packages

Revision history for this message
Vojtěch Trefný (vojtech.trefny) said :
#2

Vojtěch Trefný suggests this article as an answer to your question:
FAQ #52: “Can't install new software and updates”.

Revision history for this message
Vojtěch Trefný (vojtech.trefny) said :
#3

Open Terminal (Applications→Accesories→Terminal) and type "sudo dpkg --configure -a" (without quotation marks).

Revision history for this message
Raman (raman-preet30) said :
#4

Thnx vojtech but it worked for the first time and from second time it is giving same problem. wen i try to run the same command it starts somthing else. And Synaptic Package Manager is also giving the same error.

Revision history for this message
Old_Soldier (charles.davis) said :
#5

sudo dpkg --configure -a
sudo apt-get install -f

Revision history for this message
Raman (raman-preet30) said :
#6

thnx ppl

Revision history for this message
shoshanna (mdwlndslinda) said :
#7

I've tried the sudo dpkg--congfigure-a and sudo apt-get install-f and I get the message command not found