現在、OSとしてubuntu 14を使用しています。Ubuntuにopenjdk-7-jdkをインストールしたいのですが、と入力するとエラーが発生しますsudo apt-get install openjdk-7-jdk
。ここにエラーメッセージがあります:
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:
google-chrome-stable : Depends: libappindicator1 but it is not going to be installed
openjdk-7-jdk : Depends: openjdk-7-jre (= 7u79-2.5.6-0ubuntu1.14.04.1) but it is not going to be installed
Recommends: libxt-dev 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 -f install openjdk-7-jdk
がうまくいきませんでした。
私を助けてください。ありがとう。
壊れたパッケージがあるため、openjdkをインストールする前に。コマンドを実行する
sudo apt-get -f install
壊れた依存関係をすべてインストールしてからコマンドを実行します
sudo apt-get install openjdk-7-jdk
それが動作します
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加