Como instalar o java-common

0

Eu tentei instalar jenkins no 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.

jenkins tem uma dependência oracle-java9-installer

e oracle-java9-installer têm uma dependência java-common

Como instalar o java-common ? É parte de algum outro pacote?

    
por Kirill Ermolov 06.07.2015 / 12:56

1 resposta

1

Você pode instalar java-common por:

sudo apt-get install java-common

Além disso

sudo apt-cache show java-common

mostrará mais informações sobre o pacote, como a abaixo (algumas informações foram removidas para maior clareza):

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/

A maneira sugerida de instalar 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

sugerimos que você instale openjdk-7-jre e openjdk-7-jdk antes da etapa acima. Para fazer isso, execute:

sudo apt-get install openjdk-7-jre openjdk-7-jdk
    
por Ron 06.07.2015 / 13:09