Skip to content

Wait for dpgk lock to be released #416

Open
@AndreiBarbuOz

Description

@AndreiBarbuOz

We get frequent errors when running the installation script in the context of build agents hosted on Azure DevOps

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5322 (apt)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
##[error]Bash exited with code '100'.
##[warning]RetryHelper encountered task failure, will retry (attempt #: 1 out of 3) after 1000 ms

apt-get supports adding a new parameter to wait for the lock to be released

apt-get update -o DPkg::Lock::Timeout=600 -qq

which would reduce the number of failures

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions