Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
E: Waited for /usr/sbin/dpkg-preconfigure --apt || true but it wasn't there
E: Failure running script /usr/sbin/dpkg-preconfigure --apt || true 

I know this question has been asked before but the answer given returns an error. Ubuntu version 10.04.3

$ sudo sh -c "echo 'DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-pr econfigure --apt || true";};' >> /etc/apt/apt.conf.d/70debconf" 
econfigure: 1: Syntax error: Unterminated quoted string
sh: true;};' >> /etc/apt/apt.conf.d/70debconf: not found
share|improve this question
possible duplicate of Package system is broken. How to fix it? – Kaobear Jan 23 '14 at 18:49
@Kaobear: No, this question isn't about a broken package system. – Florian Diesch Jan 23 '14 at 18:59


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

instead of

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

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.