Ho provato a installare Sun JDK da sudo add-apt-repository ppa:eugenesan/java
, non è riuscito con il seguente:
Downloading...
--2012-05-05 15:50:09-- http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 80.239.230.162
Connecting to download.oracle.com (download.oracle.com)|80.239.230.162|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz [following]
--2012-05-05 15:50:09-- https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 2.17.254.174
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2.17.254.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2012-05-05 15:50:09-- http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|80.239.230.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `./jdk-7u3-linux-x64.tar.gz'
0K ..... 100% 20.5M=0s
2012-05-05 15:50:09 (20.5 MB/s) - `./jdk-7u3-linux-x64.tar.gz' saved [5307/5307]
Download done.
sha256sum mismatch jdk-7u3-linux-x64.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java7-installer
Quindi a quanto pare sta cercando di recuperare un URL non valido. Ho installato Java manualmente, ma ora il pacchetto è bloccato come mezzo installato e ogni volta che ho apt-get install
qualcosa, l'errore appare di nuovo.
apt-get install -f
mostra "1 non completamente installato o rimosso." pacchetto e non riesce con lo stesso errore. Ci ho provato dpkg -P oracle-java7-installer
, ma fallisce pure.
Come rimuovere questo pacchetto semi-installato?