Remove extraneous sources.list.d entries on Ubuntu

Fixes a build failure on Noble due to duplications in here, but should
still work on older version as well since we write new versions and
those just used sources.list (not the .d directory)
This commit is contained in:
Joshua M. Boniface
2024-04-30 01:36:44 -04:00
parent b7777041f2
commit 0f59b4638b
+1 -1
View File
@@ -51,7 +51,7 @@ RUN apt-get update -y \
# Prepare the cross-toolchain
RUN if test "${PACKAGE_ARCH}" != "$( dpkg --print-architecture )"; then \
if grep -q -i ubuntu /etc/os-release; then \
rm /etc/apt/sources.list \
rm /etc/apt/sources.list /etc/apt/sources.list.d/* \
&& export CODENAME="$( lsb_release -c -s )" \
&& echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ ${CODENAME} main restricted universe multiverse" >>/etc/apt/sources.list.d/amd64.list \
&& echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ ${CODENAME}-updates main restricted universe multiverse" >>/etc/apt/sources.list.d/amd64.list \