Error massage display when i try to update ubuntu

Asked by Madara Missaka Alwis

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

this massage display when i try to update.I'm a absolute beginner to ubuntu.please help me.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

The "dpkg --configure -a" is asked by the system when a previous update/upgrade process have not completely performed good, and it must run with "root" privileged administrative user.
Using the "sudo" command we can do a command as "root" user, and "dpkg --configure -a" need be run from root user.
After the "dpkg --configure -a" command i add all the usual commands (see below) you can run to be sure your system became fully upgraded.

Typing the commands as sudo the system will ask you for a password, please give your user password when requested, you don't see nothing when you type it, then press enter.

So please be sure your system is fully updated/upgraded with no pending packages or errors:

Open a Terminal from the menu Applications → Accessories → Terminal and type:
(when the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

Hope this helps

Revision history for this message
Fabián Rodríguez (magicfab) said :
#2

Technically sudo runs the command under your user with adminisrative privileges, however it doesn't use the root account (which is disabled in Ubuntu). You're asked your regular user password because your user is part of the "sudoers" which can issue such commands.

Before applying all commands blindly, check carefully for any questions asked, come back here with any questions if unsure.

Can you help with this problem?

Provide an answer of your own, or ask Madara Missaka Alwis for more information if necessary.

To post a message you must log in.