File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,15 @@ sudo apt-get update
23
23
echo " Setting up LLVM 17 APT source with modern GPG key handling..."
24
24
25
25
# Download and install GPG key to /usr/share/keyrings
26
- curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/llvm-archive-keyring.gpg
26
+ curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | \
27
+ gpg --dearmor | sudo tee /usr/share/keyrings/llvm-archive-keyring.gpg > /dev/null
28
+
29
+ # Make sure key file is readable by _apt
30
+ sudo chmod a+r /usr/share/keyrings/llvm-archive-keyring.gpg
27
31
28
32
# Write APT source list, explicitly binding keyring file
29
- echo " deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-jammy-17.list
33
+ echo " deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" | \
34
+ sudo tee /etc/apt/sources.list.d/llvm-toolchain-jammy-17.list
30
35
31
36
# Update package lists
32
37
sudo apt-get update
You can’t perform that action at this time.
0 commit comments