Dec 17, 2013

How to install Chrome on CentOS 6.4 and 6.5

I have been always using Chrome, and even I am quite new to linux, I still want to use Chrome even it's not supported in CentOS 6.4 and 6.5, and below are the steps.

First of all, thanks to Rihard, he provides a script to install Chrome, which does 99.9% of the work. It's great!
 http://chrome.richardlloyd.org.uk/

But when I use the script, I still met some problems, maybe it's because I am using the company's internet proxy, or because in China, we cannot access some websites due to great firewall. Anyway, I need to do something to finish the 0.1% work left.

Step1: Follow the instructions here: http://chrome.richardlloyd.org.uk/ , download install_chrome.sh (http://chrome.richardlloyd.org.uk/install_chrome.sh)

Step2: It's better that you switch to root account to run the script, or use sudo ./install_chrome.sh. Assume you are running a root account:

chmod u+x install_chrome.sh
./install_chrome.sh

In this step, I met several problems:
a. connection to https://dl.google.com failed...
I solved this by using a no proxy internet. In our company, we always using proxy. But the connection just failed, so I run the command at home where no proxy is used.

b. download is very slow as shown in the screenshot below

The time estimation goes up to several hours and the progress always hung.
I solved this by using Ctrl C to stop the ./install_chrome.sh, and run this command again. Sometimes it hang at another package, but tried several times, the installation succeeded.


Note for CentOS 6.4: In CentOS 6.4, I see the script installed successfully. But when I click the icon, nothing happened. Then I open a terminal:

cd /usr/bin
./google-chrome

It shows the error:
[sai@localhost bin]$ ./google-chrome
./google-chrome: /usr/lib64/libnss3.so: version `NSS_3.14.3' not found (required by ./google-chrome)

I tried to follow the instructions here but didn't work.
http://www.linuxquestions.org/questions/slackware-14/google-chrome-30-error-nss-4-13-5-upgrade-4175482053/

What I did to solve this problem is: 
I searched and find a link here:
And I download and installed it. Now the problem solved. 

[Update on 2014/2/25] Sorry I didn't know the package link will be removed so I didn't save a copy of the package. I tried to find one and put it in the share folder below. Please try it and let me know whether it works for you:
https://drive.google.com/file/d/0B_ZDNNkWG1dYVXpHeDBwaHNBTXc/edit?usp=sharing
Last but not least, 
to uninstall Chrome, please run:
./install_chrome.sh -u

to update Chrome, please run:
sudo yum update google-chrome-stable



If you find this blog is useful, please kindly click the ads on this page to help. Thank you very much.

3 comments:

Unknown said...
This comment has been removed by the author.
Unknown said...

我碰到了同样的问题
但是http://rpmfind.net/linux/RPM/centos/updates/6.4/x86_64/Packages/nss-3.14.3-4.el6_4.x86_64.html
失效了
有其他的解决办法么?
谢谢

Sai said...

Sorry that I didn't know the package will be removed, so I didn't save a copy for that. But I searched and find one, please check whether it can solve your problem:
https://drive.google.com/file/d/0B_ZDNNkWG1dYVXpHeDBwaHNBTXc/edit?usp=sharing

If not, please also let me know and I will try other methods.
Thank you for your interest on my post.