Skip to content

Commit 2412051

Browse files
author
Clement Cheung
committed
Fix apt-add-repository for Debian Bookworm
1 parent 197e00e commit 2412051

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ if dpkg -s llvm > /dev/null 2>&1; then
3434
apt-get purge -y llvm && apt-get autoremove -y
3535
fi
3636

37+
# Hack for apt-add-repository bug on Debian bookworm
38+
# https://github.com/hof/bookworm-apt-add-repository-issue
39+
if [ ! -f "/etc/apt/sources.list" ]; then
40+
echo '#' > /etc/apt/sources.list
41+
fi
42+
3743
cd /tmp
3844
wget https://apt.llvm.org/llvm.sh
3945
chmod +x llvm.sh

0 commit comments

Comments
 (0)