You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid dpkg lock during Packer provisioner shell execution
Instead of disabling the Update Package List and Unattended Upgrade in the apt configuration,
wait until dpkg lock is released and temporarily stop the apt-daily services for the Packer duration.
```
$apt-config shell StateDir Dir::State/d
StateDir='/var/lib/apt/'
```
```
$echo $(apt-config shell StateDir Dir::State/d | sed -r "s/.*'(.*)\/?'$/\1/")/daily_lock
/var/lib/apt/daily_lock
```
Signed-off-by: Luca Carrogu <[email protected]>
0 commit comments