diff --git a/docker/main/install_deps.sh b/docker/main/install_deps.sh index b60d78006..5dea3c874 100755 --- a/docker/main/install_deps.sh +++ b/docker/main/install_deps.sh @@ -58,11 +58,10 @@ fi # arch specific packages if [[ "${TARGETARCH}" == "amd64" ]]; then # Install non-free version of i965 driver - CODENAME=$(grep VERSION_CODENAME= /etc/os-release | cut -d= -f2) \ - && sed -i -E "s/^(deb http:\/\/deb\.debian\.org\/debian ${CODENAME} main)(.*)$/\1 contrib non-free non-free-firmware\2/" /etc/apt/sources.list \ + sed -i -E "/^Components: main$/s/main/main contrib non-free non-free-firmware/" "/etc/apt/sources.list.d/debian.sources" \ && apt-get -qq update \ && apt-get install --no-install-recommends --no-install-suggests -y i965-va-driver-shaders \ - && sed -i -E "s/(deb http:\/\/deb\.debian\.org\/debian ${CODENAME} main) contrib non-free non-free-firmware/\1/" /etc/apt/sources.list \ + && sed -i -E "/^Components: main contrib non-free non-free-firmware$/s/main contrib non-free non-free-firmware/main/" "/etc/apt/sources.list.d/debian.sources" \ && apt-get update # install amd / intel-i965 driver packages