Skip to content

Commit

Permalink
scripts(setup-ubuntu.sh): Add [arch=amd64] to the llvm repo
Browse files Browse the repository at this point in the history
Avoids a warning on `apt update`:

> N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.llvm.org/noble llvm-toolchain-noble-17 InRelease' doesn't support architecture 'i386'
  • Loading branch information
fornwall committed Sep 21, 2024
1 parent ba1fc17 commit 4b9a74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ $SUDO dpkg --add-architecture i386
$SUDO cp $(dirname "$(realpath "$0")")/llvm-snapshot.gpg.key /etc/apt/trusted.gpg.d/apt.llvm.org.asc
$SUDO chmod a+r /etc/apt/trusted.gpg.d/apt.llvm.org.asc
{
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-17 main"
echo "deb [arch=amd64] http://apt.llvm.org/noble/ llvm-toolchain-noble-17 main"
} | $SUDO tee /etc/apt/sources.list.d/apt-llvm-org.list > /dev/null

$SUDO apt-get -yq update
Expand Down

0 comments on commit 4b9a74a

Please sign in to comment.