Indicador de bateria ausente, não é possível instalar porque não há JDK 7

3

Sou muito novo em todo o negócio do Linux, mas estou em um laptop e um medidor de bateria seria extremamente útil. Sempre que tento

sudo apt-get install indicator-power

isso me dá:

'Reading package lists... Done
Building dependency tree       
Reading state information... Done
indicator-power is already the newest version.
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.
Do you want to continue [Y/n]? y
Setting up oracle-java7-installer (7u40-0~webupd8~0) ...
Downloading Oracle Java 7...
--2013-09-24 20:06:32--  http://download.oracle.com/otn-pub/java/jdk/7u40-b43/jdk-7u40-linux-x64.tar.gz
Resolving false (false)... failed: No such file or directory.
wget: unable to resolve host address ‘false’
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
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)'

Qualquer ajuda seria realmente apreciada!

@Braiam quando eu corri o primeiro comando para corrigir os repositórios, e ele voltou com:

Can't rename /etc/apt/sources.list.d/iaz-battery-status-quantal.list /etc/apt     /sources.list.disable.d/iaz-battery-status-quantal.list.disable: No such file or directory
Can't rename /etc/apt/sources.list.d/ubuntu-wine-ppa-quantal.list /etc/apt/sources.list.disable.d/ubuntu-wine-ppa-quantal.list.disable: No such file or directory
Can't rename /etc/apt/sources.list.d/webupd8team-java-raring.list /etc/apt/sources.list.disable.d/webupd8team-java-raring.list.disable: No such file or directory

@Braiam, agora quando eu corro com essa linha, depois de cada linha que eu digito, há essa resposta depois que tudo parece ter funcionado além disso:

N: Ignoring file 'ubuntu-wine-ppa-quantal.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'iaz-battery-status-quantal.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'webupd8team-java-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'ubuntu-wine-ppa-quantal.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'iaz-battery-status-quantal.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'webupd8team-java-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
    
por Zack Souza 25.09.2013 / 05:09

2 respostas

2

O problema é que você tem alguns repositórios mistos. Faça isso:

sudo rename -n 's/\.list$/.list.disable/g' /etc/apt/sources.list.d/*.list
sudo apt-get update
sudo apt-get -f remove oracle-java7-installer
sudo apt-get autoremove
sudo apt-get -f install
sudo apt-get install indicator-power

A primeira linha desativa qualquer repositório que não seja o oficial, o segundo atualiza a lista de pacotes, o quarto tenta reparar qualquer erro, o último instala o pacote.

    
por Braiam 27.09.2013 / 07:27
-2

Para instalar o oracle java SDK 7, basta procurar por ele no centro de software e instalá-lo. Se você precisar fazer o download de outros softwares no futuro, verifique o centro de software e eles têm muitas opções.

    
por askubuntu7639 27.09.2013 / 01:34