Ubuntu 安装Chrome

本文介绍了在Ubuntu操作系统中安装Chrome浏览器的过程。首先,从官方网址下载deb安装包,然后使用sudo dpkg命令进行安装。如果遇到依赖问题,如libnss3-1d,需解决依赖并继续安装。

去官网下载安装包 google-chrome-stable_current_amd64.deb

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


sudo dpkg -i google-chrome-stable_current_amd64.deb 

[sudo] password for mchen: 
Selecting previously 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

$ 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: Could 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 1:1.2.1-2 [8,646 B]
Fetched 1,218 kB in 1s (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 previously unselected package libnss3-1d.
Unpacking libnss3-1d (from .../libnss3-1d_3.14.3-0ubuntu0.12.04.1_amd64.deb) ...
Selecting previously 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 (1:1.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

安装完成


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值