Skip to content

Commit

Permalink
disable unattended upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
rgl committed Oct 24, 2022
1 parent d319237 commit 54ec591
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ sed -i -E 's,^%sudo\s+.+,%sudo ALL=(ALL) NOPASSWD:ALL,g' /etc/sudoers
# configure apt for non-interactive mode.
export DEBIAN_FRONTEND=noninteractive

# disable unattended upgrades.
# NB it interferes with our automation with errors alike:
# E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 17599 (unattended-upgr)
# E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
apt-get remove -y --purge unattended-upgrades

# upgrade.
apt-get update
apt-get dist-upgrade -y

0 comments on commit 54ec591

Please sign in to comment.