我想在ubuntu 11.04上安装Jenkins
我已经安装了Oracle Java
$:~$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) Server VM (build 25.5-b02, mixed mode)
$:~$ javac -version
javac 1.8.0_05
$:~$
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/jdk1.8.0_05/bin:/usr/lib/hadoop/hadoop-1.2.0/bin/:/usr/lib/pig/pig-0.12.0/bin:/usr/lib/hive/hive-0.11.0/bin:/usr/lib/hbase/hbase-0.94.8/bin
$:~$ echo $JAVA_HOME
/usr/lib/jvm/jdk1.8.0_05
Run Code Online (Sandbox Code Playgroud)
当我尝试安装时,我有一些依赖性问题..
$ sudo apt-get install jenkins
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
jenkins : Depends: daemon but it is not installable
Depends: default-jre-headless but it is not installable or
java-runtime-headless but it is not installable
E: Broken packages
Run Code Online (Sandbox Code Playgroud)
为了安装Jenkins,他们要求Java版本大于1.8.0_1.我得到了同样的错误,我将java更新到以下版本
java -version
java version "1.8.0_121"
Run Code Online (Sandbox Code Playgroud)
现在jenkins安装没有错误下面链接工作14.04(希望它也适用于11.04) 在ubuntu中安装Java版本
尝试这个:
sudo apt-get update
sudo apt-get remove default-jre default-jdk
sudo apt-get update
sudo apt-get install default-jre default-jdk
Run Code Online (Sandbox Code Playgroud)
有关 Ubuntu 上 java 的更多信息:
https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
| 归档时间: |
|
| 查看次数: |
16518 次 |
| 最近记录: |