Obtendo g ++ - 4.4 / gcc-4.4: gedit /etc/apt/sources.list
Adicione duas novas linhas ao arquivo:
deb [URL] trusty main universe
deb [URL] trusty-updates main universe
Meu exemplo:
deb http://dk.archive.ubuntu.com/ubuntu/ trusty main universe
deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main universe
Execute sudo apt-get update
e você pode instalar o gcc-4.4: sudo apt-get install g++-4.4