diff --git a/ct/localagi.sh b/ct/localagi.sh index f1c382371..cea6b7701 100644 --- a/ct/localagi.sh +++ b/ct/localagi.sh @@ -174,8 +174,8 @@ Pin-Priority: 600 EOF msg_info "Installing ROCm runtime packages (this may take several minutes)" - apt update || return 1 - apt install -y rocm || return 1 + $STD apt update || return 1 + $STD apt install -y rocm || return 1 ldconfig || true msg_ok "Installed ROCm runtime packages" } diff --git a/install/localagi-install.sh b/install/localagi-install.sh index 5fe4ec279..1946d0b48 100644 --- a/install/localagi-install.sh +++ b/install/localagi-install.sh @@ -182,11 +182,11 @@ Pin-Priority: 600 EOF msg_info "Installing ROCm runtime packages (this may take several minutes)" - if ! retry_cmd 3 5 apt update; then + if ! retry_cmd 3 5 apt_update_cmd; then msg_warn "ROCm apt repository update failed" return 1 fi - if ! retry_cmd 3 10 apt install -y rocm; then + if ! retry_cmd 3 10 apt_install_cmd rocm; then msg_warn "ROCm runtime package installation failed" return 1 fi