Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I did a update-manager -d and since it is asking if i should replace or leave several files like for example the mysql conf file. Do I have an option to tell it to upgrade everything no questions asked. Something like a silent install or to have everything automatic.

share|improve this question
up vote 2 down vote accepted

The following might help you :

edit/create /etc/dpkg/dpkg.cfg.d/force-confnew

sudo vim /etc/dpkg/dpkg.cfg.d/force-confnew

and add the following :


It'll say to dpkg to always put the package maintainer version of the file.

Delete the file when your upgrade is finished.

update-manager will still ask you the basic questions but it'll not ask you about if you agree to change this or that file.

Dpkg may still have questions but it is better for you to not disable it. If you still want dpkg to be quiet replace force-confnew by force-all

WARNING 1 : This is a dangerous option. It'll delete any modifications you made on the files that are changed. And with this option you'll not be aware witch file is changed.

WARNING 2 : As 12.04 is still in development the packages that are installed can have bugs. This include trouble in the installation/upgrade process. It may break your system.

Best regards,

share|improve this answer

Apt-get allows the -y option to automatically answer "yes" to questions such as those. I believe the correct command would be

# apt-get dist-upgrade -y
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.