From 8514f8fb6b6b74323186bd738e8d592332df3042 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 3 Oct 2025 07:57:48 -0500 Subject: don't use apt in scripts --- apt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt.go') diff --git a/apt.go b/apt.go index ee7935f..d2524b5 100644 --- a/apt.go +++ b/apt.go @@ -8,7 +8,7 @@ import ( ) func aptInstall(pkgname string) { - cmd := []string{"apt", "install", "-y", pkgname} + cmd := []string{"apt-get", "install", "-y", pkgname} log.Info("Running:", cmd) exitOnError(cmd) } @@ -17,7 +17,7 @@ func aptRemove(pkgname string) { if pkgname == "mirrors.wit.com" { return } - cmd := []string{"apt", "remove", "-y", pkgname} + cmd := []string{"apt-get", "remove", "-y", pkgname} log.Info("Running:", cmd) exitOnError(cmd) } -- cgit v1.2.3