Problema com o apt-get update no 8.04 server DEPOIS de ter alterado idioma e ..

Iniciado por Vidar, 22 de Novembro de 2008, 15:30

tópico anterior - próximo tópico

Vidar

Pessoal, instalei uma Vs 8.04 Server (do zero, hd formatado) para rodar um MailServer, tudo funcionando na mais perfeita hamonia, ate..........!!!! que resolvi alterar o idioma e character encoding seguindo os seguintes passos:

Certifique-se que os seguintes pacotes estejam instalados pelo aptitude:

    * language-pack-pt
    * language-pack-pt-base

Em seguida, caso esteja instalado..

1. sudo gedit /var/lib/locales/supported.d/local
Adiconar, em uma nova linha, e se ainda não existir, o idioma e o
character encoding:
pt_BR ISO-8859-1 # ou pt_BR.UTF-8

2. sudo gedit /etc/locale.alias
Adicionar, em uma nova linha, e se ainda não existir, o alias para o idioma:
pt_BR pt_BR.ISO-8859-1 # ou pt_BR pt_BR.UTF-8

3. sudo gedit /etc/environment
Editar as linhas com as variáveis de ambiente LANG e LANGUAGE:
LANG="pt_BR"

4. Executar esses dois comandos
sudo locale-gen
sudo dpkg-reconfigure locales

5. Abra o arquivo ~.bashrc (no seu home) e adicione a seguinte linha no
final do arquivo [NOTA: para mim, este passo não foi necessário]:
source /etc/environment

6. Dê os comandos:
# localedef pt_BR -i pt_BR -f ISO-8859-1
# localedef pt_BR.ISO-8859-1 -i pt_BR -f ISO-8859-1
# localedef pt_BR.ISO8859-1 -i pt_BR -f ISO-8859-1


Pois bem, depois de feito isso o APT-GET UPDATE não funciona mais  ??? ??? ??? ???

MINHA SOURCERS.LIST ---> ORIGINAL


#
# deb cdrom:[Ubuntu-Server 8.04.1 _Hardy Heron_ - Release i386 (20080701)]/ hardy main restricted

#deb cdrom:[Ubuntu-Server 8.04.1 _Hardy Heron_ - Release i386 (20080701)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://br.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## 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://br.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy universe
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates universe

## 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
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://br.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://br.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse

O que eu já fiz:

localedef --delete-from-archive pt_BR
localedef --delete-from-archive pt_BR.iso88591

Desinstalei via aptitude os pacotes:
* language-pack-pt
* language-pack-pt-base

Voltei ao que era antes:

/var/lib/locales/supported.d/local
esta assim agora:
pt_BR.UTF-8 UTF-8
en_US.UTF-8 UTF-8

/etc/locale.alias
está assim agora:
portuguese      pt_PT.ISO-8859-1

/etc/environment
está assim agora:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

Executei:
sudo locale-gen
Resultado:
Generating locales...
  en_US.UTF-8... up-to-date
  pt_BR.UTF-8... up-to-date

sudo dpkg-reconfigure locales
resultado:
Generating locales...
  en_US.UTF-8... up-to-date
  pt_BR.UTF-8... up-to-date
Generation complete.


Porém o APT-GET UPDATE ainda continua sem funcionar com a seguinte mensagem:

#apt-get update
Obtendo:1 http://br.archive.ubuntu.com hardy Release.gpg [189B]
Obtendo:2 http://security.ubuntu.com hardy-security Release.gpg [189B]
Ign http://security.ubuntu.com hardy-security/main Translation-pt_BR
Obtendo:3 http://br.archive.ubuntu.com hardy/main Translation-pt_BR [77,6kB]
Obtendo:4 http://br.archive.ubuntu.com hardy/restricted Translation-pt_BR [919B]
Obtendo:5 http://br.archive.ubuntu.com hardy/restricted Translation-pt_BR [919B]
Ign http://security.ubuntu.com hardy-security/restricted Translation-pt_BR
Obtendo:6 http://br.archive.ubuntu.com hardy/universe Translation-pt_BR [205kB]
Ign http://security.ubuntu.com hardy-security/universe Translation-pt_BR
Obtendo:7 http://br.archive.ubuntu.com hardy/multiverse Translation-pt_BR [542B]
Obtendo:8 http://br.archive.ubuntu.com hardy-updates Release.gpg [189B]
Ign http://br.archive.ubuntu.com hardy-updates/main Translation-pt_BR
Ign http://security.ubuntu.com hardy-security/multiverse Translation-pt_BR
Ign http://br.archive.ubuntu.com hardy-updates/restricted Translation-pt_BR
Ign http://br.archive.ubuntu.com hardy-updates/universe Translation-pt_BR
Err http://br.archive.ubuntu.com hardy-updates/multiverse Translation-pt_BR
  Erro lendo do servidor - read (104 Connection reset by peer) [IP: 200.17.202.1 80]
