“等待* || 是的,但它并不存在“每次我运行apt
每次我尝试使用apt-get
安装ANYTHING时,都会收到此错误
E: Waited for /usr/sbin/dpkg-preconfigure --apt || true but it wasn't there E: Failure running script /usr/sbin/dpkg-preconfigure --apt || true
我看了很多论坛,但似乎没有任何答案。
任何帮助将在这个时候非常感谢!
(一切都必须通过命令行,13.04服务器完成)
试过Braiam的命令,这是输出+命令:
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
这意味着你以某种方式搞砸了配置脚本,之所以发生这种情况,是因为DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
您的脚本中不存在,因此您可能需要创建它:
sudo sh -c "echo 'DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};' >> /etc/apt/apt.conf.d/70debconf"
然后再试一次。
尝试-
sudo apt-get update && sudo apt-get -f install
然后看看是否有错误提示。