%E7%9A%84%E4%B8%80%E4%B8%AA%E9%97%AE%E9%A2%98.png)
我在笔记本上安装了 Ubuntu 12.04,并且使用 C++。我想使用 C++11,所以我想将我的升级gcc
到gcc-4.7
。我运行了以下命令:
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
但我跑的时候sudo apt-get install gcc-4.7
,它却找不到gcc-4.7-base
。gcc-4.7
我跑的时候sudo apt-get install g++-4.7
,它什么都找不到。
今天,我想安装,bumblebee
所以我开始运行这些命令:
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
sudo reboot
但是当我运行时sudo apt-get install bumblebee bumblebee-nvidia
,它告诉我找不到包。
我使用了 Ubuntu 12.04 中描述的方法这里和这里。
我能做些什么?
答案1
你能试试这个吗
sudo apt-get install build-essential