我尝试安装詹金斯在Ubuntu 14.04。
(venv)ubuntu@sdcw05:/usr/lib/jvm$ sudo aptitude install jenkins
The following NEW packages will be installed:
jenkins{b} oracle-java9-installer{ab}
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 63.0 MB of archives. After unpacking 63.5 MB will be used.
The following packages have unmet dependencies:
jenkins : Depends: daemon which is a virtual package.
oracle-java9-installer : Depends: java-common (>= 0.24) which is a virtual package.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) jenkins [Not Installed]
2) oracle-java9-installer [Not Installed]
Accept this solution? [Y/n/q/?]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
詹金斯有依赖性oracle-java9-安装程序
和oracle-java9-安装程序有依赖性java 常用
如何安装java 常用? 它是其他包的一部分吗?
答案1
您可以java-common
通过以下方式安装:
sudo apt-get install java-common
此外
sudo apt-cache show java-common
将显示有关该包的更多信息,如下所示(为清楚起见,删除了一些信息):
Package: java-common
State: installed
Automatically installed: yes
Multi-Arch: foreign
Version: 0.52
Priority: optional
Section: misc
Maintainer: Ubuntu Developers <[email protected]>
Architecture: all
Uncompressed Size: 299 k
Suggests: default-jre, equivs
Description: Base of all Java packages
This package must be installed in the system if a Java environment is desired. It covers useful information for Java users in Debian
GNU/Linux, including:
* The Java policy document which describes the layout of Java support in Debian and how Java packages should behave.
* The Debian-Java-FAQ which provides information on the status of Java support in Debian, available compilers, virtual machines, Java
programs and libraries as well as on legal issues.
* Information on how to create dummy packages to fulfill java2 requirements.
Homepage: https://wiki.debian.org/Java/
这建议安装方式jenkins
是:
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
建议您在执行上述步骤之前安装openjdk-7-jre
和openjdk-7-jdk
。为此,请运行:
sudo apt-get install openjdk-7-jre openjdk-7-jdk