Suppress needrestart prompts on Ubuntu Server

Set DEBIAN_FRONTEND and NEEDRESTART_MODE to prevent the
"scanning processes/candidates/microcode" messages during apt installs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-08 11:48:10 +00:00
parent 8d9e5f9d56
commit 563c6b79fa

View File

@@ -325,6 +325,11 @@ EOF
install_debian_packages() {
need_sudo
# Suppress needrestart prompts (Ubuntu Server 22.04+)
export DEBIAN_FRONTEND=noninteractive
export NEEDRESTART_MODE=a
info "Updating APT package lists..."
$SUDO apt-get update -y >/dev/null