去官网下载安装包 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
安装完成
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)