安装 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
尝试这些命令
sudo apt-get clean
sudo apt-get update
sudo apt-get install -f
sudo dpkg -a --configure
sudo apt-get dist-upgrade