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

Add fixed time lock timeout for apt-get command #431

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

Conversation

oreze
Copy link

@oreze oreze commented Jul 8, 2024

- What I did
Added a new argument to apt-get to avoid locks - I came across one on a Proxmox VM when trying to install docker from a script.

Fixes #366 #416

- How I did it
I added the argument -o DPkg::Lock::Timeout=60 to apt-get occurrences, this should be enough to acquire the lock.

- How to verify it
Run apt-get update and the get-docker script in a second tab. It should wait for 60 seconds to get the lock.

- Description for the changelog
Added -o DPkg::Lock::Timeout=60 argument to apt-get occurrences to wait for the lock to be released instead of failing immediately

- A picture of a cute animal (not mandatory but encouraged)
My cat (her name is Ruby)
ruby

Signed-off-by: Szymon Jędrych <22376195+oreze@users.noreply.github.com>
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.

Ubuntu 20.04 apt-get update fails - cannot get apt lists lock
1 participant