通过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
使用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
尝试安装缺少的文件,通过报错“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安装成功!!!