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

Wait for dpgk lock to be released #416

Open
AndreiBarbuOz opened this issue May 24, 2024 · 0 comments
Open

Wait for dpgk lock to be released #416

AndreiBarbuOz opened this issue May 24, 2024 · 0 comments

Comments

@AndreiBarbuOz
Copy link

We get frequent errors when running the installation script in the context of build agents hosted on Azure DevOps

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5322 (apt)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
##[error]Bash exited with code '100'.
##[warning]RetryHelper encountered task failure, will retry (attempt #: 1 out of 3) after 1000 ms

apt-get supports adding a new parameter to wait for the lock to be released

apt-get update -o DPkg::Lock::Timeout=600 -qq

which would reduce the number of failures

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

1 participant