Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/apparmor.d/abstractions/lxc/container-base issue #2

Closed
steenzout opened this issue May 31, 2016 · 7 comments
Closed

/etc/apparmor.d/abstractions/lxc/container-base issue #2

steenzout opened this issue May 31, 2016 · 7 comments

Comments

@steenzout
Copy link
Contributor

I was testing your repo on travis-ci and the build job got stuck at this point:

Installing new version of config file /etc/bash_completion.d/lxc ...
Configuration file '/etc/apparmor.d/abstractions/lxc/container-base'
 ==> Deleted (by you or by a script) since installation.
 ==> 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.
*** container-base (Y/I/N/O/D/Z) [default=N] ? 

example: https://travis-ci.org/saucelabs-ansible/packer/jobs/134279269

any ideas?

@steenzout
Copy link
Contributor Author

I'm testing a PR and I'll send a patch if I manage to get this fixed.

@zuazo zuazo added the bug label May 31, 2016
@zuazo
Copy link
Owner

zuazo commented Jun 1, 2016

@steenzout thanks for the report!

I would try adding -o Dpkg::Options::=--force-confnew to the apt-get install lxc.

Maybe we should pass that argument to all the _apt-get install_s.

@steenzout
Copy link
Contributor Author

steenzout commented Jun 1, 2016

I did that and worked.
I'll post PR tomorrow.

@steenzout
Copy link
Contributor Author

@zuazo I noticed that travis-ci now provides a docker service so I'm wondering if you still need the docker_start.sh file.

@zuazo
Copy link
Owner

zuazo commented Jun 1, 2016

No, you don't. See here: https://github.com/zuazo/kitchen-in-travis-native

@typekpb
Copy link

typekpb commented Jun 7, 2016

@zuazo thanks a lot for idea with: -o Dpkg::Options::=--force-confnew, it works also seamlessly for me once used with apt-get upgrade -yy as well as with apt-get dist-upgrade -yy

@zuazo
Copy link
Owner

zuazo commented Jun 7, 2016

You are welcome, @typekpb 😉

You can use dpkg --force-help to see some of those configuration options documentation:

[...]
  [!] confnew            Always use the new config files, don't prompt
  [!] confold            Always use the old config files, don't prompt
  [!] confdef            Use the default option for new config files if one
                         is available, don't prompt. If no default can be found,
                         you will be prompted unless one of the confold or
                         confnew options is also given
  [!] confmiss           Always install missing config files
  [!] confask            Offer to replace config files with no new versions
[...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants