Install chrome on Ubuntu

Source: Internet
Author: User

Go to the official website to download the installation package google-chrome-stable_current_amd64.deb

Address: https://www.google.com/intl/zh-CN/chrome/browser/

$Sudo dpkg-I google-chrome-stable_current_amd64.deb

[Sudo] password for mchen:
Selecting previusly unselected package Google-chrome-stable.
(Reading database... 141522 files and directories currently installed .)
Unpacking Google-chrome-stable (from google-chrome-stable_current_amd64.deb )...
Dpkg: dependency problems prevent configuration of Google-chrome-stable:
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 unconfigured
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...
Errors were encountered while processing:

Google-chrome-stable

Libnss3-1d needs to be installed at this time

$ Sudo apt-Get install libnss3-1d
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get-F install' to correct these:
The following packages have unmet dependencies:
Google-chrome-stable: depends: libxss1 but it is not going to be installed
Libnss3-1d: depends: libnss3 (= 3.14.3-0ubuntu0. 12.04.1) But 3.14.1-0ckbi1. 93ubuntu. 0.12.04.1 is to be installed
E: Unmet dependencies. Try 'apt-get-F install' with no packages (or specify a solution ).
$ Apt-get-F install
E: cocould not open lock file/var/lib/dpkg/lock-open (13: Permission denied)

E: Unable to lock the Administration Directory (/var/lib/dpkg/), are you root?

$Sudo apt-get-F install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
Libnss3 libnss3-1d libxss1
The following new packages will be installed:
Libnss3-1d (libxss1)
The following packages will be upgraded:
Libnss3
1 upgraded, 2 newly installed, 0 to remove and 283 not upgraded.
1 not fully installed or removed.
Need to get 1,218 KB of archives.
After this operation, 187 KB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get: 1 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libnss3 amd64 3.14.3-0ubuntu0. 12.04.1 [1,196 KB]
Get: 2 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libnss3-1d amd64 3.14.3-0ubuntu0. 12.04.1 [13.4 KB]
Get: 3 http://cn.archive.ubuntu.com/ubuntu/ precise/main libxss1 amd64. 2.1-2 [8,646 B]
Fetched 1,218 kb in 1 S (1,145 kb/s)
(Reading database... 141626 files and directories currently installed .)
Preparing to replace libnss3 3.14.1-0ckbi1. 93ubuntu. 0.12.04.1 (using.../libnss3_3.14.3-0ubuntu0.12.04.1_amd64.deb )...
Unpacking replacement libnss3...
Selecting previolet unselected package libnss3-1d.
Unpacking libnss3-1d (from.../libnss3-1d_3.14.3-0ubuntu0.12.04.1_amd64.deb )...
Selecting previusly unselected package libxss1.
Unpacking libxss1 (from.../libxss1_1% 3a1. 2.1-2_amd64.deb )...
Setting up libnss3 (3.14.3-0ubuntu0. 12.04.1 )...
Setting up libnss3-1d (3.14.3-0ubuntu0. 12.04.1 )...
Setting up libxss1 (. 2.1-2 )...
Setting up Google-chrome-stable (27.0.1453.93-r200836 )...
Update-Alternatives: Using/usr/bin/Google-chrome to provide/usr/bin/X-WWW-browser (X-WWW-browser) in auto mode.
Update-Alternatives: Using/usr/bin/Google-chrome to provide/usr/bin/gnome-WWW-browser (gnome-WWW-browser) in auto mode.
Processing triggers for libc-bin...
Ldconfig deferred processing now taking place

Installation Complete

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.