Skip to content

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

@aamagda

Description

@aamagda

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions