This is a really silly typo: the correct package name is g++-6 (with a dash) rather than g++6 (without dash).