如何在 Ubuntu 中安裝 Google Chrome


Google Chrome 是 Google 開發的一款免費網路瀏覽器。除了 iOS 版本之外,它使用 WebKit 佈局引擎,直到版本 27。如果您嘗試在 Ubuntu 中安裝 Google Chrome 瀏覽器,那麼您可能已經注意到 Ubuntu 軟體中心中沒有該瀏覽器。但是,可以輕鬆地下載 Google Chrome 的安裝包檔案並透過終端將它安裝到您的系統中。本文介紹如何在 Ubuntu 中安裝 Google Chrome。

在安裝 Google Chrome 瀏覽器之前,您需要了解您的 Ubuntu 系統是 32 位還是 64 位。在確定了系統型別之後,使用以下命令來新增金鑰。

$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

示例輸出應如下所示 –

ok

要設定儲存庫,請使用以下命令 –

$ sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

要安裝 Chrome 瀏覽器,請使用以下命令 –

$ sudo apt-get update
$ sudo apt-get install google-chrome-stable

示例輸出應如下所示 –

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
   libcgmanager0:i386 libdrm2:i386 libhdb9-heimdal libkdc2-heimdal libntdb1
   libpng12-0:i386 libudev1:i386 python-ntdb
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
   google-chrome-stable
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 48.4 MB of archives.
After this operation, 186 MB of additional disk space will be used.
Get:1 http://dl.google.com/linux/chrome/deb/ stable/main google-chrome-stable amd64 50.0.2661.86-1 [48.4 MB]
.................................................................................................

要從終端開啟 Chrome,請使用以下命令 –

$ google-chrome

示例輸出應如下所示 –

要從 Ubuntu 中移除 Google Chrome,請使用以下命令

$ sudo apt-get purge google-chrome-stable
$ sudo apt-get autoremove

這將移除配置檔案,節省少量空間,並確保它不會干擾其他程式或將來的重新安裝。在閱讀完本文後,您將瞭解如何在 Ubuntu 中安裝 Google Chrome。在我們的後續文章中,我們將提供更多基於 Linux 的技巧和竅門。敬請關注!

更新日期:2020 年 1 月 20 日

297 次瀏覽

開啟你的 職業生涯

完成課程,獲得認證

開始
廣告