diff --git a/dev/release/verify-apt.sh b/dev/release/verify-apt.sh index 7503c0df7bbbf..c25c5fecf4080 100755 --- a/dev/release/verify-apt.sh +++ b/dev/release/verify-apt.sh @@ -68,6 +68,12 @@ have_plasma=yes have_python=yes workaround_missing_packages=() case "${distribution}-${code_name}" in + debian-bookworm) + sed \ + -i"" \ + -e "s/ main$/ main contrib non-free/g" \ + /etc/apt/sources.list.d/debian.sources + ;; debian-*) sed \ -i"" \ diff --git a/dev/tasks/linux-packages/apache-arrow/apt/debian-bookworm/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/debian-bookworm/Dockerfile index aee005726a1e8..e7d53d410f348 100644 --- a/dev/tasks/linux-packages/apache-arrow/apt/debian-bookworm/Dockerfile +++ b/dev/tasks/linux-packages/apache-arrow/apt/debian-bookworm/Dockerfile @@ -26,7 +26,11 @@ RUN \ echo 'APT::Install-Recommends "false";' > \ /etc/apt/apt.conf.d/disable-install-recommends -RUN sed -i'' -e 's/main$/main contrib non-free/g' /etc/apt/sources.list +RUN \ + sed \ + -i'' \ + -e 's/main$/main contrib non-free/g' \ + /etc/apt/sources.list.d/debian.sources ARG DEBUG RUN \