https://askubuntu.com/questions/510056/how-to-install-google-chrome

sudo apt-get install chromium-browser

How do you install Google Chrome on Ubuntu?

asked Aug 12 '14 at 2:35
user314763

1,937363

7 Answers

google-chrome-stable is available on a 3rd Party Repository: Google Chrome (for Stable).

Follow the instruction for installation:

  1. Add Key:

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

    echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
  3. Install package:

    sudo apt-get update
    sudo apt-get install google-chrome-stable
answered Aug 12 '14 at 9:13
Pandya

17.1k2287142

Video Demonstration

Go to https://www.google.com/intl/en-US/chrome/browser/

Click Download and a small window will pop up with some download options.

We want the ".deb" for Ubuntu. Make sure this box is checked.

Note: Google no longer provides 32-bit versions for Linux - you are only able to get 64-bit versions for Linux as of at least February 2016

It will give you the option to "Open with..." or "Save File". The default option for "Open with..." is to open via "Software Install". Select this option.

Give your PC a few moments and the ubuntu software center should open up with the .deb file you have downloaded ready to install. (I already have chrome installed) Click the install button and you will be prompted for your password to start the installation. This should take no more that 2mins to install.

Enjoy ;]

Note: Chrome will also be updated through the normal Ubuntu update process so you can expect to grab the latest version when Ubuntu updates.

answered Aug 12 '14 at 3:39
Klyn

2,8372715

Or if you want the actual Google Chrome, open a terminal and follow:

cd /tmp
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

The 32-bit version is no longer available.

If you encounter any errors simply use

sudo apt-get -f install

To run it from terminal use google-chrome or hit the super key and search Google or Chrome

answered Aug 12 '14 at 2:51
ElefantPhace

2,29431023

Google Chrome is different from Chromium.

What's the difference between Google Chrome and/or Chromium? What are the advantages/disadvantages to each?

Chromium can be found in the Ubuntu Software Centre. To download Google Chrome however:

  1. Goto: https://www.google.com/intl/en-CA/chrome/browser/

  2. Click Download Chrome

  3. Choose either 32 bit .deb(for 32bit Ubuntu) or 64 bit .deb (for 64bit Ubuntu)

  4. Click Accept and Install

  5. Download .deb file to a folder (Downloads is the default folder)

  6. Open up your Downloads folder.

  7. Double-click the .deb file you just downloaded.

  8. This should launch Ubuntu Software Centre.

  9. When it prompts you to whether you wish to install Chrome, just say yes.

  10. Input Password when asked to install.
answered Aug 12 '14 at 3:16
Akiva

4,249124091

When installing the debian package, if you have errors of the sort:

packages have unmet dependencies

or

package <package-name> is not installed

The following worked for me:

sudo apt-get -f install

The above will install the packages that were not installed but are needed for the debian package.

Now, you should be able to install the debian package via:

sudo dpkg -i <google-chrome>.deb
answered Mar 7 '17 at 5:27
Rocky Inde

26136

You can try saving the below script into a file and running it:

if [[ $(getconf LONG_BIT) = "64" ]]
then
echo "64bit Detected" &&
echo "Installing Google Chrome" &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
sudo dpkg -i google-chrome-stable_current_amd64.deb &&
rm -f google-chrome-stable_current_amd64.deb
else
echo "32bit Detected" &&
echo "Installing Google Chrome" &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb &&
sudo dpkg -i google-chrome-stable_current_i386.deb &&
rm -f google-chrome-stable_current_i386.deb
fi

It will automatically detect your architecture and install the proper version of Google Chrome for your system.

Script source here

answered Nov 4 '14 at 17:02
brine

732

Hello people of the Ubuntu Universe, I wrote a c++ program for installing google chrome 64 bit, Pandya's answer is very similiar. I usually write programs to handle anything, that I think I might have to do again in the future! Consequently installing google-chrome is something I've done many times.

If you do not already have build-essential installed as dependency, or c++ (g++) development you must install it first:

:~$ sudo apt-get install build-essential -y

Next copy the following program from this post into gedit and save it as googGt.cpp (change your tab width to 4):

