Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 3970  / 2 Years 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

 Answers
7

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, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sigtestim

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

Location: Bermuda
Member since Thu, Apr 20, 2023
1 Year ago
;