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

apt-get/dpkg interruption checker #29

Open
ArchangelSDY opened this issue Apr 28, 2022 · 2 comments
Open

apt-get/dpkg interruption checker #29

ArchangelSDY opened this issue Apr 28, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@ArchangelSDY
Copy link
Contributor

Background

Ubuntu ships with a tool called unattended-upgrade which periodically installs security patches. However, we've observed some cases where auto-upgrade can stop on some machines. One of the reason is that last upgrade was aborted, leaving dpkg in an intermediate state. It requires human interaction to fix such state.

Design

  • Check dpkg locks to see if it's held for too long.
  • Check apt-get/dpkg logs for last failure details.
@ArchangelSDY ArchangelSDY added the enhancement New feature or request label Apr 28, 2022
@ArchangelSDY
Copy link
Contributor Author

ArchangelSDY commented Aug 19, 2022

Common fix:

apt-get install -f

@ArchangelSDY
Copy link
Contributor Author

  1. Detect lock
  2. Extract last failure logs
  3. Suggest common fixes

Debian only.

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

No branches or pull requests

1 participant