"dpkg --configure -a" command brings up " requested operation requires superuser privilege"

Asked by upwinger

Hi..
 when trying to install a package to download first mp3 from Amazon.com, I received a message saying only one software managing program is allowed to run at one time, close synaptic etc...

so I went into synaptic package manager under system administrator and got this message:

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

So, I go into Apps, accesories, terminal and enter 'dpkg --configure -a' and get: ' requested operation requires superuser privilege'

What now??

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-panel Edit question
Assignee:
No assignee Edit question
Solved by:
Vojtěch Trefný
Solved:
Last query:
Last reply:
Revision history for this message
arochester (arochester) said :
#1

Put sudo at the front - sudo dpkg --configure -a

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

You have to use 'sudo' to get root privilegies, so the command is "sudo dpkg --configure -a" (without quotation marks).

More about root and sudo in Ubuntu -- https://help.ubuntu.com/community/RootSudo

Revision history for this message
upwinger (upwinging) said :
#3

ok...when I do that I get:

[sudo] password for stevo: with a blinking cursor...

when I type my password, the cursor does not move, then I get:

Sorry, try again.

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

"when I type my password, the cursor does not move"

That's normal behaviour, just type your password and hit Enter.

Revision history for this message
upwinger (upwinging) said :
#5

OK! Thank you. Now these messages appear! Im hoping this completes the correction to the error...but Im not certain. Can you help me if there are any further commands to enter?

Setting up java-common (0.28ubuntu3) ...

Setting up odbcinst1debian1 (2.2.11-16build1) ...

Setting up unixodbc (2.2.11-16build1) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean all

give your user password when requested, you don't see nothing when you type it, then press enter.

Revision history for this message
upwinger (upwinging) said :
#7

Thankyou all!

Revision history for this message
upwinger (upwinging) said :
#8

Thanks Vojtěch Trefný, that solved my question.