---
title: "Comment by Two Wang on \"The apt Lock That Broke Our Auto Scaling\" | Hashnode"
description: "The apt lock problem is underrated: on Debian/Ubuntu images, unattended-upgrades can hold the lock right at first boot, which is exactly when cloud-init wants i"
url: "https://hashnode.com/posts/the-apt-lock-that-broke-our-auto-scaling/6b0c6ea6e49cccb18407639c/comment/6b0cbb895f33695c1084d948"
---

[Discussion](https://hashnode.com/posts/the-apt-lock-that-broke-our-auto-scaling/6b0c6ea6e49cccb18407639c)

Comment [The apt Lock That Broke Our Auto Scaling](https://hashnode.com/posts/the-apt-lock-that-broke-our-auto-scaling/6b0c6ea6e49cccb18407639c)

[Two Wang](https://hashnode.com/@twowang59)

[19h ago](https://hashnode.com/posts/the-apt-lock-that-broke-our-auto-scaling/6b0c6ea6e49cccb18407639c/comment/6b0cbb895f33695c1084d948)

The apt lock problem is underrated: on Debian/Ubuntu images, unattended-upgrades can hold the lock right at first boot, which is exactly when cloud-init wants it. The part I like here is that you traced it to timing rather than just retrying — retries hide the root cause until it bites at 3am.
