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

autoclean and autoremove fail when they conffiles change. #8

Open
rob42 opened this issue Sep 8, 2016 · 2 comments
Open

autoclean and autoremove fail when they conffiles change. #8

rob42 opened this issue Sep 8, 2016 · 2 comments

Comments

@rob42
Copy link

rob42 commented Sep 8, 2016

When conffiles are not default then these commands cause

"Configuration file '/etc/sudoers'",
 " ==> Modified (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.",
 "*** sudoers (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package sudo (--configure):",
 " end of file on stdin at conffile prompt",

and subsequently fail.

Shell command should change from
apt-get -y autoremove
to apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" autoremove, same for autoclean. This makes the action completely avoid the confirmation menu.

@rob42
Copy link
Author

rob42 commented Sep 11, 2016

oops
apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" autoremove

@ahelal
Copy link
Contributor

ahelal commented Sep 12, 2016

@rob42 This repo is not maintained. any more. if you want you can open a new issue https://github.com/AutomationWithAnsible/ansible-apt

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

2 participants