Qual é a melhor maneira de instalar o Jetty no Ubuntu?

3

Existe alguém aqui que baixou e instalou o Jetty no Ubuntu? Por favor ajude. Como você instalou? Eu tenho tentado por dois dias e não consigo fazer funcionar. Finalmente eu fiz uma instalação limpa do Ubuntu, mas ainda não consigo baixar e instalar o jetty. Eu tentei estes tutoriais, nenhum funcionou para mim:

Estou executando o Ubuntu 13.10.

EDIT 4

a@a:~$ sudo apt-get install jetty libjetty8-extra-java libjetty8-java libjetty-extra-java libjetty-extra libjetty-java-doc jetty8 libjetty8-java-doc libjetty-java jsvc default-jre-headless apache2-utils adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
adduser is already the newest version.
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:
 libjetty8-extra-java : Depends: libtomcat7-java (>= 7.0.28) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

EDIT3

a@a:~$ sudo apt-get install jetty openjdk-7-jre-headless libjetty8-extra-java libjetty8-java libjetty-extra-java libjetty-extra libjetty-java-doc jetty8 libjetty8-java-doc libjetty-java jsvc java5-runtime-headless apache2-utils adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package java5-runtime-headless is a virtual package provided by:
  openjdk-6-jre-headless 6b27-1.12.6-1ubuntu2.1
  gcj-4.8-jre-headless 4.8.1-10ubuntu9
  gcj-4.6-jre-headless 4.6.4-1ubuntu1
  openjdk-7-jre-headless 7u25-2.3.12-4ubuntu3
  gcj-jre-headless 4:4.8.1-2ubuntu3
  default-jre-headless 1:1.7-48ubuntu2
You should explicitly select one to install.

E: Package 'java5-runtime-headless' has no installation candidate
a@a:~$ 

EDIT 2

a@a:~$ sudo apt-get install jetty libjetty8-extra-java libjetty8-java libjetty-extra-java libjetty-extra libjetty-java-doc jetty8 libjetty8-java-doc libjetty-java jsvc java5-runtime-headless apache2-utils adduser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package java5-runtime-headless is a virtual package provided by:
  openjdk-6-jre-headless 6b27-1.12.6-1ubuntu2.1
  gcj-4.8-jre-headless 4.8.1-10ubuntu9
  gcj-4.6-jre-headless 4.6.4-1ubuntu1
  openjdk-7-jre-headless 7u25-2.3.12-4ubuntu3
  gcj-jre-headless 4:4.8.1-2ubuntu3
  default-jre-headless 1:1.7-48ubuntu2
You should explicitly select one to install.

E: Package 'java5-runtime-headless' has no installation candidate
a@a:~$ 

EDIT 1

Eu tentei resposta de Dumindu Mahawela , mas é isso que eu recebo:

a@a:~$ sudo apt-get install jetty libjetty8-extra-java libjetty8-java libjetty-extra-java libjetty-extra libjetty-java-doc jetty8 libjetty8-java-doc libjetty-java jsvc default-jre-headless apache2-utils adduser
[sudo] password for a: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
adduser is already the newest version.
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:
 libjetty8-extra-java : Depends: libtomcat7-java (>= 7.0.28) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
    
por Zeynel 21.12.2013 / 02:42

1 resposta

1

Tente instalar os seguintes :

sudo apt-get install jetty libjetty8-extra-java libjetty8-java libjetty-extra-java libjetty-extra libjetty-java-doc jetty8 libjetty8-java-doc libjetty-java jsvc default-jre-headless apache2-utils adduser
    
por user224082 21.12.2013 / 02:53