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

[apt-get] Could not get lock /var/lib/apt/lists/lock #44

Open
aamagda opened this issue Apr 26, 2024 · 1 comment
Open

[apt-get] Could not get lock /var/lib/apt/lists/lock #44

aamagda opened this issue Apr 26, 2024 · 1 comment

Comments

@aamagda
Copy link

aamagda commented Apr 26, 2024

Error occured when several self-hosted runners on the same machine executes in parallel.

—————————————————— Package tasks using: ruby/setup-ruby-pkgs 1.33.2
apt-get update
apt-get update
  sudo apt-get -o Acquire::Retries=3 -qy update
  Reading package lists...
  E: Could not get lock /var/lib/apt/lists/lock. It is held by process 497290 (apt-get)
  E: Unable to lock directory /var/lib/apt/lists/
  Error: Command failed: sudo apt-get -o Acquire::Retries=3 -qy update

Is it possible to add action's input param like apt-get-retry-count or retry-count to allow custom configuration of retries count?

@MSP-Greg
Copy link
Collaborator

I'll have a look this weekend.

several self-hosted runners on the same machine executes in parallel.

Aren't they in VM's? Just wondering why the lock...

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

2 participants