Wait for dpgk lock to be released
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- shell
- Domain
- devops, operating-systems
Research direction
Inspect the installation script for its apt-get update invocation and compare it with the lock-timeout form shown in the issue. Run the script in an Azure DevOps build-agent context, or otherwise exercise the package-install path while apt holds the dpkg lock; done means the script waits for the lock instead of failing with exit code 100.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Shell
- Stars
- 3.2k
- Forks
- 863
- Avg merge
- 3h 15m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/docker-install
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
docker/docker-install#575 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
docker/docker-install#559 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
docker/docker-install#554 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
docker/docker-install#548 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
docker/docker-install#540 ·
All issues in docker/docker-install
Similar issues
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
oSoWoSo/vOid_Community_repOsitory#203 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] v-quick-install-app install crashes with ValueError if no supported PHP version is installedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
alunduil/alunduil-chezmoi#809 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
catppuccin/kde#152 ·