Skip to content

Wait for DPkg frontend lock when trying to remove packages #145815

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jieyouxu
Copy link
Member

Hopefully this helps with #t-infra > pr-check-1 fails on "free up disk space".

As suggested by riking in #t-infra > pr-check-1 fails on "free up disk space" @ 💬, thanks!

r? infra-ci

@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Aug 24, 2025
@@ -221,10 +221,13 @@ cleanPackages() {
)
fi

sudo apt-get -qq remove -y --fix-missing "${packages[@]}"
sudo apt-get -o DPkg::Lock::Timeout=60 -qq remove -y --fix-missing "${packages[@]}" \
|| echo "::warning::The command [sudo apt-get remove -y] failed"
Copy link
Member Author

@jieyouxu jieyouxu Aug 24, 2025

Choose a reason for hiding this comment

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

Remark: added an echo to make it more obvious which line the script failed on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants