Instalar arquivo pelo termial

1. Instalar arquivo pelo termial

Lucas
LucasSM8

(usa Outra)

Enviado em 05/02/2016 - 15:03h

Galera estou precisando de ajuda aqui,estou tentando instalar o jdk aqui no ubuntu como root,mas quando eu aperto enter para o comando:
sudo apt-get install openjdk-6-x
Ele me retorna:
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
E: Impossível encontrar o pacote openjdk-6-x

Como faço para instalar o pacote jdk?




  


2. Re: Instalar arquivo pelo termial

Kayn Beckhauzer
kaynbeckhauzer

(usa Ubuntu)

Enviado em 05/02/2016 - 15:30h

Adicione o repositório do Web Upd8.

sudo add-apt-repository ppa:webupd8team/java

Atualize a lista de pacotes disponíveis.

sudo apt-get update

Finalmente, instale o pacote do JDK 7.

sudo apt-get install oracle-java7-installer

Para verificar se a instalação funcionou, verifique a versão do JDK com o seguinte comando.

java -version

Você também pode verificar a versão do compilador.

javac -version


3. Re: Instalar arquivo pelo termial

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 05/02/2016 - 15:46h

E lá vamos nós...

vá em http://packages.ubuntu.com e pesquise como o pacote se chama na versão do bolo de bugs disfarçado de distro que você usa. Aí você usa o nome encontrado para instalar o jdk.
--
Dino®
Vi veri universum vivus vici
Public GPG signature: 0x246A590B
Só Slackware é GNU/Linux e Patrick Volkerding é o seu Profeta


4. Re: Instalar arquivo pelo termial

Perfil removido
removido

(usa Nenhuma)

Enviado em 05/02/2016 - 15:48h

JDK 8: $ sudo apt-get install openjdk-8-jre

JDK 7: $ sudo apt-get install openjdk-7-jre

JDK 6: $ sudo apt-get install openjdk-6-jre

Fonte: http://openjdk.java.net/install/


5. Re: Instalar arquivo pelo termial

Lucas
LucasSM8

(usa Outra)

Enviado em 05/02/2016 - 18:00h

tentei com:
JDK 8: $ sudo apt-get install openjdk-8-jre

JDK 7: $ sudo apt-get install openjdk-7-jre

JDK 6: $ sudo apt-get install openjdk-6-jre

e com:
sudo apt-get install oracle-java7-installer

Mas deu o msm problema



6. Re: Instalar arquivo pelo termial

Perfil removido
removido

(usa Nenhuma)

Enviado em 05/02/2016 - 19:48h

-poste saída do comando: lsb_release -a



7. Re: Instalar arquivo pelo termial

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 05/02/2016 - 22:47h

E a saída do comando
$ sudo cat /etc/apt/sources.list 

--
Dino®
Vi veri universum vivus vici
Public GPG signature: 0x246A590B
Só Slackware é GNU/Linux e Patrick Volkerding é o seu Profeta


8. Re: Instalar arquivo pelo termial

Lucas
LucasSM8

(usa Outra)

Enviado em 06/02/2016 - 16:27h

Resultado do comando: lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy



9. Re: Instalar arquivo pelo termial

Lucas
LucasSM8

(usa Outra)

Enviado em 06/02/2016 - 16:29h

Resultado do comando: sudo cat /etc/apt/sources.lists
# deb cdrom:[Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)]/ saucy main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://br.archive.ubuntu.com/ubuntu/ saucy main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ saucy universe
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy universe
deb http://br.archive.ubuntu.com/ubuntu/ saucy-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://br.archive.ubuntu.com/ubuntu/ saucy multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy multiverse
deb http://br.archive.ubuntu.com/ubuntu/ saucy-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu saucy-security main restricted
deb-src http://security.ubuntu.com/ubuntu saucy-security main restricted
deb http://security.ubuntu.com/ubuntu saucy-security universe
deb-src http://security.ubuntu.com/ubuntu saucy-security universe
deb http://security.ubuntu.com/ubuntu saucy-security multiverse
deb-src http://security.ubuntu.com/ubuntu saucy-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu">http://archive.canonical.com/ubuntu saucy partner
# deb-src http://archive.canonical.com/ubuntu">http://archive.canonical.com/ubuntu saucy partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu saucy main
# deb-src http://extras.ubuntu.com/ubuntu saucy main
deb http://archive.canonical.com/ saucy partner
# deb-src http://archive.canonical.com/ saucy partner







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts