无法安装谷歌浏览器。我如何解决它?


35

我无法安装Google Chrome浏览器。我想知道为什么以及如何解决它。这是我在安装Google Chrome时从终端获得的日志。

$ sudo dpkg --install chrome.deb
[sudo] password for young: 
Selecting previously unselected package google-chrome-stable.
(Reading database ... 141861 files and directories currently installed.)
Unpacking google-chrome-stable (from chrome.deb) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libgconf2-4 (>= 2.27.0); however:
  Package libgconf2-4 is not installed.
 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 desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
 google-chrome-stable

$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  linux-headers-3.5.0-17
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  google-chrome-stable
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 140 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 141960 files and directories currently installed.)
Removing google-chrome-stable ...
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 ...

$ sudo dpkg --install chrome.deb
Selecting previously unselected package google-chrome-stable.
(Reading database ... 141861 files and directories currently installed.)
Unpacking google-chrome-stable (from chrome.deb) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libgconf2-4 (>= 2.27.0); however:
  Package libgconf2-4 is not installed.
 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 desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
 google-chrome-stable

它在GUI中也不起作用。看看我得到了什么:

在GUI上


同样的问题,下面的答案似乎都不起作用。
严景贤

Answers:



56

您可以通过安装缺少的依赖项来解决此问题。
只需运行以下命令
(运行之后sudo dpkg -i google-chrome-stable_current_i386.deb)。

sudo apt-get install -f

这将安装缺少的依赖项并为您配置Google Chrome。


1
阅读问题。这正是OP所要做的,而问题是关于...的
gertvdijk

3
这节省了我的面包。耶
尼古拉斯·迪广场2015年

效果很好,只需添加您需要运行两次安装
Ahmed Hamdy

10

为什么不从Ubuntu仓库安装Chromium?

sudo apt-get install chromium-browser

这么简单!


2
目前,这是一个较旧的版本,其中包含许多Google品牌版本中已修复的安全错误。
gertvdijk 2012年

我不想安装Chrome浏览器,因为它不太稳定,并且主要针对开发人员。
猫头鹰2012年

2
我发现它非常稳定。本质上就像Chrome。
流畅的德克萨斯州,2012年

我不会知道的。如何知道何时使用apt-get,何时不使用apt-get?
布鲁斯·惠顿2013年

1
你想要一个例子chrome,而不是chromium:如果你已经有一些付费订阅其在Windows +电视+智能手机的工作原理,你可能想访问这个Linux下为好,对不对?在这种情况下,您可能chrome需要立即使用所需的一切。它还提供了轻松的更新。与之不同的chromium是,大多数情况下,订阅不支持它,并且由于应用了所有这些调整(例如Flash,DRM等),通常难以保持更新(请阅读:以确保安全)。
蒂诺,2016年

1

sudo apt-get update ; sudo apt-get install libgconf2-4 libnss3-1d libxss1

在此处发布任何错误输出。如果没有错误,sudo dpkg -i chrome.deb则以后再检查,您应该会很好。


您好,谢谢您的回复。我收到一些错误消息:pastebin.com/CYeCMWiE
猫头鹰

0

我最近看到了此错误,并且可以使用以下方法解决它:

apt-get install libcurl3

0

我有同样的问题,我用它来解决。

sudo apt-get update
sudo apt-get upgrade
sudo apt -f install

然后,尝试再次安装Google Chrome。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.