Thursday, September 21, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  1] [ 0]  / answers: 1 / hits: 3901  / 1 Year ago, wed, april 6, 2022, 9:20:38

Every time I try to install ANYTHING with apt-get,i get this error

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 have looked at many forums but none of them seem to have any answer.

Any help would be much appreciated at this time!

(everything must be done via command line, 13.04 server)

Tried Braiam's command, this was the output + command:

sudo sh -c "echo 'DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-pr
econfigure --apt || true";};' >> /etc/apt/apt.conf.d/70debconf"
[sudo] password for swech:
--apt: 1: --apt: Syntax error: Unterminated quoted string
-bash: true;};' >> /etc/apt/apt.conf.d/70debconf: No such file or directory

More From » apt


This means that you somehow screwed up your configuration scripts, the reason why 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"

Then try again.

[#28121] Thursday, April 7, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 298
Total Questions: 108
Total Answers: 106

Location: Bermuda
Member since Thu, Apr 20, 2023
6 Months ago