安装 LLVM Ubuntu 每晚包时出错

Getting error while installing LLVM Ubuntu nightly packages

我有 Ubuntu 16.04 服务器,想在那里安装 LLVM 包。 我从 https://apt.llvm.org 运行 bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" 命令,但收到错误

Err:32 https://apt.llvm.org/xenial llvm-toolchain-xenial-14/main amd64 Packages
  404  Not Found
Fetched 200 kB in 2s (89.5 kB/s)
Reading package lists... Done
W: The repository 'http://apt.llvm.org/xenial llvm-toolchain-xenial-14 Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://apt.llvm.org/xenial/dists/llvm-toolchain-xenial-14/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch https://apt.llvm.org/xenial/dists/llvm-toolchain-xenial-14/main/binary-all/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

现在我什至无法 运行 sudo apt-get update 并得到完全相同的错误。 我该如何解决或恢复原状?

查看 LLVM website, 16.04 reached EOL in 2021,因此来自 LLVM 源的包被禁用。

我建议更新到 LTS。