ao tentar instalar o programa de instalação Oracle Java 9 como uma variável de ambiente Java, eu corri para o problema

0

Eu sou muito novo no linux, como em três dias e novo neste fórum, se eu tiver um erro, por favor me avise.

Aqui está o erro que recebi depois de entrar no sudo apt-get install oracle-java9-set-default

Errors were encountered while processing: /var/cache/apt/archives/oracle-java9-set-default_9b126+9b126arm-1~webupd8~0_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) 
Full output -
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
cabextract chromium-codecs-ffmpeg-extra gstreamer0.10-ffmpeg
libavcodec-extra libhal1-flash libmspack0 libunshield0 oxideqt-codecs-extra
unshield xplayer-plugins-extra
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
oracle-java9-set-default
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 3'540 B of archives.
After this operation, 16.4 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty/main amd64  oracle-java9-set-default all 9b126+9b126arm-1~webupd8~0 [3'540 B]
Fetched 3'540 B in 1s (2'061 B/s)                   
Selecting previously unselected package oracle-java9-set-default.
(Reading database ... 235497 files and directories currently installed.)
Preparing to unpack .../oracle-java9-set-default_9b126+9b126arm-1~webupd8~0_all.deb ...
Unpacking oracle-java9-set-default (9b126+9b126arm-1~webupd8~0) ...
dpkg: error processing archive /var/cache/apt/archives/oracle-java9-set-default_9b126+9b126arm-1~webupd8~0_all.deb (--unpack):
 trying to overwrite '/etc/profile.d/jdk.csh', which is also in package oracle-java8-set-default 8u101+8u101arm-1~webupd8~2
Errors were encountered while processing:
/var/cache/apt/archives/oracle-java9-set-default_9b126+9b126arm-1~webupd8~0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por Inigo Montoya 29.07.2016 / 04:34

1 resposta

0

Tente executar esses comandos antes de instalar o pacote novamente.

Isso removerá esses pacotes não utilizados.

sudo apt-get autoremove

Isso atualizará e atualizará os pacotes.

 sudo apt-get update && sudo apt-get upgrade
    
por Adam Harrison 29.07.2016 / 04:58