Obtendo:9 http://br.archive.ubuntu.com hardy Release [65,9kB]
Ign http://br.archive.ubuntu.com hardy Release
Obtendo:10 http://br.archive.ubuntu.com hardy-updates Release [58,5kB]
Ign http://br.archive.ubuntu.com hardy-updates Release
Obtendo:11 http://br.archive.ubuntu.com hardy/main Packages [1178kB]
Obtendo:12 http://br.archive.ubuntu.com hardy/restricted Packages [6986B]
Obtendo:13 http://security.ubuntu.com hardy-security Release [58,5kB]
Ign http://security.ubuntu.com hardy-security Release
Obtendo:14 http://br.archive.ubuntu.com hardy/main Sources [338kB]
Obtendo:15 http://br.archive.ubuntu.com hardy/restricted Sources [1488B]
Obtendo:16 http://br.archive.ubuntu.com hardy/universe Packages [4293kB]
Obtendo:17 http://security.ubuntu.com hardy-security/main Packages [72,8kB]
Obtendo:18 http://security.ubuntu.com hardy-security/restricted Packages [7159B]
Obtendo:19 http://security.ubuntu.com hardy-security/restricted Packages [7159B]
Obtendo:20 http://security.ubuntu.com hardy-security/main Sources [16,3kB]
Obtendo:21 http://security.ubuntu.com hardy-security/main Sources [16,3kB]
Obtendo:22 http://security.ubuntu.com hardy-security/restricted Sources [1092B]
Obtendo:23 http://security.ubuntu.com hardy-security/universe Packages [41,2kB]
Obtendo:24 http://security.ubuntu.com hardy-security/universe Sources [7077B]
Obtendo:25 http://security.ubuntu.com hardy-security/multiverse Packages [8637B]
Obtendo:26 http://security.ubuntu.com hardy-security/multiverse Sources [14B]
Obtendo:27 http://br.archive.ubuntu.com hardy/universe Sources [1323kB]
Obtendo:28 http://br.archive.ubuntu.com hardy/multiverse Packages [179kB]
Obtendo:29 http://br.archive.ubuntu.com hardy/multiverse Sources [60,9kB]
Obtendo:30 http://br.archive.ubuntu.com hardy-updates/main Packages [382kB]
Obtendo:31 http://br.archive.ubuntu.com hardy-updates/restricted Packages [7103B]
Obtendo:32 http://br.archive.ubuntu.com hardy-updates/main Sources [101kB]
Obtendo:33 http://br.archive.ubuntu.com hardy-updates/restricted Sources [1092B]
Obtendo:34 http://br.archive.ubuntu.com hardy-updates/universe Packages [143kB]
Obtendo:35 http://br.archive.ubuntu.com hardy-updates/universe Sources [33,7kB]
Obtendo:36 http://br.archive.ubuntu.com hardy-updates/multiverse Packages [23,8kB]
Obtendo:37 http://br.archive.ubuntu.com hardy-updates/multiverse Sources [4020B]
99% [5 Translation-pt_BR bzip2 0]


E não sai daí dos 99%, simplesmente NÃO "anda" !!!


Por favor alguém pode me ajudar!
Sou imensamente grato por qualquer ajuda


Leo :'( :'( :'( :'( :'(








Darcamo

Tente dar um Ctrl+C para ver se ele cancela o
Citar99% [5 Translation-pt_BR bzip2 0]
mas acho mais provável que ele cancele o update.

Outra coisa, o ubuntu usa por padrão a codificação UTF8, mas você mandou mudar para ISO-8859-1.
A menos que tenha motivos, não seria mais tranquilo mudar o idioma para pt_BR.UTF-8?
Se o Ctrl+C não der  erto você pode tentar repetir o tutorial fazendo essa mudança onde necessário.