ubuntu下chrome的安装

简介:
1
2
3
4
5
6
通过google下载安装包
huwei@huwei:~ /Downloads $ ll -a
total 47028
drwxr-xr-x  2 huwei huwei     4096 Jul 28 00:16 ./
drwxr-xr-x 18 huwei huwei     4096 Jul 28 00:12 ../
-rw-rw-r--  1 huwei huwei 48147924 Jul 28 00:16 google-chrome-stable_current_amd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
使用 sudo  dpkg -i 安装包名字 安装chrome,但是u缺少相关库文件,系统会报错
huwei@huwei:~ /Downloads sudo  dpkg -i google-chrome-stable_current_amd64.deb 
(Reading database ... 198622 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (44.0.2403.107-1) over (44.0.2403.107-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
  google-chrome-stable depends on libappindicator1; however:
   Package libappindicator1 is not installed.
 
dpkg: error processing package google-chrome-stable (-- install ):
  dependency problems - leaving unconfigured
Processing triggers  for  man -db (2.6.7.1-1ubuntu1) ...
Processing triggers  for  gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers  for  desktop- file -utils (0.22-1ubuntu1) ...
Processing triggers  for  bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding  /usr/share/applications/bamf-2 .index...
Processing triggers  for  mime-support (3.54ubuntu1.1) ...
Errors were encountered  while  processing:
  google-chrome-stable
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
尝试安装缺少的文件,通过报错“Package libappindicator1 is not installed”,我们尝试安装libappindicator1文件
huwei@huwei:~ /Downloads sudo  apt-get  install  libappindicator1
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:
  libappindicator1 : Depends: libindicator7 (>= 0.4.90) but it is not going to be installed
E: Unmet dependencies. Try  'apt-get -f install'  with no packages (or specify a solution).
 
通过提示,我们安装libappindicator1 libindicator7两个文件
huwei@huwei:~ /Downloads sudo  apt-get -f  install  libappindicator1 libindicator7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
   account-plugin-windows-live libupstart1
Use  'apt-get autoremove'  to remove them.
The following NEW packages will be installed:
   libappindicator1 libindicator7
0 upgraded, 2 newly installed, 0 to remove and 12 not upgraded.
1 not fully installed or removed.
Need to get 39.9 kB of archives.
After this operation, 201 kB of additional disk space will be used.
Get:1 http: //cn .archive.ubuntu.com /ubuntu/  trusty-updates /main  libindicator7 amd64 12.10.2+14.04.20141007.1-0ubuntu1 [21.7 kB]
Get:2 http: //cn .archive.ubuntu.com /ubuntu/  trusty-updates /main  libappindicator1 amd64 12.10.1+13.10.20130920-0ubuntu4.1 [18.2 kB]
Fetched 39.9 kB  in  0s (127 kB /s )            
Selecting previously unselected package libindicator7.
(Reading database ... 198622 files and directories currently installed.)
Preparing to unpack ... /libindicator7_12 .10.2+14.04.20141007.1-0ubuntu1_amd64.deb ...
Unpacking libindicator7 (12.10.2+14.04.20141007.1-0ubuntu1) ...
Selecting previously unselected package libappindicator1.
Preparing to unpack ... /libappindicator1_12 .10.1+13.10.20130920-0ubuntu4.1_amd64.deb ...
Unpacking libappindicator1 (12.10.1+13.10.20130920-0ubuntu4.1) ...
Setting up libindicator7 (12.10.2+14.04.20141007.1-0ubuntu1) ...
Setting up libappindicator1 (12.10.1+13.10.20130920-0ubuntu4.1) ...
Setting up google-chrome-stable (44.0.2403.107-1) ...
update-alternatives: using  /usr/bin/google-chrome-stable  to provide  /usr/bin/x-www-browser  (x-www-browser)  in  auto mode
update-alternatives: using  /usr/bin/google-chrome-stable  to provide  /usr/bin/gnome-www-browser  (gnome-www-browser)  in  auto mode
update-alternatives: using  /usr/bin/google-chrome-stable  to provide  /usr/bin/google-chrome  (google-chrome)  in  auto mode
Processing triggers  for  libc-bin (2.19-0ubuntu6.6) ...

到此,chrome安装成功!!!



本文转自 yawei555 51CTO博客,原文链接:http://blog.51cto.com/huwei555/1678955,如需转载请自行联系原作者

相关文章
|
22天前
|
Ubuntu NoSQL 关系型数据库
Ubuntu系统下安装常用软件
Ubuntu系统下安装常用软件
45 0
Ubuntu系统下安装常用软件
|
1月前
|
Ubuntu Linux C语言
Ubuntu下安装vscode,并解决终端打不开vscode的问题
Ubuntu下安装vscode,并解决终端打不开vscode的问题
135 0
|
2月前
|
存储 Ubuntu 网络协议
|
1月前
|
Ubuntu Docker 容器
如何在Ubuntu上安装Docker?
【2月更文挑战第10天】
243 0
|
2月前
|
负载均衡 Ubuntu 应用服务中间件
|
2月前
|
Web App开发 Linux
只需五步,在Linux安装chrome及chromedriver(CentOS)
只需五步,在Linux安装chrome及chromedriver(CentOS)
282 1
|
24天前
|
Ubuntu 关系型数据库 MySQL
Ubuntu 中apt 安装MySQL数据库
Ubuntu 中apt 安装MySQL数据库
66 0
|
3天前
|
Ubuntu 数据安全/隐私保护
在UBUNTU虚拟机上安装R软件包
在UBUNTU虚拟机上安装R软件包
|
3天前
|
存储 编解码 Ubuntu
0-零基础安装ubuntu(超详细安装步骤)
0-零基础安装ubuntu(超详细安装步骤)
|
4天前
|
Ubuntu Linux 定位技术
手把手教你优雅的安装虚拟机 Ubuntu —— 图文并茂
手把手教你优雅的安装虚拟机 Ubuntu —— 图文并茂