Ошибка при запуске sudo apt-get -f install

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

Я знаю, что этот вопрос задавался ранее, но полученный ответ возвращает ошибку. Ubuntu версия 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
0
задан 2 February 2014 в 22:44

1 ответ

Используйте

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

вместо

sudo sh -c "echo 'DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-pr econfigure --apt || true";};' >> /etc/apt/apt.conf.d/70debconf" 
0
ответ дан 2 February 2014 в 22:44

Другие вопросы по тегам:

Похожие вопросы: