ruby / setup-ruby-pkgs

Cross platform action for Ruby CI
MIT License
13 stars 6 forks source link

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

Open aamagda opened 5 months ago

aamagda commented 5 months ago

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 commented 5 months ago

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...