I need to add the following repo in ubuntu 16.04:
deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main
I attempted to add that repo by typing following command:
sudo add-apt-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main"
I want to add that repo because I want to install packages from there.
I see that after the add-apt-repository
command there is an entry added in /etc/apt/sources.list
but when I am trying to install the package using sudo apt-get install clang-3.4
I still get error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package clang-3.4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'clang-3.4' has no installation candidate
sudo apt-get update
after adding the repository? – muru Jun 11 '20 at 07:52sudo apt-get update
, I got following message :W: GPG error: https://apt.llvm.org/xenial llvm-toolchain-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 15CF4D18AF4F7421 W: The repository 'http://apt.llvm.org/xenial llvm-toolchain-xenial InRelease' is not signed. 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.
– AlphaParticle Jun 11 '20 at 08:07sudo apt-get install clang-3.4
I got the same error. – AlphaParticle Jun 11 '20 at 08:09sudo apt-get update
, but still when I dosudo apt-get install clang-3.4
, I get the same error. And by the way the packageclang-3.4
is in trusty only, not in xenial. – AlphaParticle Jun 11 '20 at 08:28