title: How to answer an apt-get configuration change prompt on Travis-CI, in this case for couchdb 1.5.0
body: <p>I am trying run a specific version of <code>couchdb</code> on <code>travis-ci</code> I do this by following the offical <code>apt-get</code> instructions from <code>couchdb</code></p>
  
  <p>Part of the installation is a prompt for what to do with an old configuration file. See the following:</p>
  
  <pre><code>  Installing new version of config file /etc/logrotate.d/couchdb ...
    Configuration file `/etc/couchdb/local.ini'
     ==&gt; Deleted (by you or by a script) since installation.
     ==&gt; Package distributor has shipped an updated version.
       What would you like to do about it ?  Your options are:
        Y or I  : install the package maintainer's version
        N or O  : keep your currently-installed version
          D     : show the differences between the versions
          Z     : start a shell to examine the situation
     The default action is to keep your current version.
    *** local.ini (Y/I/N/O/D/Z) [default=N] ? 
  </code></pre>
  
  <p>This causes <code>travis-ci</code> to hang and the build to fail.</p>
  
  <p>Here is the <code>travis-ci</code> i have tried with and without the <code>sudo rm</code> and a handful of otherthings.</p>
  
  <pre><code> language: python
  
   php:
     - 2.7
  
   install: "pip install -r requirements.txt"
  
   before_install:
     - "export DISPLAY=:99.0"
     - "sh -e /etc/init.d/xvfb start"
     - sudo apt-get install python-software-properties -y
     - sudo add-apt-repository ppa:couchdb/stable -y
     - sudo apt-get update -yq
     - sudo apt-get remove couchdb couchdb-bin couchdb-common -yf
     - sudo rm /etc/couchdb/local.ini
     - sudo apt-get install -Vy couchdb
     - sudo service couchdb start
  
   before_script:
     - curl -X PUT localhost:5984/njb_tests
  
   script: python run-tests.py
  </code></pre>
  
  <p>You can see the different things i have tried by looking at my commit history:</p>
  
  <p><a href="https://github.com/Victory/notice-javascript-bugs/commits/master/.travis.yml">https://github.com/Victory/notice-javascript-bugs/commits/master/.travis.yml</a></p>