recebendo erro ao instalar qualquer software ou atualizando no Ubuntu 12.04

0

ao instalar qualquer coisa ou atualizar eu recebo este erro "A instalação ou remoção de um pacote de software falhou." e os detalhes estão abaixo:

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
(Reading database ... 
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 445343 files and directories currently installed.)
Preparing to replace qbittorrent 3.1.x-0~4612-20131231~ubuntu12.04.1 (using .../qbittorrent_3.1.x-0~4619-20140103~ubuntu12.04.1_i386.deb) ...
Unpacking replacement qbittorrent ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for menu ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
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 isc-dhcp-server (4.1.ESV-R4-0ubuntu5.9) ...
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
/var/lib/dpkg/info/isc-dhcp-server.config: 10: /etc/default/isc-dhcp-server: Separate: not found
dpkg: error processing isc-dhcp-server (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of dhcp3-server:
 dhcp3-server depends on isc-dhcp-server; however:
  Package isc-dhcp-server is not configured yet.
dpkg: error processing dhcp3-server (--configure):
 dependency problems - leaving unconfigured
Setting up qbittorrent (3.1.x-0~4619-20140103~ubuntu12.04.1) ...No apport report written because MaxReports is reached already

Processing triggers for menu ...
Errors were encountered while processing:
 isc-dhcp-server
 dhcp3-server
Error in function: 
Setting up isc-dhcp-server (4.1.ESV-R4-0ubuntu5.9) ...
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
/var/lib/dpkg/info/isc-dhcp-server.config: 10: /etc/default/isc-dhcp-server: Separate: not found
dpkg: error processing isc-dhcp-server (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of dhcp3-server:
 dhcp3-server depends on isc-dhcp-server; however:
  Package isc-dhcp-server is not configured yet.
dpkg: error processing dhcp3-server (--configure):
 dependency problems - leaving unconfigured

enquanto no software real é instalado, mas dá o erro acima. Eu estou usando o Ubuntu 12.04 com o shell do gnome.

    
por gunjan parashar 03.01.2014 / 03:25

1 resposta

0

A partir do registro de erros em sua pergunta, posso supor que algo destruído está acontecendo com suas localidades. (não apenas).

Examine este arquivo

cat /etc/default/locale 

o conteúdo deste arquivo deve ser lido

LANG="en_US.UTF-8" 

acima é para o idioma inglês. Mas nenhuma outra linha deve estar dentro desse arquivo.

Se houver outras linhas, edite o arquivo e remova-as todas exceto na string LANG .

Se o arquivo não existir, crie-o e adicione apenas a string LANG .

Em qualquer caso, use um editor com privilégios de root.

gksudo gedit /etc/default/locale 

depois de editar e salvar reconfigure algumas coisas.

sudo dpkg-reconfigure locales 
sudo update-locale 

logout / login ou reinicialização.

Sobre o servidor dhcp, leia esta resposta . Alguns arquivos de configuração devem existir. Esses arquivos são listados na resposta com o conteúdo padrão.

Em seguida, tente novamente

sudo apt-get install -f
sudo dpkg --configure -a
    
por NickTux 03.01.2014 / 03:53