ubuntu安装 PhantomJS????

系统是ubuntu14的
sudo apt-get install phantomjs会出现:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 phantomjs : Depends: libqtgui4 (>= 4:4.5.3) but it is not going to be installed
             Depends: libqtwebkit4 (>= 2.2~2011week36) but it is not installable
E: Unable to correct problems, you have held broken packages.

意思我大概也清楚,就是源找不到,但是问题我更想了源 也不行,有没有另外的方法,比如直接下载解压安装的这种?

阅读 4.9k
2 个回答

楼主可以参考我的博客http://blog.csdn.net/yangyang...
这里,我使用直接下载的形式进行安装phantomjs的。而且我的平台也是ubuntu14,很巧,刚好我也准备使用phantomjs,selenium,python3进行网页爬虫的学习。也是新手,刚接触。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进