Error getting access to LLVM Debian/Ubuntu nightly packages
Andrew Henderson
Trying to access LLVM Debian/Ubuntu nightly packages
I am on 14.04 and they give this info:
The goal is to provide Debian and Ubuntu nightly packages ready to be installed with minimal impact on the distribution. Packages are available for amd64 and i386 and for both the stable, qualification and development branches (currently 3.9, 4.0 and 5.0).
The packages provide LLVM + Clang + compiler-rt + polly + LLDB + LLD + libFuzzer
Trusty (14.04) - Last update : Wed, 22 Mar 2017 08:38:03 UTC / Revision: 298477
deb llvm-toolchain-trusty main
deb-src llvm-toolchain-trusty main
# 3.9
deb llvm-toolchain-trusty-3.9 main
deb-src llvm-toolchain-trusty-3.9 main
# 4.0
deb llvm-toolchain-trusty-4.0 main
deb-src llvm-toolchain-trusty-4.0 mainI have tried going in Ubuntu Software Centre and adding the deb line for both 3.9 and 4.0.
But after sudo apt-get update I get an error:
W: GPG error: llvm-toolchain-trusty-3.9 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 15CF4D18AF4F7421There is some way to install this without Ubuntu Software Centre, but I don't know how to find the ppa:user/ppa-name as talked about here
2 Answers
Each one of these repositories has it's own key which you should add before updating your lists. See
E.g: if you add this one to your sources:
deb llvm-toolchain-trusty mainThen you should also add the related key to this component, which is:
wget -O - apt-key add -So, if you add all lines for trusty, then you should add all three related keys to them, It will make your error goes away.
For stable brunch (V3), source:
deb llvm-toolchain-trusty-3.9 main wget -O - apt-key add -For qualification branch (V4), source:
deb llvm-toolchain-trusty-4.0 main
wget -O - apt-key add - 3 I was getting the same error. I fixed it by installing launchpad-getkeys:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install launchpad-getkeysOnce it's installed, run:
sudo launchpad-getkeys
sudo apt-get updateYour key errors should be gone.
2