我已经安装了Java8并将其设置为默认值。这是在ubuntu 14.04 lt上。
bernard@bernard-Lenovo-G580:~$ java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
每当我尝试安装maven时,都会遇到这个错误。
bernard@bernard-Lenovo-G580:~$ sudo apt-get install maven
Reading package lists... Done
Building dependency tree
Reading state information... Done
maven is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-36 linux-headers-3.13.0-36-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
28 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up oracle-java8-installer (8u20+8u6arm-1~webupd8~0) ...
Downloading Oracle Java 8...
--2014-09-30 14:54:20-- http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 62.8.89.22, 62.8.89.25
Connecting to download.oracle.com (download.oracle.com)|62.8.89.22|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz [following]
--2014-09-30 14:54:20-- https://edelivery.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz
Connecting to 172.16.0.83:8080... failed: Connection timed out.
Retrying.
--2014-09-30 14:56:28-- (try: 2) https://edelivery.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz
Connecting to 172.16.0.83:8080... failed: Connection timed out.
Retrying.
--2014-09-30 14:58:38-- (try: 3) https://edelivery.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz
Connecting to 172.16.0.83:8080... failed: Connection timed out.
Retrying.
--2014-09-30 15:00:48-- (try: 4) https://edelivery.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz
Connecting to 172.16.0.83:8080... failed: Connection timed out.
Retrying.
--2014-09-30 15:02:59-- (try: 5) https://edelivery.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz
Connecting to 172.16.0.83:8080... failed: Connection timed out.
Giving up.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of junit4:
junit4 depends on default-jre-headless | java5-runtime-headless; however:
Package default-jre-headless is not installed.
Package oracle-java8-installer which provides default-jre-headless is not configured yet.
Package java5-runtime-headless is not installed.
Package oracle-java8-installer which provides java5-runtime-headless is not configured yet.
dpkg: error processing package junit4 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of libbatik-java:
libbatik-java depends on default-jre-headless | java2-runtime-headless; however:
Package default-jre-headless is not installed.
Package oracle-java8-installer which provides default-jre-headless is not configured yet.
Package java2-runtime-headless is not installed.
Package oracle-java8-installer which provides java2-runtime-headless is not configured yet.
dpkg: error processing package libbatik-java (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of libfop-java:
libfop-java depends on libbatik-java (>= 1.7); however:
Package libbatik-java is not configured yet.
dpkg: error processing package libfop-java (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libdoxia-java:
libdoxia-java depends on libfop-java; however:
Package libfop-java is not configured yet.
dpkg: error processing package libdoxia-java (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of bsh:
bsh depends on default-jre-headless | java1-runtime-headless | java2-runtime-headless; however:
Package default-jre-headless is not installed.
Package oracle-java8-installer which provides default-jre-headless is not configured yet.
Package java1-runtime-headless is not installed.
Package java2-runtime-headless is not installed.
Package oracle-java8-installer which provides java2-runtime-headless is not configured yet.
dpkg: error processing package bsh (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libplexus-bsh-factory-java:No apport report written because MaxReports is reached already
libplexus-bsh-factory-java depends on bsh; however:
Package bsh is not configured yet.
dpkg: error processing package libplexus-bsh-factory-java (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: error processing package libmaven2-core-java (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libmaven-scm-java:
libmaven-scm-java depends on libmaven2-core-java; however:
Package libmaven2-core-java is not configured yet.
dpkg: error processing package libmaven-scm-java (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libwagon-java:
libwagon-java depends on junit4; however:
Package junit4 is not configured yet.
libwagon-java depends on libmaven-scm-java; however:
Package libmaven-scm-java is not configured yet.
dpkg: dependency problems prevent configuration of maven:
maven depends on default-jre (>= 1:1.5) | default-jre-headless (>= 1:1.5) | java5-runtime | java5-runtime-headless; however:
Package default-jre is not installed.
Package default-jre-headless is not installed.
Package java5-runtime is not installed.
Package oracle-java8-installer which provides java5-runtime is not configured yet.
Package java5-runtime-headless is not installed.
Package oracle-java8-installer which provides java5-runtime-headless is not configured yet.
maven depends on libaether-java; however:
Package libaether-java is not configured yet.
maven depends on libplexus-containers1.5-java; however:
Package libplexus-containers1.5-java is not configured yet.
maven depends on libsisu-ioc-java; however:
Package libsisu-ioc-java is not configured yet.
maven depends on libwagon2-java (>= 2.2-2); however:
Package libwagon2-java is not configured yet.
dpkg: error processing package maven (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of rhino:
rhino depends on default-jre-headless (>= 1.5) | java5-runtime-headless; however:
Package default-jre-headless is not installed.
Package java5-runtime-headless is not installed.
Package oracle-java8-installer which provides java5-runtime-headless is not configured yet.
dpkg: error processing package rhino (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
oracle-java8-installer
junit4
libbatik-java
libfop-java
libdoxia-java
bsh
libplexus-bsh-factory-java
libmaven2-core-java
libmaven-scm-java
libwagon-java
libplexus-containers1.5-java
libgeronimo-interceptor-3.0-spec-java
libcdi-api-java
libsisu-ioc-java
libaether-java
libwagon2-java
maven
rhino
android-studio
ant
ant-optional
aspectj
fop
libgeronimo-jpa-2.0-spec-java
libosgi-compendium-java
libgeronimo-osgi-support-java
oracle-java8-set-default
testng
E: Sub-process /usr/bin/dpkg returned an error code (1)
<strong>Java installation:</strong>
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /opt/jdk1.8.0_20/bin/java 1 auto mode
* 1 /opt/jdk1.8.0_20/bin/java 1 manual mode
2 /usr/local/java/jdk1.8.0_20/jre/bin/java 1 manual mode
Press enter to keep the current choice[*], or type selection number:
<strong>Java version query:</strong>
bernard@bernard-Lenovo-G580:~$
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
<strong>Proxy configuration:</strong>
bernard@bernard-Lenovo-G580:~$ env | grep proxy
bernard@bernard-Lenovo-G580:~$
我也尝试了apt的故障排除说明:
https://help.ubuntu.com/community/packageManagerTroubleshootingProcedure,但我仍然得到代理连接超时错误和Subprocess installed后安装脚本返回错误退出状态1
试着做在类似情况下对我有帮助的事:
>
jdk-8u20-linux-x64.tar.gz
。所以您应该从以下网址下载:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html/var/cache/oracle-jdk8-installer/
尝试安装oracle-java8-installer:
sudo apt-get install oracle-java8-installer
这应该可以解决问题。
当我尝试使用此命令安装mpi4py时 也尝试过, 我总是会遇到这样的错误:
我在windows命令提示符下键入以下命令:pip install jupyterlab 我收到以下错误:
问题内容: 使用,我可以轻松运行自定义的安装后脚本。 当前,该脚本除了打印一些文本外什么都不做,但是我希望它处理安装新软件包时需要进行的系统更改-例如,备份该软件包正在使用的数据库。 我想为我的程序包生成一个Python轮,然后将其复制并安装到一组部署计算机上。但是,我的自定义安装脚本不再在部署计算机上运行。 我究竟做错了什么?那有可能吗? 问题答案: 指定车轮包装格式的PEP 427 对定制的安
我在mac os X Mojave 10.14.6上运行。我是一个命令行新手,我很迷茫。我看到这篇文章,并使用brew安装postgresql,但这似乎并没有解决我的任何问题。
所以我一直在寻找12个小时,现在这个错误的解决方案,我在尝试安装Laravel框架的PHP。我发现了许多不同的帖子,但似乎没有一个工作。这里的问题,我通过所有的步骤得到Laravel在我的电脑,这是下载和安装作曲家到我的 /usr/local/bin/目录,然后运行这个命令: 我得到这个错误: 我已经删除并重新安装了php,我已经运行了一个脚本,查看是否安装了mcrypt,它是否运行正确,我已经尝
问题内容: 我正在通过sudo npm install ionic -g安装ionic 并得到以下错误 离子论坛中也列出了该问题:-https: //forum.ionicframework.com/t/installing-ionic-not- successful-solved/36050/7 我曾尝试多次更改节点,npm,cordova版本,但是每次遇到此错误时,我都认为这与版本无关。在某些