Skip to content

cloud-init sometimes fails on dpkg lock due to concurrent apt-daily-upgrade.service execution #2977

@ubuntu-server-builder

Description

@ubuntu-server-builder

This bug was originally filed in Launchpad as LP: #1711428

Launchpad details
affected_projects = ['apt (Ubuntu)']
assignee = None
assignee_name = None
date_closed = 2022-11-02T10:37:18.293399+00:00
date_created = 2017-08-17T17:55:30.356576+00:00
date_fix_committed = 2022-11-02T10:37:18.293399+00:00
date_fix_released = 2022-11-02T10:37:18.293399+00:00
id = 1711428
importance = undecided
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1711428
milestone = None
owner = jbrowne
owner_name = Jim Browne
private = False
status = fix_released
submitter = jbrowne
submitter_name = Jim Browne
tags = []
duplicates = []

Launchpad user Jim Browne(jbrowne) wrote on 2017-08-17T17:55:30.356576+00:00

This is the same problem as https://bugs.launchpad.net/cloud-init/+bug/1693361, but with a different APT invoking service. In this case it is apt-daily-upgrade.service.

So, I guess add apt-daily-upgrade.service to the Before line in /lib/systemd/system/cloud-final.service along side apt-daily.service.

Or wait for an APT fix. Or retry APT commands when executing "packages:"

Reporting this to save someone else trouble, but I think we'll be rolling back to Trusty at this point. Hopefully the B LTS will have an alternative to systemd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    launchpadMigrated from Launchpad

    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