O gestor de actualizações diz “A instalação ou remoção de um pacote de software falhou”

-1

Eu estou constantemente recebendo atualizações, mas quando eu baixar, então, no final, dá a mensagem de erro Operação do pacote falhou. Eu não sou capaz de descobrir o que causou isso exatamente. Eu não tenho reputação suficiente mais eu teria postado as imagens! Eu tenho um disco total de 18Gigs, dos quais 10Gigs é grátis. Eu tentei alguns métodos como seguir:

sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade

mas ainda dá a mensagem de erro e é irritante. Anexei uma imagem descrevendo mais sobre o meu problema. Plz me ajude.

Agradecemos antecipadamente.

A mensagem de erro inteira é:

installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up firefox (28.0+build2-0ubuntu0.12.04.1) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing firefox (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up openjdk-7-jdk (7u55-2.4.7-1ubuntu1~0.12.04.2) ...
No apport report written because MaxReports is reached already
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing openjdk-7-jdk (--configure):
 subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Setting up samba-common-bin (2:3.6.3-2ubuntu2.10) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing samba-common-bin (--configure):
 subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Setting up ssh-askpass-gnome (1:5.9p1-5ubuntu1.2) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing ssh-askpass-gnome (--configure):
 subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
<br>
<b><i>Errors were encountered while processing:<br>
 firefox<br>
 openjdk-7-jdk<br>
 samba-common-bin<br>
 ssh-askpass-gnome</i></b><br>
Error in function: 
Setting up ssh-askpass-gnome (1:5.9p1-5ubuntu1.2) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing ssh-askpass-gnome (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up samba-common-bin (2:3.6.3-2ubuntu2.10) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing samba-common-bin (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up firefox (28.0+build2-0ubuntu0.12.04.1) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing firefox (--configure):
 subprocess installed post-installation script returned error exit status 2
    
por Siddhartha 12.05.2014 / 16:24

1 resposta

0

Lendo a mensagem de erro:

installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory  

Parece que você tem um problema com o locale (suporte ao idioma humano). Você tem sua linguagem definida como LANG="en_IN.ISO8859-1" , mas dpkg -L locale|grep en_IN mostra apenas /usr/share/i18n/locales/en_IN

Então, tente algo como:

bash
export LANG="en_IN"  
sudo apt-get update  
sudo apt-get upgrade  
exit

como solução alternativa. Se você quiser um log, você pode substituir o comando bash por script my.log

Quanto a como você acabou com LANG="en_IN.ISO8859-1" , estou intrigado.

Lendo,

Setting up firefox (28.0+build2-0ubuntu0.12.04.1) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing firefox (--configure):
subprocess installed post-installation script returned error exit status 2

Diz que, embora dpkg estivesse tentando --configure o pacote firefox , um subprocesso falhou ( status 2 ), provavelmente porque não encontrou /usr/bin/java/jdk1.7.0_51/bin/javac . mas como esse é o segundo erro principal neste arquivo de log, ele pode ter sido causado pelo erro primeiro . Se isso acontecer novamente, após corrigir o problema LANG , preocupe-se com isso.

No apport report written because MaxReports is reached already  

apport é o sistema de relatório de erros. Você teve tantos erros (mais de MaxReports ), que apport não enviou este erro para o Suporte da Canonical / Ubuntu (veja man -k apport ).

Apenas leia e entenda as mensagens. Corrigir o primeiro problema e qualquer outro problema de aparência independente. Espuma, enxaguar, repetir.

'

    
por waltinator 12.05.2014 / 18:18