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

disable by default and deprecate dpkg "options" parameter #191

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

anarcat
Copy link
Contributor

@anarcat anarcat commented Aug 18, 2021

unattended-upgrades does not need special configuration to dpkg
for proper operation. It handles those itself. All that parameter does
is changes the dpkg configuration for other dpkg runs.

This will, for example, affect major upgrades, typically done by hand,
and not unattended-upgrades, which was not designed for that
purpose. In those cases, unsuspecting users will see their old
configuration file versions silently kept in place, which most
definitely will break things on upgrade, rather noisily in the end.

People unfamiliar with this mechanism will have a hard time figuring
out what has happened, and while recovery is possible, it is tricky
without special tooling. I wrote such a tool here:

https://gitlab.com/anarcat/koumbit-scripts/-/blob/master/vps/clean_conflicts

... but it not well known and definitely not shipped with Debian by
default.

While it is nice that the unattended-upgrades module allows users to
change dpkg options, this can be more easily (and directly) done with
the apt::conf parameter in the first place.

This also marks the feature as deprecated. Once a proper deprecation
delay has passed, the code can be removed (with, for example, PR #190).

Replaces #190 for now.

@anarcat anarcat mentioned this pull request Aug 18, 2021
@kenyon
Copy link
Member

kenyon commented Aug 18, 2021

Looks like the tests need to be updated as well.

@anarcat
Copy link
Contributor Author

anarcat commented Aug 19, 2021

Looks like the tests need to be updated as well.

of course, will quickfix now

unattended-upgrades does *not* need special configuration to `dpkg`
for proper operation. It handles those itself. All that parameter does
is changes the `dpkg` configuration for *other* `dpkg` runs.

This will, for example, affect major upgrades, typically done by hand,
and not unattended-upgrades, which was *not* designed for that
purpose. In those cases, unsuspecting users will see their old
configuration file versions silently kept in place, which most
definitely *will* break things on upgrade, rather noisily in the end.

People unfamiliar with this mechanism will have a hard time figuring
out what has happened, and while recovery is possible, it is tricky
without special tooling. I wrote such a tool here:

https://gitlab.com/anarcat/koumbit-scripts/-/blob/master/vps/clean_conflicts

... but it not well known and definitely not shipped with Debian by
default.

While it is nice that the unattended-upgrades module allows users to
change dpkg options, this can be more easily (and directly) done with
the `apt::conf` parameter in the first place.

This also marks the feature as deprecated. Once a proper deprecation
delay has passed, the code can be removed (with, for example, PR voxpupuli#190).
@bastelfreak bastelfreak added the bug Something isn't working label Aug 19, 2021
@bastelfreak bastelfreak merged commit f8fd677 into voxpupuli:master Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants