Someone was working with my desktop and now i cant install anything via terminal.

I used

apt-get install s.th  

and it responds

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.    

im also using ubuntu 14.04 lts.

  • 2
    Open a terminal and run 'sudo dpkg --configure -a' – kyodake Nov 8 '15 at 15:17
  • and your 1st command is missing "sudo" too – Rinzwind Nov 8 '15 at 15:24

It says what to do in the respond, run dpkg --configure -a

sudo dpkg --configure -a

There are several problems within the command that you are trying to invoke:


First of all, you must be sure to have root privileges to install new packages with apt-get install. For this reason you invoke the command with the sudo command:

sudo apt-get install s.th

You can find further detail on root and sudo command on the Ubuntu official Wiki

Do what pkgs ask you

May I suggest you to follow suggestions from dpkg? From the output you posted you can see that dpkg request to execute the command:

sudo dpkg --configure -a

This will purge all the pending packages, and it will restore your system to a clean situation.

After that command I suggest to run even

sudo apt-get update && sudo apt-get upgrade

To force a system update.

Apt-get regexp

From your command I can see that you are trying to setup the package s.th. Please that in consideration that s.th is interpreted by apt-get as a regular expression, and will setup all the packages that match that regexp.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.