知识屋:更实用的电脑技术知识网站
所在位置:首页 > 操作系统 > linux

如何在Linux里安装chrome

发布时间:2015-05-27 19:09:48作者:知识屋

下载了chrome的.deb的文件,打算用命令去安装

$ sudo dpkg --install chrome.deb
结果报错:
[sudo] password for young: Selecting previously unselected package google-chrome-stable.(Reading database ... 141861 files and directories currently installed.)Unpacking google-chrome-stable (from chrome.deb) ...dpkg: dependency problems prevent configuration of google-chrome-stable: google-chrome-stable depends on libgconf2-4 (>= 2.27.0); however:  Package libgconf2-4 is not installed. google-chrome-stable depends on libnss3-1d (>= 3.12.3); however:  Package libnss3-1d is not installed. google-chrome-stable depends on libxss1; however:  Package libxss1 is not installed.dpkg: error processing google-chrome-stable (--install): dependency problems - leaving unconfiguredProcessing triggers for desktop-file-utils ...Processing triggers for bamfdaemon ...Rebuilding /usr/share/applications/bamf.index...Processing triggers for gnome-menus ...Processing triggers for man-db ...Errors were encountered while processing: google-chrome-stable$ sudo apt-get install -fReading package lists... DoneBuilding dependency tree       Reading state information... DoneCorrecting dependencies... DoneThe following package was automatically installed and is no longer required:  linux-headers-3.5.0-17Use 'apt-get autoremove' to remove it.The following packages will be REMOVED:  google-chrome-stable0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.1 not fully installed or removed.After this operation, 140 MB disk space will be freed.Do you want to continue [Y/n]? Y(Reading database ... 141960 files and directories currently installed.)Removing google-chrome-stable ...Processing triggers for man-db ...Processing triggers for desktop-file-utils ...Processing triggers for bamfdaemon ...Rebuilding /usr/share/applications/bamf.index...Processing triggers for gnome-menus ...$ sudo dpkg --install chrome.debSelecting previously unselected package google-chrome-stable.(Reading database ... 141861 files and directories currently installed.)Unpacking google-chrome-stable (from chrome.deb) ...dpkg: dependency problems prevent configuration of google-chrome-stable: google-chrome-stable depends on libgconf2-4 (>= 2.27.0); however:  Package libgconf2-4 is not installed. google-chrome-stable depends on libnss3-1d (>= 3.12.3); however:  Package libnss3-1d is not installed. google-chrome-stable depends on libxss1; however:  Package libxss1 is not installed.dpkg: error processing google-chrome-stable (--install): dependency problems - leaving unconfiguredProcessing triggers for desktop-file-utils ...Processing triggers for bamfdaemon ...Rebuilding /usr/share/applications/bamf.index...Processing triggers for gnome-menus ...Processing triggers for man-db ...Errors were encountered while processing: google-chrome-stable

可以试试这个方法:

update your system and you should now be able to install google-chrome-stable.

sudo apt-get updatesudo apt-get install libgconf2-4 libnss3-1d libxss1

再用上述命令安装

直接在线安装:

先安装这个:

sudo apt-get install -f

再输入如下命令:

sudo apt-get install chromium-browser

这样就可以了。

(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