From 8c0fda523ebab0d96ec226bc33993a39fbf9da85 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 2 Jan 2026 21:21:06 +0100 Subject: [PATCH] Fix Intel Level Zero package conflict on Debian 13 (#10467) * Initial plan * Fix Intel Level Zero package conflict on Debian 13 Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> * Add numeric validation for VERSION_ID comparison Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> * Use existing get_os_info and is_debian functions Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --- install/ollama-install.sh | 13 ++++++++++++- install/openwebui-install.sh | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/install/ollama-install.sh b/install/ollama-install.sh index 396a55b78..fed61a32f 100644 --- a/install/ollama-install.sh +++ b/install/ollama-install.sh @@ -44,7 +44,18 @@ msg_ok "Set up Intel® Repositories" setup_hwaccel msg_info "Installing Intel® Level Zero" -$STD apt -y install intel-level-zero-gpu level-zero level-zero-dev 2>/dev/null || true +# Debian 13+ has newer Level Zero packages in system repos that conflict with Intel repo packages +if is_debian && [[ "$(get_os_version_major)" -ge 13 ]]; then + # Use system packages on Debian 13+ (avoid conflicts with libze1) + $STD apt -y install libze1 libze-dev intel-level-zero-gpu 2>/dev/null || { + msg_warn "Failed to install some Level Zero packages, continuing anyway" + } +else + # Use Intel repository packages for older systems + $STD apt -y install intel-level-zero-gpu level-zero level-zero-dev 2>/dev/null || { + msg_warn "Failed to install Intel Level Zero packages, continuing anyway" + } +fi msg_ok "Installed Intel® Level Zero" msg_info "Installing Intel® oneAPI Base Toolkit (Patience)" diff --git a/install/openwebui-install.sh b/install/openwebui-install.sh index 009e6310e..bdecab7fc 100644 --- a/install/openwebui-install.sh +++ b/install/openwebui-install.sh @@ -50,7 +50,18 @@ EOF msg_ok "Set up Intel® Repositories" msg_info "Installing Intel® Level Zero" - $STD apt -y install intel-level-zero-gpu level-zero level-zero-dev 2>/dev/null || true + # Debian 13+ has newer Level Zero packages in system repos that conflict with Intel repo packages + if is_debian && [[ "$(get_os_version_major)" -ge 13 ]]; then + # Use system packages on Debian 13+ (avoid conflicts with libze1) + $STD apt -y install libze1 libze-dev intel-level-zero-gpu 2>/dev/null || { + msg_warn "Failed to install some Level Zero packages, continuing anyway" + } + else + # Use Intel repository packages for older systems + $STD apt -y install intel-level-zero-gpu level-zero level-zero-dev 2>/dev/null || { + msg_warn "Failed to install Intel Level Zero packages, continuing anyway" + } + fi msg_ok "Installed Intel® Level Zero" msg_info "Installing Intel® oneAPI Base Toolkit (Patience)"