web-dev-qa-db-ja.com

新しいソフトウェアをインストールできない:依存関係の問題

PyCharmをインストールするときにこのエラーが発生し、起動ソフトウェアをインストールできません。そのままにしておきました。しかし、依存関係が壊れているため、新しいソフトウェアをインストールできません。

installArchives() failed: Preconfiguring packages ...
Preconfiguring packages ...
Preconfiguring packages ...
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 333416 files and directories currently installed.)
Preparing to unpack .../Oracle-Java9-installer_9b102+9b102arm-1~webupd8~0_all.deb ...

Oracle-license-v1-1 license could not be presented
try 'dpkg-reconfigure debconf' to select a frontend other than noninteractive

dpkg: error processing archive /var/cache/apt/archives/Oracle-Java9-installer_9b102+9b102arm-1~webupd8~0_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/Oracle-Java9-installer_9b102+9b102arm-1~webupd8~0_all.deb
Error in function: 
dpkg: dependency problems prevent configuration of pycharm:
 pycharm depends on Java6-runtime | Java7-runtime; however:
  Package Java6-runtime is not installed.
  Package Java7-runtime is not installed.

dpkg: error processing package pycharm (--configure):
 dependency problems - leaving unconfigured

http://paste.ubuntu.com/15282410/

私は今どうすればいい?

1
Aiyoyo

これらのコマンドを試してください

Sudo apt-get clean
Sudo apt-get update
Sudo apt-get install -f
Sudo dpkg -a --configure
Sudo apt-get dist-upgrade
2