Skip to content

Commit 35fc41b

Browse files
committed
fix it
1 parent 48ab087 commit 35fc41b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/base/.devcontainer/scripts/root_install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ export DEBIAN_FRONTEND=noninteractive
66
if [ "$TARGETARCH" == "arm64" ] || [ "$TARGETARCH" == "aarch64" ]; then
77
echo "Adding amd64 architecture support"
88
dpkg --add-architecture amd64
9+
10+
# Update sources.list to include amd64 repositories
11+
echo "Configuring sources.list for amd64 and arm64"
12+
sed -i.bak '/^deb / s|http://ports.ubuntu.com/ubuntu-ports|[arch=arm64] http://ports.ubuntu.com/ubuntu-ports|' /etc/apt/sources.list
13+
# shellcheck disable=SC2129
14+
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy main universe" >> /etc/apt/sources.list
15+
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy-updates main universe" >> /etc/apt/sources.list
16+
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy-security main universe" >> /etc/apt/sources.list
917
fi
1018

1119
echo "Running apt-get update"

0 commit comments

Comments
 (0)