← Back to issue list

ci: wait for apt/dpkg lock when setting lxd up

View original Github issue

Metadata

Project
snapcraft
Number
#1421
Type
pull request
State
merged
Author
kalikiana
Labels
Created
Updated
Closed

Current evaluation

Merged a CI fix that waits for the apt/dpkg lock during LXD setup. Resolves permission denied errors during apt-get update by preventing concurrent package manager access. Approved by two reviewers and passed all checks.

Suggested action:

No scores available.

Issue body

This is to fix this: apt-get update W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied) E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a CI fix that waits for the apt/dpkg lock during LXD setup. Resolves permission denied errors during apt-get update by preventing concurrent package manager access. Approved by two reviewers and passed all checks.
qwen3.6-35b-a3b-mtp-q6 Merged a fix for CI failures caused by apt/dpkg lock permission errors during LXD setup. The change adds a wait mechanism to ensure package manager locks are available before proceeding.
qwen3.6-35b-a3b-mtp-q6 Merged a fix for CI LXD setup failures caused by apt/dpkg lock permission errors. The change adds a wait mechanism for package manager locks before initialization, resolving the lock and permission denied errors.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1435 lxd: wait on lock files before running apt commands snapcraft merged Merged a change that waits for apt lock files before executing apt commands in LXD. This prevents concurrent lock errors when apt runs simultaneously with snapcraft. Approved by two reviewers with a 12/-3 line diff.
84%
#1677 ci: don't install lxd craft-parts merged Merged a CI configuration update removing the unused LXD installation. Approved by three reviewers, the change was integrated despite unrelated test failures stemming from a Launchpad issue.
75%
#1978 ci: switch to stable lxd and unconfined containers snapcraft merged Merged CI configuration update switching to stable LXD and unconfined containers. Approved by two reviewers with a two-file, five-line change.
70%