我尝试安装 Google Chrome,但在安装过程中收到以下消息。当我写下
sudo dpkg -i ~/Downloads/google-chrome-stable_current_amd64.deb
我收到以下消息:
Selecting previously unselected package google-chrome-stable.
(Reading database ... 237226 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (59.0.3071.86-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 bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for man-db (2.7.6.1-2) ...
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 additional packages will be installed:
libappindicator1 libindicator7
The following NEW packages will be installed:
libappindicator1 libindicator7
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
9 not fully installed or removed.
Need to get 41.0 kB/89.1 kB of archives.
After this operation, 157 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://bd.archive.ubuntu.com/ubuntu zesty/main amd64 libindicator7 amd64 16.10.0+16.10.20160913-0ubuntu1 [21.9 kB]
Get:2 http://bd.archive.ubuntu.com/ubuntu zesty/main amd64 libappindicator1 amd64 12.10.1+17.04.20170215-0ubuntu1 [19.2 kB]
Fetched 41.0 kB in 1s (40.5 kB/s)
Selecting previously unselected package libindicator7.
(Reading database ... 237329 files and directories currently installed.)
Preparing to unpack .../libindicator7_16.10.0+16.10.20160913-0ubuntu1_amd64.deb ...
Unpacking libindicator7 (16.10.0+16.10.20160913-0ubuntu1) ...
Selecting previously unselected package libappindicator1.
Preparing to unpack .../libappindicator1_12.10.1+17.04.20170215-0ubuntu1_amd64.deb ...
Unpacking libappindicator1 (12.10.1+17.04.20170215-0ubuntu1) ...
Setting up libindicator7 (16.10.0+16.10.20160913-0ubuntu1) ...
dpkg: dependency problems prevent configuration of libc6:i386:
libc6:i386 depends on libgcc1; however:
Package libgcc1:i386 is not installed.
dpkg: error processing package libc6:i386 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of libpcre3:i386:
libpcre3:i386 depends on libc6 (>= 2.4); however:
Package libc6:i386 is not configured yet.
dpkg: error processing package libpcre3:i386 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of libgpg-error0:i386:
libgpg-error0:i386 depends on libc6 (>= 2.15); however:
Package libc6:i386 is not configured yet.
dpkg: error processing package libgpg-error0:i386 (--configure):
dependency problems - leaving unconfigured
Setting up libappindicator1 (12.10.1+17.04.20170215-0ubuntu1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.24-9ubuntu2) ...
/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link
dpkg: dependency problems prevent configuration of libselinux1:i386:
libselinux1:i386 depends on libc6 (>= 2.8); however:
Package libc6:i386 is not configured yet.
libselinux1:i386 depends on libpcre3; however:
Package libpcre3:i386 is not configured yet.
dpkg: error processing package libselinux1:i386 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Setting up google-chrome-stable (59.0.3071.86-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
dpkg: dependency problems prevent configuration of liblzma5:i386:
liblzma5:i386 depends on libc6 (>= 2.17); however:
Package libc6:i386 is not configured yet.
dpkg: error processing package liblzma5:i386 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of liblz4-1:i386:
liblz4-1:i386 depends on libc6 (>= 2.4); however:
Package libc6:i386 is not configured yet.
dpkg: error processing package liblz4-1:i386 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libgcrypt20:i386:
libgcrypt20:i386 depends on libc6 (>= 2.15); however:
Package libc6:i386 is not configured yet.
libgcrypt20:i386 depends on libgpg-error0 (>= 1.14); however:
Package libgpg-error0:i386 is not configured yet.
dpkg: error processing package libgcrypt20:i386 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
libc6:i386
libpcre3:i386
libgpg-error0:i386
libselinux1:i386
liblzma5:i386
liblz4-1:i386
libgcrypt20:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
听起来好像没有安装依赖项。 我会执行以下操作。
前往终端
类型
sudo dpkg -i /path/to/deb/file
对我来说例如是:
sudo dpkg -i /Downloads/google-chrome-stable_current_amd64.deb
然后输入
sudo apt-get install -f
sudo apt-get install -f
将安装所需的任何依赖项。
这是我在 Ubuntu Gnome 17.04 上安装 Chrome 所要做的。希望这对您有所帮助。
答案2
我回答了关于 steam 的相同问题这里。以下是适用于 Google Chrome 的修改版本
解决此问题的第一步是启用对 32 位二进制文件的支持。您可以通过运行
sudo dpkg --add-architecture i386 && sudo apt update 现在尝试再次安装 Google Chrome。
如果这仍然不起作用,请尝试手动安装软件包。
- 打开https://packages.ubuntu.com/在您的网络浏览器中。
- 向下滚动到搜索包目录区域。
- 从分发下拉菜单中选择您的 Ubuntu 版本(在本例中为
yakkety
)。 - 输入包名称并单击搜索(本例中为 libgcc1)
- 单击“精确匹配”(本例中为 Package libgcc1)
- 在底部的表格中选择 i386
- 选择页面上的其中一个链接。选择适合您所在国家/地区的链接可能是一个好主意,但这并不重要。
- 打开终端并导航到您下载包的目录。
- 运行 sudo dpkg -i file.deb,其中 file.deb 是您刚刚下载的文件。完成后,尝试再次安装 Chrome。
如果它提示您依赖于其他软件包的错误,只需按照该软件包的步骤 1-9 操作,然后尝试再次安装 Chrome。您可能需要多次执行此操作。