Re: Problema com (re)instalação do locales

Mírian Bruckschen cleo.sl gmail.com
Terça-Feira, 13 de Setembro de 2005 - 13:08:52 CDT


Ola',

2005/9/13, Henrique Maia:
> Se está quebrado, você devia reinstalar o pacote, mas mudando os repositórios
> na sua sources.list do apt.
> 
> Talvez isto ajude.

A minha tentativa de reinstalacao do locales, com o -f pra
teoricamente corrigir o problema:

$ sudo apt-get -f install locales
Reading package lists... Done
Building dependency tree... Done
locales is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "pt_BR",
        LC_ALL = "pt_BR",
        LANG = "pt_BR"
    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 locales (2.3.2.ds1-20ubuntu13) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "pt_BR",
        LC_ALL = "pt_BR",
        LANG = "pt_BR"
    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
Generating locales...
  Usage:./usr/sbin/validlocale <locale>...Try `localedef --help' or
`localedef --usage' for more information.
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 4
Errors were encountered while processing:
 locales
E: Sub-process /usr/bin/dpkg returned an error code (1)

Quanto a trocar o repositorio, nessa ultima vez eu tinha comentado
todos menos os security.ubuntu.algumacoisa aqueles. Tipo, pra
garantir.

Segue o meu /etc/apt/sources.list:

$ cat /etc/apt/sources.list
#deb cdrom:[Ubuntu 5.04 _Hoary Hedgehog_ - Release i386 (20050407)]/
hoary main restricted

## Uncomment the following two lines to fetch updated software from the network
#deb http://.archive.ubuntu.com/ubuntu hoary main restricted
#deb-src http://.archive.ubuntu.com/ubuntu hoary main restricted

## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
#deb http://.archive.ubuntu.com/ubuntu hoary-updates main restricted
#deb-src http://.archive.ubuntu.com/ubuntu hoary-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
#deb http://.archive.ubuntu.com/ubuntu hoary universe
#deb-src http://.archive.ubuntu.com/ubuntu hoary universe

deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted

deb http://security.ubuntu.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com/ubuntu hoary-security universe

## Backports
#deb http://ubuntu-backports.mirrormax.net/ hoary-backports main
universe multiverse restricted
#deb http://archive.ubuntu.com/ubuntu/ hoary main restricted universe multiverse
#deb http://ubuntu-backports.mirrormax.net/ hoary-extras main universe
multiverse restricted

Eu deveria adicionar/remover outros repositorios, para fazer outra
tentativa? Quais?

Grande abraco,

-- 
Mírian Bruckschen



Mais informações acerca da lista ubuntu-pt