diff --git a/modoboa_installer/package.py b/modoboa_installer/package.py index 5354b359..a188cac0 100644 --- a/modoboa_installer/package.py +++ b/modoboa_installer/package.py @@ -57,12 +57,12 @@ def preconfigure(self, name, question, qtype, answer): def install(self, name): """Install a package.""" self.update() - utils.exec_cmd("apt-get -o Dpkg::Progress-Fancy=0 install --quiet --assume-yes {}".format(name)) + utils.exec_cmd("apt-get -o Dpkg::Progress-Fancy=0 install --quiet --assume-yes -o DPkg::options::=--force-confold {}".format(name)) def install_many(self, names): """Install many packages.""" self.update() - return utils.exec_cmd("apt-get -o Dpkg::Progress-Fancy=0 install --quiet --assume-yes {}".format( + return utils.exec_cmd("apt-get -o Dpkg::Progress-Fancy=0 install --quiet --assume-yes -o DPkg::options::=--force-confold {}".format( " ".join(names))) def get_installed_version(self, name):