Cannot install any software

Asked by Joero

Whenever I try to install any software from Synaptic, Add/Remove, or the Sudo command, I always get this message:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

I ran "dpkg --configure -a" and it gave me this error:
dpkg: requested operation requires superuser privilege

I have two questions:
  How may I get these superuser privileges?
  How may I get these errors to stop?

Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Elfy
Solved:
Last query:
Last reply:
Revision history for this message
Best Elfy (elfy) said :
#1

To get superuser privilege use sudo

sudo dpkg --configure -a

Revision history for this message
Nick Ellery (nick.ellery) said :
#2

to answer question 2, simply enter the above (sudo dpkg --configure -a) into a terminal, and they will be gone.

Revision history for this message
Joero (joerois404d) said :
#3

Thanks forestpixie, that solved my question.