Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Installer: name the missing tools, not Debian packages, on non-apt Linux (#13284)

Daniel Han5b4a872b0546
diff --git a/install.sh b/install.sh
index b4eb0bd5104..ce438452785 100755
--- a/install.sh
+++ b/install.sh
@@ -3328,7 +3328,20 @@ _check_linux_deps() {
fi
if [ -n "$_optional_missing" ]; then
- step "deps" "using prebuilt llama.cpp (missing: $_optional_missing)" "$C_WARN"
+ # Off apt the Debian package names mean nothing (NixOS, Fedora, Arch, SteamOS: #4986), so name the commands probed above.
+ _shown_missing="$_optional_missing"
+ if ! command -v apt-get >/dev/null 2>&1; then
+ _shown_missing=""
+ for _m in $_optional_missing; do
+ case "$_m" in
+ build-essential) _m="gcc" ;;
+ libcurl4-openssl-dev) _m="curl-config" ;;
+ esac
+ _shown_missing="$_shown_missing $_m"
+ done
+ _shown_missing="${_shown_missing# }"
+ fi
+ step "deps" "using prebuilt llama.cpp (missing: $_shown_missing)" "$C_WARN"
substep "Not required to run: Unsloth downloads a prebuilt inference engine."
case " $_optional_missing " in
*" git "*) substep "Without git the triton kernels training speedup is skipped." ;;
diff --git a/tests/sh/test_linux_deps_gate.sh b/tests/sh/test_linux_deps_gate.sh
index db25c5eb804..d78dafd6eae 100755
--- a/tests/sh/test_linux_deps_gate.sh
+++ b/tests/sh/test_linux_deps_gate.sh
@@ -82,6 +82,11 @@ _out="$(_run_gate false)"
assert_contains "install proceeds" "$_out" "RC=0"
assert_contains "says the prebuilt is used" "$_out" "using prebuilt llama.cpp"
assert_contains "names what is missing" "$_out" "cmake"
+# #4986: Debian package names mean nothing on NixOS / Fedora / Arch / SteamOS.
+assert_contains "names the compiler, not a Debian package" "$_out" "gcc"
+assert_contains "names the libcurl probe" "$_out" "curl-config"
+assert_not_contains "no build-essential off apt" "$_out" "build-essential"
+assert_not_contains "no libcurl4-openssl-dev off apt" "$_out" "libcurl4-openssl-dev"
assert_contains "says it is not required" "$_out" "Not required"
assert_not_contains "does not demand a package manager" "$_out" "apt-based"
assert_not_contains "does not reach apt for build tools" "$_out" "APT_CALLED"
@@ -131,6 +136,7 @@ _out="$(_run_gate false)"
assert_contains "install proceeds" "$_out" "RC=0"
assert_contains "apt is asked for git" "$_out" "git"
assert_contains "apt is actually called" "$_out" "APT_CALLED"
+assert_contains "apt users still see package names" "$_out" "missing: cmake git build-essential libcurl4-openssl-dev)"
echo "=== no apt and no git: warn about the triton skip, do not fail ==="
rm -f "$_BIN"/*