Java 安装不起作用

Java 安装不起作用

我一直试图安装 Java,但无法让它工作。我做了什么http://tipsonubuntu.com/2016/07/31/install-oracle-java-8-9-ubuntu-16-04-linux-mint-18/当我在执行第 2 步时遇到问题时说道:

Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done

您可能需要运行apt-get -f install来纠正这些问题:

The following packages have unmet dependencies:  
  google-chrome-stable : Depends: libcurl3 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

终端上是这么写的。我绝对是菜鸟。我对它的工作方式一无所知。

答案1

请在其中输入该命令:

sudo apt-get install -f

当系统要求您输入管理员密码时,请输入该密码,请注意,输入密码时不会看到任何可见的反馈。完成后,按下Enter并坐下来让它完成工作。现在返回该教程并按照指示继续其他步骤。

man apt-get为了更好地理解该选项的含义,请参见-f

 -f, --fix-broken
       Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT
       to deduce a likely solution. If packages are specified, these have to completely correct the problem. The option is sometimes necessary when
       running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's
       dependency structure can be so corrupt as to require manual intervention (which usually means using dpkg --remove to eliminate some of the
       offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken.

相关内容