Skip to content

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