I installed Ubuntu 12.04 in my notebook and I use C++. I want to use C++11, so I want to upgrade my gcc
to gcc-4.7
. I ran these commands:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7
sudo apt-get install g++-4.7
But when I ran sudo apt-get install gcc-4.7
, it can find gcc-4.7-base
but not gcc-4.7
. And when I ran sudo apt-get install g++-4.7
, it could not find anything.
Today, I wanted to install bumblebee
so I started to run these commands:
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
sudo reboot
But when I ran sudo apt-get install bumblebee bumblebee-nvidia
, it told me the packages couldn't be found.
I used the Ubuntu 12.04 methods described here and here.
What can I do?
sudo apt-get update
is completing successfully? and what version of ubuntu are you using. I suspect you are using a old version for which the packages are not listed. – Web-E Jun 25 '12 at 07:16precise
not inoneric
https://launchpad.net/~ubuntu-toolchain-r/+archive/test?field.series_filter=oneiric – Web-E Jun 25 '12 at 07:19sudo apt-get update
and try installing them again. Also can you post yourlsb_release -a
output here. – atenz Jun 25 '12 at 07:25