File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/base/.devcontainer/scripts Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ export DEBIAN_FRONTEND=noninteractive
66if [ " $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
917fi
1018
1119echo " Running apt-get update"
You can’t perform that action at this time.
0 commit comments