-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Description
When attempting to build the ubuntu-22.04-lts image the provisioning Shell Script install-container-tools.sh is failing with the below error using the main branch.
==> azure-arm.build_image: Provisioning with shell script: /agent/_work/1/s/virtual-environments/images/ubuntu/templates/../scripts/build/install-container-tools.sh
==> azure-arm.build_image: % Total % Received % Xferd Average Speed Time Time Time Current
==> azure-arm.build_image: Dload Upload Total Spent Left Speed
==> azure-arm.build_image: 100 6880k 100 6880k 0 0 26.4M 0 --:--:-- --:--:-- --:--:-- 26.5M
==> azure-arm.build_image: dpkg: error: dpkg frontend lock was locked by another process with pid 19603
==> azure-arm.build_image: Note: removing the lock file is always wrong, and can end up damaging the
==> azure-arm.build_image: locked area and the entire system. See <https://wiki.debian.org/Teams/Dpkg/FAQ>.
Platforms affected
- Azure DevOps
- GitHub Actions - Standard Runners
- GitHub Actions - Larger Runners
Runner images affected
- Ubuntu 22.04
- Ubuntu 24.04
- Ubuntu Slim
- macOS 14
- macOS 14 Arm64
- macOS 15
- macOS 15 Arm64
- macOS 26 Arm64
- Windows Server 2019
- Windows Server 2022
- Windows Server 2025
Image version and build link
Image version: 20251211.462
Is it regression?
No
Expected behavior
The ubuntu runner image should run the provisioner script successfully and build the image as per the runner image documenation.
Actual behavior
Runner image build fails with the below error:
==> azure-arm.build_image: Provisioning with shell script: /agent/_work/1/s/virtual-environments/images/ubuntu/templates/../scripts/build/install-container-tools.sh
==> azure-arm.build_image: % Total % Received % Xferd Average Speed Time Time Time Current
==> azure-arm.build_image: Dload Upload Total Spent Left Speed
==> azure-arm.build_image: 100 6880k 100 6880k 0 0 26.4M 0 --:--:-- --:--:-- --:--:-- 26.5M
==> azure-arm.build_image: dpkg: error: dpkg frontend lock was locked by another process with pid 19603
==> azure-arm.build_image: Note: removing the lock file is always wrong, and can end up damaging the
==> azure-arm.build_image: locked area and the entire system. See <https://wiki.debian.org/Teams/Dpkg/FAQ>.
Repro steps
- Follow instructions at https://github.com/actions/runner-images/blob/main/docs/create-image-and-azure-resources.md to build an ubuntu-22.04-lts image.
- Observe the the Provisioning with shell script: /agent/_work/1/s/virtual-environments/images/ubuntu/templates/../scripts/build/install-container-tools.sh step fails with the error: dpkg: error: dpkg frontend lock was locked by another process with pid .