{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7040","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7040/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7040/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7040/events","html_url":"https://github.com/travis-ci/travis-ci/issues/7040","id":195950204,"number":7040,"title":"Non-sudo apt addon fails when install asks question","user":{"login":"jcoffland","id":1166284,"avatar_url":"https://avatars.githubusercontent.com/u/1166284?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoffland","html_url":"https://github.com/jcoffland","followers_url":"https://api.github.com/users/jcoffland/followers","following_url":"https://api.github.com/users/jcoffland/following{/other_user}","gists_url":"https://api.github.com/users/jcoffland/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoffland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoffland/subscriptions","organizations_url":"https://api.github.com/users/jcoffland/orgs","repos_url":"https://api.github.com/users/jcoffland/repos","events_url":"https://api.github.com/users/jcoffland/events{/privacy}","received_events_url":"https://api.github.com/users/jcoffland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-16T00:11:09Z","updated_at":"2016-12-16T00:29:42Z","closed_at":null,"body":"My build [here](https://travis-ci.org/CauldronDevelopmentLLC/cbang/jobs/184405349) recently stopped working because the apt addon is not handling interactive configuration questions:\r\n\r\n```\r\nConfiguration file `/etc/mysql/my.cnf'\r\n ==> Modified (by you or by a script) since installation.\r\n ==> Package distributor has shipped an updated version.\r\n   What would you like to do about it ?  Your options are:\r\n    Y or I  : install the package maintainer's version\r\n    N or O  : keep your currently-installed version\r\n      D     : show the differences between the versions\r\n      Z     : start a shell to examine the situation\r\n The default action is to keep your current version.\r\n*** my.cnf (Y/I/N/O/D/Z) [default=N] ? \r\n```\r\nThis happens despite these lines in the log output:\r\n\r\n```\r\nInstalling APT Packages (BETA)\r\n$ export DEBIAN_FRONTEND=noninteractive\r\n5.22s$ sudo -E apt-get -yq update &>> ~/apt-get-update.log\r\n$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install scons libbz2-dev zlib1g-dev libexpat1-dev libssl-dev libboost-iostreams-dev libboost-system-dev libboost-filesystem-dev libboost-regex-dev libsqlite3-dev libv8-dev binutils-dev libmariadbclient-dev\r\n```\r\n\r\nNote that ``DEBIAN_FRONTEND=noninteractive`` and ``-y`` is being passed to ``apt-get``.\r\n\r\n[This stackoverflow post](http://stackoverflow.com/questions/22957939/how-to-answer-an-apt-get-configuration-change-prompt-on-travis-ci-in-this-case) suggests adding ``-o Dpkg::Options::=\"--force-confnew\"`` to the ``apt-get`` command line.\r\n"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/267485335","html_url":"https://github.com/travis-ci/travis-ci/issues/7040#issuecomment-267485335","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7040","id":267485335,"user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars.githubusercontent.com/u/25666?v=3","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T00:29:42Z","updated_at":"2016-12-16T00:29:42Z","body":"With no special arguments, yes."}}
{"actor":{"display_login":"BanzaiMan"}}