Skip to content

Could not get lock /var/lib/dpkg/lock #114

@mauriziod

Description

@mauriziod

Seems like following step or the one before is leaving the dpkg lock file behind.

amazon-ebs: TASK [ansiblebit.oracle-java : debian | ensure the apt repository key is present] ***
    amazon-ebs: changed: [127.0.0.1]
    amazon-ebs:
    amazon-ebs: TASK [ansiblebit.oracle-java : debian | ensure the apt repository is present] ***
    amazon-ebs: changed: [127.0.0.1]
    amazon-ebs:
    amazon-ebs: TASK [ansiblebit.oracle-java : debian | set license as accepted] ***************
    amazon-ebs: changed: [127.0.0.1]
    amazon-ebs:
    amazon-ebs: TASK [ansiblebit.oracle-java : debian | ensure Java is installed] **************
    amazon-ebs: fatal: [127.0.0.1]: FAILED! => {"cache_update_time": 1556186475, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'oracle-java11-installer'' failed: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)\nE: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?\n", "rc": 100, "stderr": "E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)\nE: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?\n", "stderr_lines": ["E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)", "E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?"], "stdout": "", "stdout_lines": []}�[0m
    amazon-ebs: 	to retry, use: --limit @/tmp/packer-provisioner-ansible-local/5cc18532-7700-4008-eea8-f90ee8a93274/microservice-scala.retry
    amazon-ebs:
    amazon-ebs: PLAY RECAP *********************************************************************
    amazon-ebs: 127.0.0.1                  : ok=29   changed=20   unreachable=0    failed=1   �[0m
    amazon-ebs:

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