Como se livrar desta mensagem sobre uma instalação com falha [closed]

1

Eu instalei o Ubuntu 11 após o seu fim de vida. Então tentei instalar o java nos repositórios. No entanto, a instalação falhou. Desde então, toda vez que eu instalo algum outro pacote o apt-get tenta instalar o java novamente, mas ele falha e cospe o log abaixo. Eu instalei o Java 8 manualmente, então não preciso instalar o java dos repositórios. Eu só preciso dessa mensagem de erro.

Processing triggers for ufw ...
Processing triggers for man-db ...
Setting up oracle-java7-installer (7u3-0~eugenesan~natty4) ...
Downloading...
--2015-03-01 21:42:44--  http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving download.oracle.com... 129.19.157.14, 129.19.157.15
Connecting to download.oracle.com|129.19.157.14|: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]
--2015-03-01 21:42:44--  https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving edelivery.oracle.com... 23.9.86.140
Connecting to edelivery.oracle.com|23.9.86.140|:443... connected.
ERROR: certificate common name 'www.oracle.com' doesn't match requested host name 'edelivery.oracle.com'.
To connect to edelivery.oracle.com insecurely, use '--no-check-certificate'.
download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up openssh-server (1:5.8p1-1ubuntu3) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
ssh start/running, process 2415
Setting up ssh-import-id (2.4-0ubuntu1) ...
Errors were encountered while processing:
 oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

Atualização: purga não ajudou ....

$ sudo apt-get purge oracle-java7-installer 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  oracle-java7-installer*
0 upgraded, 0 newly installed, 1 to remove and 317 not upgraded.
1 not fully installed or removed.
After this operation, 139 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 145152 files and directories currently installed.)
Removing oracle-java7-installer ...
update-alternatives: error: unknown argument 'cdrom'
dpkg: error processing oracle-java7-installer (--purge):
 subprocess installed pre-removal script returned error exit status 2
Downloading...
--2015-03-01 22:23:38--  http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving download.oracle.com... 129.19.157.14, 129.19.157.15
Connecting to download.oracle.com|129.19.157.14|: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]
--2015-03-01 22:23:38--  https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving edelivery.oracle.com... 23.9.86.140
Connecting to edelivery.oracle.com|23.9.86.140|:443... connected.
ERROR: certificate common name 'www.oracle.com' doesn't match requested host name 'edelivery.oracle.com'.
To connect to edelivery.oracle.com insecurely, use '--no-check-certificate'.
download failed
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
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por user2009594 02.03.2015 / 05:55

1 resposta

2

Tente isso. apenas pressione Ctrl + Alt + T no seu teclado para abrir o Terminal. Quando se abre, execute o (s) comando (s) abaixo:

sudo dpkg -r oracle-java7-installer
sudo dpkg --purge oracle-java7-installer

Se o precedente não funcionar, você pode tentar o seguinte método mais agressivo. Esteja ciente, no entanto, que ele usa o comando rm, que removerá arquivos imediatamente e permanentemente de um diretório importante. Seja extremamente cauteloso.

sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get clean
sudo apt-get update
    
por scarface_90 02.03.2015 / 09:09