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

Fail and retry on "Some index files failed to download" #130

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

nobuto-m
Copy link
Contributor

In scripting apt operations, adding --error-on=any to apt-get update is necessary to capture erros like "Some index files failed to download". Otherwise, charms move onto package installations with a stale index.

equivalent to: juju/charm-helpers#911
ref: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1693900

In scripting apt operations, adding `--error-on=any` to `apt-get update`
is necessary to capture erros like "Some index files failed to
download". Otherwise, charms move onto package installations with a
stale index.

equivalent to: juju/charm-helpers#911
ref: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1693900
Copy link
Collaborator

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable to me, thanks. Can you also please update the LIBPATCH version in apt.py?

@benhoyt benhoyt merged commit 30ea2e7 into canonical:main Aug 21, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants