Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I get this error when I use apt-get upgrade & apt-get autoremove and on every apt-get [Something].. and when I try to install applications too:

Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
share|improve this question
Solved by executing this command: sudo dpkg-reconfigure -phigh -a Thank you. – R9TySix Feb 15 '12 at 18:09

7 Answers 7

Simple and working i tried it !!

sudo -s
cd /var/cache/debconf
rm *.dat
apt-get update && apt-get upgrade

Enjoy ;)

share|improve this answer
I think this might lead to issues as it contains various config files. – Pravesh Jain Feb 23 at 13:13
instead of rm *.dat I think you should go for mkdir tmp mv *.dat tmp – Stanislav Sep 4 at 14:51

No solution mentioned in the answers worked for me and I tried a solution mentioned here by executing the following command

sudo dpkg -i --force-all [deb file path]

and that worked.

share|improve this answer
What is [deb file path] ? – GreenAsJade Mar 27 '14 at 0:04
That is the path of .deb file – Ravindra Gullapalli Mar 27 '14 at 9:56
Thanks for replying, and sorry for my ignorance. I had this problem, and I don't know what .deb file you are referring to (I solved the problem using the "delete *.dat" file approach below, but I didn't like that much (like, whoa, this seems hacky) – GreenAsJade Mar 27 '14 at 10:13
I strongly will not recommend to use the --force key unless a user fully understands what he is doing. Such options exist only for situations where the user knows that the error will not lead to any serious problems, one must not use it carelessly – user907860 Jan 8 at 10:34

community wiki answer - solved by OP

This problem was resolved by running the following terminal command:

sudo dpkg-reconfigure -phigh -a
share|improve this answer

You have to run those commands with sudo preceding them so they can be executed with super user credentials Example:

sudo apt-get autoremove "NAME OF PACKAGE HERE"
share|improve this answer
i run sudo -s when i first start terminal. – R9TySix Feb 15 '12 at 18:01
sudo dpkg-reconfigure -phigh -a this solved the problem Thanks – R9TySix Feb 15 '12 at 18:10

If you have deleted /var/cache in a misguided attempt to clean up (like I did), this might fix the issue (it did for me):

sudo mkdir /var/cache/debconf
share|improve this answer

The following worked for me too:

sudo mkdir /var/cache/debconf

I had a cleaning script running like the following:

sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
cd /var/cache
rm -R *
cd /root/.cache
rm -R *
share|improve this answer
This is idiotic, will break everything and should be removed. – Reinis I. Sep 29 at 19:29

You may also want to know that you can use dpkg --audit to see what the actual problem is.

If the output is something like:

The following packages are in a mess due to serious problems during installation. They must be reinstalled for them (and any packages that depend on them) to function properly: gcdemu A GNOME panel applet to control CDEmu daemon

The following packages have been unpacked but not yet configured. They must be configured using dpkg --configure or the configure menu option in dselect for them to work: cdemu-daemon CDEmu daemon cdemu-client A simple command-line client to control CDEmu daemon

The following packages are only half configured, probably due to problems configuring them the first time. The configuration should be retried using dpkg --configure or the configure menu option in dselect: transmission-daemon lightweight BitTorrent client (daemon) vhba-dkms VHBA virtual host bus adapter module

You could run the command: dpkg --configure <packagename>

 dpkg --configure cdemu-daemon

In order to

Reconfigure an unpacked package. If -a or --pending is given instead of package, all unpacked but unconfigured packages are configured.

Furthermore you could use:

sudo apt-get -f install
sudo apt-get --reinstall install gcdemu

To fix the packages that are in a mess.

Examples from here:

share|improve this answer
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. – Fabby Sep 5 at 8:03
Agreed, however identifying the problem is part of the solution. I have updated my answer with an example. – First Name Sep 5 at 16:21
Much better! upvoted! – Fabby Sep 6 at 7:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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