Installazione pacchetti java sdk

Domande e richieste di un principiante alle prime armi con Ubuntu e il mondo GNU/Linux in generale. Per domande specifiche, utilizzare le altre sezioni.
Regole della sezione
In questa sezione possono inserire nuove discussioni solo coloro che fanno parte del livello "Prode Principiante" e che non hanno superato i 100 messaggi, tutti gli altri possono comunque rispondere regolarmente. Se si fa parte di questo livello e si è registrati al forum prima del 24 aprile 2012, data del passaggio al nuovo forum, consultare questa discussione.

Immagine Come usare UbuntuPrimi passi su Ubuntu Immagine Amministrazione del sistemaComandi di baseInstallare programmiLog di sistemaRiga di comandoSudo
Scrivi risposta
Avatar utente
glasio
Prode Principiante
Messaggi: 38
Iscrizione: sabato 5 agosto 2006, 1:44

Installazione pacchetti java sdk

Messaggio da glasio »

Salve a tutti!

Ho provato ad installare java per lavorare ma visualizzo questo: sudo dpkg -i sun-java5-plugin



dpkg: errore processando sun-java5-plugin (--install):
impossibile accedere all'archivio: Nessun file o directory
Sono occorsi degli errori processando:
sun-java5-plugin


:)

Come posso risolvere grazie anticipatamente
Avatar utente
DktrKranz
Rampante Reduce
Rampante Reduce
Messaggi: 5071
Iscrizione: giovedì 2 novembre 2006, 11:24
Desktop: GNOME Shell
Distribuzione: Debian GNU/Linux sid - x86_64
Località: Guastalla (RE)
Contatti:

Re: Installazione pacchetti java sdk

Messaggio da DktrKranz »

Ti conviene usare direttamente apt-get:

Codice: Seleziona tutto

sudo apt-get install sun-java5-jre
Avatar utente
glasio
Prode Principiante
Messaggi: 38
Iscrizione: sabato 5 agosto 2006, 1:44

Re: Installazione pacchetti java sdk

Messaggio da glasio »

Ecco ciò che mi visualizza:


root@glasio-laptop:/etc# sudo apt-get install sun-java5-jre
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso... Fatto
E: Impossibile trovare sun-java5-jre
Avatar utente
DktrKranz
Rampante Reduce
Rampante Reduce
Messaggi: 5071
Iscrizione: giovedì 2 novembre 2006, 11:24
Desktop: GNOME Shell
Distribuzione: Debian GNU/Linux sid - x86_64
Località: Guastalla (RE)
Contatti:

Re: Installazione pacchetti java sdk

Messaggio da DktrKranz »

Java è presente nei repository multiverse. Li puoi abilitare inserendo nel file /etc/apt/sources.list le seguenti righe:

Codice: Seleziona tutto

deb http://archive.ubuntu.com/ubuntu/ edgy multiverse
deb http://security.ubuntu.com/ubuntu edgy-security multiverse
Avatar utente
glasio
Prode Principiante
Messaggi: 38
Iscrizione: sabato 5 agosto 2006, 1:44

Re: Installazione pacchetti java sdk

Messaggio da glasio »

Io ho una dapper....ho sostituito ad edgy....dapper ma continua a non trovarlo
Avatar utente
glasio
Prode Principiante
Messaggi: 38
Iscrizione: sabato 5 agosto 2006, 1:44

Re: Installazione pacchetti java sdk

Messaggio da glasio »

[img]deb http://it.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper main restricted

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

## Uncomment the following two lines to add software from the 'universe'
## repository.
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://it.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://it.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

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

deb http://archive.ubuntu.com/ubuntu/ dapper multiverse
deb http://security.ubuntu.com/ubuntu dapper-security multiverse
[/img]


ecco il mio source.list
Avatar utente
glasio
Prode Principiante
Messaggi: 38
Iscrizione: sabato 5 agosto 2006, 1:44

Re: Installazione pacchetti java sdk

Messaggio da glasio »

deb http://it.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper main restricted

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

## Uncomment the following two lines to add software from the 'universe'
## repository.
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://it.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://it.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

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

deb http://archive.ubuntu.com/ubuntu/ dapper multiverse
deb http://security.ubuntu.com/ubuntu dapper-security multiverse
Avatar utente
DktrKranz
Rampante Reduce
Rampante Reduce
Messaggi: 5071
Iscrizione: giovedì 2 novembre 2006, 11:24
Desktop: GNOME Shell
Distribuzione: Debian GNU/Linux sid - x86_64
Località: Guastalla (RE)
Contatti:

Re: Installazione pacchetti java sdk

Messaggio da DktrKranz »

Ti sei ricordato di aggiornare la cache con sudo apt-get update?
Avatar utente
glasio
Prode Principiante
Messaggi: 38
Iscrizione: sabato 5 agosto 2006, 1:44

Re: Installazione pacchetti java sdk

Messaggio da glasio »

Installazione avvenuta bene....ma non ci sono i comandi.Tipo lancio javac da terminale non mi da niente.Come devo fare?
Avatar utente
DktrKranz
Rampante Reduce
Rampante Reduce
Messaggi: 5071
Iscrizione: giovedì 2 novembre 2006, 11:24
Desktop: GNOME Shell
Distribuzione: Debian GNU/Linux sid - x86_64
Località: Guastalla (RE)
Contatti:

Re: Installazione pacchetti java sdk

Messaggio da DktrKranz »

Il pacchetto che fa per te è sun-java5-jdk.
Scrivi risposta

Ritorna a “Dilemmi del principiante”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti