如何在Linux裡安裝chrome

來源:互聯網
上載者:User

標籤:chromium   linux   

下載了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
1.

可以試試這個方法:

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


再用上述命令安裝


2.

直接線上安裝:

先安裝這個:

sudo apt-get install -f

再輸入如下命令:

sudo apt-get install chromium-browser

這樣就可以了。


如何在Linux裡安裝chrome

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.