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.test
package first. Updated the question.add-apt-repository
as its name implies adds a repository, it does not install a package. Now you can doapt install gcc-7
.