This question already has an answer here:

I have run into an error with apt that seems to occur every time I update. The error outputs every time I try to install something via apt. Here is the output;

E: Waited for /usr/sbin/dpkg-preconfigure --apt || true but it wasn't there     
E: Failure running script /usr/sbin/dpkg-preconfigure --apt || true

running version 12.04.3

marked as duplicate by RolandiXor Dec 13 '13 at 4:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


This means that you somehow screwed up your configuration scripts, the reason why this is happening is because DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";}; doesn't exist in your scripts so you may have to create it:

sudo sh -c "echo 'DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt ||       true";};' >> /etc/apt/apt.conf.d/70debconf"

Now retry your install.

thanks to Braiam for this answer

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