如何在precise64 vagrant box中安装firefox

如何在precise64 vagrant box中安装firefox,firefox,selenium-webdriver,virtualbox,vagrant,apt,Firefox,Selenium Webdriver,Virtualbox,Vagrant,Apt,我想将seleniumwebdriver与chrome或firefox一起使用在精确的64位框中 首先我必须安装firefox,所以我遵循了这个指令。 我在/etc/apt/sources.list中添加了ppa:mozillateam/firefox-stable,然后sudo-apt-get-update 但后来我犯了这个错误 E: Type 'ppa:mozillateam/firefox-stable' is not known on line 2 in source list /et

我想将
seleniumwebdriver
chrome
firefox
一起使用在精确的64位框中

首先我必须安装firefox,所以我遵循了这个指令。

我在
/etc/apt/sources.list中添加了
ppa:mozillateam/firefox-stable
,然后
sudo-apt-get-update

但后来我犯了这个错误

E: Type 'ppa:mozillateam/firefox-stable' is not known on line 2 in source list /etc/apt/sources.list
E: The list of sources could not be read.
我还尝试了添加apt存储库,但失败了,
命令未找到
错误


如何将firefox安装到precise64?或者如果我使用另一个框来使用selenium webdriver会更好吗?

安装firefox会导致安装很多依赖项,例如X和桌面环境,或者至少是一个轻量级的WM

事实上,12.04.4 LTS的官方存储库中已经有firefox 28.0,您不必添加PPA即可获得最新的稳定版本,只需执行
sudo apt get-y安装firefox即可

顺便说一句:出现错误是因为它不是要添加到sources.list或/etc/sources.list.d/*.list下拆分文件的正确行

它应该如下所示:

deb http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu precise main 
deb-src http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu precise main 

要使用
addaptreepository
命令,您必须事先安装
python软件属性。

如果不添加ppa,我无法安装firefox。安装之后,
xvfb
仍然存在问题。但至少我现在知道如何安装firefox了。谢谢