Skip to content

Commit

Permalink
script(debian): update
Browse files Browse the repository at this point in the history
Remove useless unattended-upgrades.
  • Loading branch information
rennsax committed Jun 10, 2024
1 parent 89c02a1 commit dad8b52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/install-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ if [ -f "/etc/needrestart/needrestart.conf" ]; then
printf "%s\n" "\$nrconf{kernelhints} = 0;" "\$nrconf{restart} = 'a';" | \
sudo tee -a /etc/needrestart/needrestart.conf >/dev/null
fi

# Remove the poorly-designed auto-upgrade software, which always holds on the
# dpkg lock forever.
sudo apt-get remove unattended-upgrades -y

if [ "${INSTALL_DEBIAN_NO_SJTU_SOURCES}" -ne 1 ]; then
alter_apt_sources || error_exit "failed to alter apt sources"
fi
Expand Down

0 comments on commit dad8b52

Please sign in to comment.