LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

install.sh failing when trying to install CUDA drivers. (ubuntu 25)

Open JackBekket opened this issue 3 months ago • 0 comments

LocalAI version: latest

Environment, CPU architecture, OS, and Version: Ubuntu 25

Describe the bug install.sh failing when trying to install CUDA drivers.

I guess issue is here:

# ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu
# ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#debian
install_cuda_driver_apt() {
    info 'Installing NVIDIA CUDA repository...'
    curl -fsSL -o $TEMP_DIR/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/$1$2/$(uname -m)/cuda-keyring_1.1-1_all.deb

    case $1 in
        debian)
            info 'Enabling contrib sources...'
            $SUDO sed 's/main/contrib/' < /etc/apt/sources.list | $SUDO tee /etc/apt/sources.list.d/contrib.list > /dev/null
            if [ -f "/etc/apt/sources.list.d/debian.sources" ]; then
                $SUDO sed 's/main/contrib/' < /etc/apt/sources.list.d/debian.sources | $SUDO tee /etc/apt/sources.list.d/contrib.sources > /dev/null
            fi
            ;;
    esac

    info 'Installing CUDA driver...'
    $SUDO dpkg -i $TEMP_DIR/cuda-keyring.deb
    $SUDO apt-get update

    [ -n "$SUDO" ] && SUDO_E="$SUDO -E" || SUDO_E=
    DEBIAN_FRONTEND=noninteractive $SUDO_E apt-get -y install cuda-drivers -q
}

To Reproduce follow installation script at any Ubuntu version.

Expected behavior

Logs

$ sudo sh ./install.sh 
-e  [INFO]  Docker detected. 
-e  [INFO]  Docker detected and no installation method specified. Using Docker. 
-e  [INFO]  Installing LocalAI from container images 
-e  [INFO]  Installing NVIDIA Container Toolkit... 
-e  [INFO]  Installing NVIDIA container toolkit repository... 
Файл '/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg' существует. Записать поверх? (y/N) y
deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/$(ARCH) /
#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/experimental/deb/$(ARCH) /
Сущ:1 http://ge.archive.ubuntu.com/ubuntu plucky InRelease
Сущ:2 http://ge.archive.ubuntu.com/ubuntu plucky-updates InRelease                                                                                                                                                                                     
Сущ:3 http://ge.archive.ubuntu.com/ubuntu plucky-backports InRelease                                                                                                                                                                                   
Сущ:4 https://nvidia.github.io/libnvidia-container/stable/deb/amd64  InRelease                                                                                                                                                                         
Сущ:5 http://security.ubuntu.com/ubuntu plucky-security InRelease                                                                                                                                                  
Сущ:6 https://download.docker.com/linux/ubuntu plucky InRelease                                                                                     
Игн:7 https://ppa.launchpadcontent.net/numix/ppa/ubuntu plucky InRelease          
Ошб:8 https://ppa.launchpadcontent.net/numix/ppa/ubuntu plucky Release
  404  Not Found [IP: 185.125.190.80 443]
Чтение списков пакетов… Готово
E: Репозиторий «https://ppa.launchpadcontent.net/numix/ppa/ubuntu plucky Release» не содержит файла Release.
N: Обновление из этого репозитория нельзя выполнить безопасным способом, поэтому по умолчанию он отключён.
N: Информацию о создании репозитория и настройках пользователя смотрите в справочной странице apt-secure(8).

Additional context perhaps just adding ARCH as env value for installer option could fix the problem

JackBekket avatar Sep 30 '25 11:09 JackBekket