如何安装 Bumblebee?

如何安装 Bumblebee?

我刚刚安装了 Ubuntu 12.04 LTS,发现由于禁用了 Optimus,电池寿命比 Windows 低了很多。经过一番搜索,我找到了 Bumblebee 项目,但无法安装它。问题如下,命令sudo apt-get install bumblebee bumblebee-nvidia不起作用,输出如下:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package bumblebee
E: Unable to locate package bumblebee-nvidia

我尝试了很多方法,但由于我是新用户,我可能遗漏了一个关键点。以前的命令:

sudo add-apt-repository ppa:bumblebee/stable
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

似乎没有任何问题,但“sudo apt-get update”给出以下输出,

W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

我对情况真的很困惑,无法采取任何行动,非常感谢您的帮助。谢谢

答案1

打开终端并运行以下命令:

sudo rm -rf /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages

然后运行:

sudo apt-get update

然后你可以尝试安装 bumblebee:

sudo apt-get install bumblebee bumblebee-nvidia

相关内容