Não é possível instalar o plugin icedtea no Utopic Unicorn 14.10

8

Tentar instalar o icedtea-7-plugin em 14.10 x64 dá um erro.

apt-get install icedtea-7-plugin
. . .
Selecting previously unselected package icedtea-netx:amd64.
. . .
Processing triggers for man-db (2.7.0.2-2) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)

Parece que há um problema com uma dependência, icedtea-netx . Então tentei instalar o icedtea-netx sozinho e o erro é mostrado abaixo.

Parecia estar procurando por java-8-openjdk-amd64 . Eu tinha instalado o openjdk-7-jre dos repositórios, então eu desinstalei e instalei o openjdk-8-jre e o openjdk-8-jdk. No entanto, isso não corrigiu o problema com icedtea-netx .

(Eu quero usar o icedtea e abrir o JDK, não o Java proprietário da Oracle).

Alguém já passou por isso e existe uma solução para o problema?

Aqui está a saída de apt-get install icedtea-netx ...

apt-get install icedtea-netx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  icedtea-netx-common
The following NEW packages will be installed:
  icedtea-netx icedtea-netx-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst icedtea-netx-common (1.5.1-1ubuntu1 Ubuntu:14.10/utopic [all])
Inst icedtea-netx (1.5.1-1ubuntu1 Ubuntu:14.10/utopic [amd64])
Conf icedtea-netx-common (1.5.1-1ubuntu1 Ubuntu:14.10/utopic [all])
Conf icedtea-netx (1.5.1-1ubuntu1 Ubuntu:14.10/utopic [amd64])
root@PS001:/etc/apt/sources.list.d# apt-get install icedtea-netx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  icedtea-netx-common
The following NEW packages will be installed:
  icedtea-netx icedtea-netx-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1138 kB of archives.
After this operation, 1505 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package icedtea-netx-common.
(Reading database ... 314900 files and directories currently installed.)
Preparing to unpack .../icedtea-netx-common_1.5.1-1ubuntu1_all.deb ...
Unpacking icedtea-netx-common (1.5.1-1ubuntu1) ...
Selecting previously unselected package icedtea-netx:amd64.
Preparing to unpack .../icedtea-netx_1.5.1-1ubuntu1_amd64.deb ...
Unpacking icedtea-netx:amd64 (1.5.1-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu2) ...
Processing triggers for bamfdaemon (0.5.1+14.10.20140925-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.55ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.7.0.2-2) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@PS001:/etc/apt/sources.list.d# apt-get -f install             
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up icedtea-netx:amd64 (1.5.1-1ubuntu1) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/itweb-settings because link group itweb-settings is broken
update-alternatives: warning: not replacing /usr/share/man/man1/itweb-settings.1.gz with a link
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/itweb-settings because link group itweb-settings is broken
update-alternatives: warning: not replacing /usr/share/man/man1/itweb-settings.1.gz with a link
update-alternatives: error: alternative path /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaws doesn't exist
dpkg: error processing package icedtea-netx:amd64 (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 icedtea-netx:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por PJ Singh 24.10.2014 / 20:13

4 respostas

6

Eu tentei com sucesso outra solução temporária.

A mensagem de erro diz: "update-alternatives: error: caminho / usr / lib / jvm / java-8-openjdk-amd64 / jre / bin / javaws não existe". Então, eu criei um link simbólico e então deinstall um por um os pacotes (icedtea-plugin, icedtea-7-plugin, icedtea-netx (não é necessário para icedtea-netx-common)), então reinstale o icedtea-plugin.

cd /usr/lib/jvm
ln -s java-1.7.0-openjdk-amd64 java-8-openjdk-amd64
apt-get purge icedtea-plugin
apt-get purge icedtea-7-plugin
apt-get purge icedtea-netx
apt-get install icedtea-plugin

Giles

    
por Giles Carré 07.11.2014 / 12:56
1

Eu tenho o mesmo problema e presumi que isso seja um bug no pacote. Eu relatei isso . Como solução alternativa, segui as instruções sobre a instalação do Oracle Java .

    
por Artemy Tregubenko 24.10.2014 / 22:44
1

Basta seguir as instruções fornecidas no bug no link .

Parece funcionar muito bem.

"WORKAROUND: baixe e instale manualmente a versão 1.5 (em ordem):

32bits

link

link

link

64bits

link

link

link "

"

    
por João Silva 13.11.2014 / 14:45
0

Se você tiver ambos openjdk 7 e 8 instalados, você pode apenas ligar simbolicamente javaws e itweb-settings e então reinstalar icedtea-plugin, icedtea-7-plugin e icedtea-netx

sudo ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javaws /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaws$
sudo ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/itweb-settings /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/itweb-settings
    
por Jonathan Di Trapani 13.11.2014 / 03:01