I want to try C++17 features and I want to install standard compliant compiler (preferably GCC). I'm totally new to Linux and Ubuntu and I simply don't understand a lot.
I tried to follow https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test but with no luck. First I ran:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
As I understood this command installs some keys. Next I tried:
sudo add-apt-repository ppa:ubuntu-toolchain-r/gcc-7
That returned:
Error: 'ppa:ubuntu-toolchain-r/gcc-7' invalid
Next I tried to install clang development branch:
apt-get install clang-4.0 lldb-4.0
And it gives me
E: Unable to locate package clang-4.0
E: Couldn't find any package by glob 'clang-4.0'
E: Couldn't find any package by regex 'clang-4.0'
E: Unable to locate package lldb-4.0
E: Couldn't find any package by glob 'lldb-4.0'
E: Couldn't find any package by regex 'lldb-4.0'
What does all this means? What's wrong?
add-apt-repository
command you ran is not the same as the one given on the PPA's page, so it's no wonder it doesn't work. Try running the correct one. – fkraiem Dec 10 '16 at 21:30test
package first. Updated the question. – nikitablack Dec 10 '16 at 21:43add-apt-repository
as its name implies adds a repository, it does not install a package. Now you can doapt install gcc-7
. – fkraiem Dec 10 '16 at 21:46sudo apt install gcc-7
command and gotUnable to locate package gcc-7
. – nikitablack Dec 11 '16 at 09:16clang-4.0
removed from the souce lists, both on LLVM.org and Ubuntu repository? http://apt.llvm.org/ – Lanti Dec 27 '16 at 14:20