//************************************************************************
// This googGt.cpp is created to install the google-chrome web browser
// on Ubuntu 14.04 lts 64 bit.
// author@GWade
//************************************************************************ #include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <locale> using namespace std; void PrntGoogPpa(ofstream& googPpa); void PrntGoogGtr(ofstream& googGtr); void PrntGoogLst(ofstream& gogLst); int main()
{ cout << "Creating the script that adds google-chrome PPA\n" <<endl; // create the googPpa.sh shell script
ofstream googPpa; googPpa.open("googPpa.sh"); PrntGoogPpa(googPpa); googPpa.close(); cout << "Changing the mode of access to executable on the script\n" << endl;
// change mode of access to executable
system("chmod +x googPpa.sh");
cout << "Excuting and installing the Google-Chrome Web Browser\n" << endl;
system("./googPpa.sh"); // create an ofstream object and call the function
cout << "Creating the script that installs google-chrome\n" << endl;
ofstream googGtr;
googGtr.open("googGt.sh");
PrntGoogGtr(googGtr);
googGtr.close(); cout << "The googGt.sh script has been created\n" << endl;
cout << "Changing the mode of access to executable on the script\n" << endl;
system("chmod +x googGt.sh");
cout << "Excuting and installing the Google-Chrome Web Browser\n" << endl;
system("./googGt.sh"); system("rm -rf /etc/apt/sources.list.d/google-chrome.list"); ofstream googLst;
googLst.open("/etc/apt/sources.list.d/google-chrome.list");
PrntGoogLst(googLst);
googLst.close(); }
void PrntGoogPpa(ofstream& googPpa)
{ googPpa << "#! /bin/bash\n\nUPD=\"updatedb\"\n" << endl; googPpa << "wget -q -O - "
<< "https://dl-ssl.google.com/linux/linux_signing_key.pub"
<< " | sudo apt-key add -" << "\n" << endl; googPpa << "echo \"deb http://dl.google.com/linux/chrome/deb/ stable main\""
<< " >> /etc/apt/sources.list.d/google.list\n\n$UPD\n\nexit" << endl; }
void PrntGoogGtr(ofstream& googGtr)
{
googGtr << "#! /bin/bash\n\nAPGTN=\"apt-get install\"" << endl; googGtr << "APUPD=\"apt-get update\"\nUPD=\"updatedb\"\n" << endl; googGtr << "$APUPD\n\n$APGTN google-chrome-stable -y\n" << endl; googGtr << "$UPD\n\nexit" << endl; }
void PrntGoogLst(ofstream& googLst)
{ googLst << "### THIS FILE IS AUTOMATICALLY CONFIGURED ###" << endl; googLst << "# You may comment out this entry, but any other modifications"
<< " may be lost." <<endl; googLst << "# deb http://dl.google.com/linux/chrome/deb/ stable main" <<endl; }

Its nothing spectacular just some function abstraction. Its pretty easy to follow. Once you've copied and saved the program compile from command line:

:~$ g++ googGt.cpp

This create an a.out in the working directory. Next gain root privledges and execute the program.

Gaining root privledges:

:~$ sudo bash

Executing the newly created binary:

:~# ./a.out

The process is pretty straight forward first add the google PPA, then it updates the software sources, then it installs google-chrome, and last but not least it comments out the google-chrome.list url addresses so it doesn't update the 32 bit version as well as 64 bit on subsequent apt-get updates. You will now have the scripts 1) the script that adds the googPpa.sh and 2) the script that installs google-chrome (googGt.sh).

GO UBUNTU!!

answered Apr 6 '15 at 5:04
oOpSgEo

37618

protected by Community♦ Dec 8 '14 at 16:34

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged software-installation google-chrome or ask your own question.

