Python 安装Chrome驱动程序(selenium)依赖项时出错

Python 安装Chrome驱动程序(selenium)依赖项时出错,python,python-3.x,installation,selenium-chromedriver,Python,Python 3.x,Installation,Selenium Chromedriver,我需要安装Chrome驱动程序-Selenium,我遵循此文件中的命令: 配置: SO-Ubuntu16 Python 3.4 但我没有进步 sudo apt get-f install-y解压openjdk-8-jre-headless xvfb libxi6 libgconf-2-4 输出 Reading package lists... Done Building dependency tree Reading state information... Done libxi6 is alr

我需要安装Chrome驱动程序-Selenium,我遵循此文件中的命令:

配置:

SO-Ubuntu16

Python 3.4

但我没有进步

sudo apt get-f install-y解压openjdk-8-jre-headless xvfb libxi6 libgconf-2-4

输出

Reading package lists... Done
Building dependency tree
Reading state information... Done
libxi6 is already the newest version (2:1.7.6-1).
libxi6 set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libgconf-2-4 : Depends: gconf2-common (= 3.2.6-3ubuntu6) but it is not going to be installed
                Recommends: gconf-service but it is not going to be installed
 openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed
                          Depends: java-common (>= 0.28) but it is not going to be installed
                          Depends: libcups2 but it is not going to be installed
                          Depends: liblcms2-2 (>= 2.2+git20110628) but it is not going to be installed
                          Depends: libnss3 (>= 2:3.17.1) but it is not going to be installed
                          Depends: libpcsclite1 (>= 1.3.0) but it is not going to be installed
 perl : Depends: libperl5.22 (= 5.22.1-9ubuntu0.9) but 5.22.1-9ubuntu0.6 is to be installed
 xvfb : Depends: xserver-common (>= 2:1.18.4-0ubuntu0.12) but it is not going to be installed
        Depends: libxfont1 (>= 1:1.4.2) but it is not going to be installed
        Depends: x11-xkb-utils but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

如何求解?

我通过以下命令成功求解:

sudo apt-get install -f
sudo apt-get autoremove