How do you install Google Chrome on Ubuntu?的更多相关文章

  1. Install Google Pinyin on Ubuntu 14.04

    Install Google Pinyin on Ubuntu 14.04 I've been spending more and more time on Ubuntu and I'm not us ...

  2. Install Google Chrome on Fedora 28/27, CentOS/RHEL 7.5 (在 fedora 28 等 上 安装 chrome)

    今天在使用 fedora 安装 chrome 的时候遇到了问题,今天进行将安装过程进行记录下来.需要安装第三方软件仓库. 我们需要进行安装 fedora-workstation-repositorie ...

  3. [转载]How to Install Google Chrome 39 in CentOS/RHEL 6 and Fedora 19/18

    FROM: http://tecadmin.net/install-google-chrome-in-centos-rhel-and-fedora/ Google Chrome is a freewa ...

  4. install google chrome

    32bit: wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb sudo dpkg -i go ...

  5. Ubuntu 12.04 怎样安装 Google Chrome

    方法一: http://www.360doc.com/content/14/0723/19/4338_396584130.shtml 方法2: How to Install Google Chrome ...

  6. Google Chrome 55 Released – Install on RHEL/CentOS 7/6 and Fedora 25-20

    Google Chrome is a freeware web browser developed by Google Inc. Google Chrome team proudly announce ...

  7. Google Chrome 35 Released – Install on RHEL/CentOS 6 and Fedora 20-15

    Google Chrome is a freeware web browser developed by Google Inc. Google Chrome team proudly announce ...

  8. Ubuntu 14.04 LTS下安装Google Chrome浏览器

    在Ubuntu 14.04下安装Google Chrome浏览器非常简单,只要到Chrome的网站下载Deb安装包并进行安装即可.当然你也可以使用APT软件包管理器来安装Google Chrome浏览 ...

  9. 在ubuntu下安装google chrome

    由于手上有两台电脑,再加上我那个选择困难症加上纠结劲.所以果断把其中一台电脑只装linux系统,另一台电脑只装windows了.免得我老纠结!于是linux便选择了ubuntu. 由于浏览器一直用的是 ...

随机推荐

  1. java实现读取yaml文件,并获取值

    首先在项目src目录下新建一个test.yaml的文件. 代码如下: spring: application: name: cruncher datasource: driverClassName: ...

  2. Spring Boot (8) 全局异常处理

    服务层和dao层的最终异常会交给controller处理,控制层的异常则会记录日志系统. 新建一个类用来处理异常,名字随便GlobalDefaultExceptionHandler.java,加上@C ...

  3. [转]SQLServe 存储表结构的几个系统表

    1. 获取表的基本字段属性 获取SqlServer中表结构 SELECT syscolumns.name,systypes.name,syscolumns.isnullable, syscolumns ...

  4. Laravel5.1学习笔记6 响应

    基本响应 附加头信息到响应 附加Cookie到响应 其他响应 View视图响应 JSON响应 File下载 重定向 重定向到命名路由 重定向到控制器Action 附带闪回Session数据重定向 响应 ...

  5. 用List表示多重性

    练习目标-在类中使用List作为模拟集合操作: 在本练习中,将用List实现银行与客户间的多重关系. 任务 对银行来说,可添加Bank类. Bank 对象跟踪自身与其客户间的关系.用Customer对 ...

  6. Deutsch lernen (14)

    1.    das Abseits, -  越位 Der Linienrichter winkte Abseits.  winken - winkte - gewunken  示意 2.    abs ...

  7. mac 上执行 rm -rf /

    # 很可怕的指令,清空磁盘所有资料,千万不要用 sudo 尝试,吓的小心肝差掉跳出来 rm -rf / 无聊,想执行rm -rf /会怎样,想起没加sudo时对~/download执行提示权限不足,被 ...

  8. apicloud UISearchBar 使用方法

    app中经常会有搜索的页面. 大概逻辑是,一般来说首页有一个搜索的图,点击之后跳转到一个搜索的页面,在这个页面做搜索. 正常代码逻辑 <body> <a class="bu ...

  9. spring cloud(五) hystrix

    开启feign 熔断 hystrix    整合hystrix-dashboard监控面板 1. 服务调用者boot工程 pom引入依赖 <!-- hystrix-dashboard 监控依赖 ...

  10. BZOJ [POI2004]PRZ 状压DP_二进制_骚操作

    二进制就是比谁更sao... Code: #include <bits/stdc++.h> #define setIO(s) freopen(s".in"," ...