Autor Tópico: Erro ao usar apt-get update / upgrade e instalar o postgresql  (Lida 10135 vezes)

Offline raphaelbbdk

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Erro ao usar apt-get update / upgrade e instalar o postgresql
« Online: 24 de Setembro de 2009, 09:00 »
Senhores, estou tentando instalar o Postgresql no meu servidor e estou tendo problemas sempre que tento instalat vem o seguinte erro:

root@sol:/# apt-get install postgresql-8.3
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Os pacotes extra a seguir serão instalados:
  libpq5 postgresql-client-8.3 postgresql-client-common postgresql-common ssl-cert
Pacotes sugeridos:
  oidentd ident-server postgresql-doc-8.3
Os NOVOS pacotes a seguir serão instalados:
  libpq5 postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common ssl-cert
0 pacotes atualizados, 6 pacotes novos instalados, 0 a serem removidos e 53 não atualizados.
à preciso baixar 143kB/4842kB de arquivos.
Depois desta operação, 20,6MB adicionais de espaço em disco serão usados.
Você quer continuar [S/n]? s
Obter:1 http://br.archive.ubuntu.com jaunty/main postgresql-client-common 97 [47,7kB]
Obter:2 http://br.archive.ubuntu.com jaunty/main postgresql-common 97 [84,5kB]
Obter:3 http://br.archive.ubuntu.com jaunty/main ssl-cert 1.0.23ubuntu1 [10,8kB]
Baixados 6699B em 18s (362B/s)
Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/pool/main/p/postgresql-common/postgresql-client-common_97_all.deb  Tamanho incorreto
Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/pool/main/p/postgresql-common/postgresql-common_97_all.deb  Tamanho incorreto
Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/pool/main/s/ssl-cert/ssl-cert_1.0.23ubuntu1_all.deb  Tamanho incorreto
E: Impossível buscar alguns arquivos, talvez executar apt-get update ou tentar com --fix-missing?
=======================================================================================================

Quando tento executar o apt-get update da o seguinte:


=========================================================================================================
root@sol:/# apt-get update
Atingido http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-pt_BR
Ign http://security.ubuntu.com jaunty-security/restricted Translation-pt_BR
Ign http://security.ubuntu.com jaunty-security/universe Translation-pt_BR
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-pt_BR
Atingido http://security.ubuntu.com jaunty-security Release
Atingido http://security.ubuntu.com jaunty-security/main Packages
Atingido http://security.ubuntu.com jaunty-security/restricted Packages
Atingido http://security.ubuntu.com jaunty-security/main Sources
Atingido http://security.ubuntu.com jaunty-security/restricted Sources
Atingido http://security.ubuntu.com jaunty-security/universe Packages
Atingido http://security.ubuntu.com jaunty-security/universe Sources
Atingido http://security.ubuntu.com jaunty-security/multiverse Packages
Atingido http://security.ubuntu.com jaunty-security/multiverse Sources
Obter:1 http://br.archive.ubuntu.com jaunty Release.gpg [2119B]
Obter:2 http://br.archive.ubuntu.com jaunty/main Translation-pt_BR [2191B]
99% [Conectando em guide.opendns.com (208.67.216.136)]bzip2: (stdin) is not a bzip2 file.
Ign http://br.archive.ubuntu.com jaunty/main Translation-pt_BR
Obter:3 http://br.archive.ubuntu.com jaunty/restricted Translation-pt_BR [2209B]
66% [3 Translation-pt_BR bzip2 0] [Conectando em guide.opendns.com (208.67.216.136)]bzip2: (stdin) is not a bzip2 file.
Ign http://br.archive.ubuntu.com jaunty/restricted Translation-pt_BR
Obter:4 http://br.archive.ubuntu.com jaunty/universe Translation-pt_BR [2203B]
49% [4 Translation-pt_BR bzip2 0] [Conectando em guide.opendns.com (208.67.216.136)]                                                              326B/s 13sbzip2: (stdin) is not a bzip2 file.
Ign http://br.archive.ubuntu.com jaunty/universe Translation-pt_BR
Obter:5 http://br.archive.ubuntu.com jaunty/multiverse Translation-pt_BR [2209B]
39% [5 Translation-pt_BR bzip2 0] [Conectando em guide.opendns.com (208.67.216.136)]                                                              326B/s 20sbzip2: (stdin) is not a bzip2 file.
Ign http://br.archive.ubuntu.com jaunty/multiverse Translation-pt_BR
Obter:6 http://br.archive.ubuntu.com jaunty-updates Release.gpg [2143B]
Obter:7 http://br.archive.ubuntu.com jaunty-updates/main Translation-pt_BR [2215B]
42% [7 Translation-pt_BR bzip2 0] [Conectando em guide.opendns.com (208.67.216.136)]                                                              326B/s 27sbzip2: (stdin) is not a bzip2 file.
Ign http://br.archive.ubuntu.com jaunty-updates/main Translation-pt_BR
Obter:8 http://br.archive.ubuntu.com jaunty-updates/restricted Translation-pt_BR [2233B]
37% [8 Translation-pt_BR bzip2 0] [Conectando em guide.opendns.com (208.67.216.136)]                                                              326B/s 33sbzip2: (stdin) is not a bzip2 file.
Ign http://br.archive.ubuntu.com jaunty-updates/restricted Translation-pt_BR
Obter:9 http://br.archive.ubuntu.com jaunty-updates/universe Translation-pt_BR [2227B]
32% [9 Translation-pt_BR bzip2 0] [Conectando em guide.opendns.com (208.67.216.136)]                                                              326B/s 40sbzip2: (stdin) is not a bzip2 file.
Ign http://br.archive.ubuntu.com jaunty-updates/universe Translation-pt_BR
Obter:10 http://br.archive.ubuntu.com jaunty-updates/multiverse Translation-pt_BR [2233B]
29% [10 Translation-pt_BR bzip2 0] [Conectando em br.archive.ubuntu.com (67.215.66.132)]                                                          326B/s 47sbzip2: (stdin) is not a bzip2 file.
Ign http://br.archive.ubuntu.com jaunty-updates/multiverse Translation-pt_BR
Obter:11 http://br.archive.ubuntu.com jaunty Release [2107B]
Err http://br.archive.ubuntu.com jaunty Release

Obter:12 http://br.archive.ubuntu.com jaunty-updates Release [2131B]
Err http://br.archive.ubuntu.com jaunty-updates Release

Baixados 26,2kB em 35s (742B/s)
Lendo listas de pacotes... Pronto
W: Ocorreu um erro durante a verificação de assinatura.  O repositório não está atualizado e o índice de arquivos anteriro será utilizado. Erro no GPG: http://br.archive.ubuntu.com jaunty Release: As seguintes assinaturas eram inválidas: NODATA 1 NODATA 2

W: Ocorreu um erro durante a verificação de assinatura.  O repositório não está atualizado e o índice de arquivos anteriro será utilizado. Erro no GPG: http://br.archive.ubuntu.com jaunty-updates Release: As seguintes assinaturas eram inválidas: NODATA 1 NODATA 2

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/jaunty/Release

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/jaunty-updates/Release

W: Alguns arquivos de índice falharam para baixar, eles foram ignorados ou os antigos foram usados no lugar.
W: Você terá que executar apt-get update para corrigir estes problemas

===================================================================================================

O conteudo do meu repositorio é o seguinte:

===================================================================================================

# deb cdrom:[Ubuntu-Server 9.04 _Jaunty Jackalope_ - Release i386 (20090421.1)]/ jaunty main restricted

#deb cdrom:[Ubuntu-Server 9.04 _Jaunty Jackalope_ - Release i386 (20090421.1)]/ jaunty 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/ jaunty main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ jaunty main restricted

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

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. 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/ jaunty universe
deb-src http://br.archive.ubuntu.com/ubuntu/ jaunty universe
deb http://br.archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ jaunty-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/ jaunty multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://br.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ jaunty-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/ jaunty-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ jaunty-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 jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

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

Alguem pode me ajudar?

Offline fchevitarese

  • Usuário Ubuntu
  • *
  • Mensagens: 265
    • Ver perfil
    • Fred Chevitarese
Re: Erro ao usar apt-get update / upgrade e instalar o postgresql
« Resposta #1 Online: 24 de Setembro de 2009, 17:07 »
Já rodou o comando que lhe foi sugerido pelo apt ?
Não sei se vai resolver, mas não custa tentar...

apt-get update --fix-missing


Abraços!!!
Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com

Offline Dobrowolsky

  • Usuário Ubuntu
  • *
  • Mensagens: 14
    • Ver perfil
Re: Erro ao usar apt-get update / upgrade e instalar o postgresql
« Resposta #2 Online: 01 de Outubro de 2009, 11:02 »
Engraçado, o meu estava dando erro quando executava "sudo apt-get install update" ou tentava instalar qualquer outro pacote.
estava dando o seguinte erro
Citar
matheus@Teste:~$ sudo apt-get install update
A ler as listas de pacotes... Pronto
A construir árvore de dependências
A ler a informação de estado... Pronto
E: Impossível encontrar o pacote update

utilizei este comando
Citar
apt-get update --fix-missing
de acordo com o sugerido e funcionou perfeitamente, agora consigo installar outros pacotes trankilamente.

agora so tenho uma duvida, este comando faz o q? e pq estava dando este erro comigo?

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Erro ao usar apt-get update / upgrade e instalar o postgresql
« Resposta #3 Online: 01 de Outubro de 2009, 22:02 »
Engraçado, o meu estava dando erro quando executava "sudo apt-get install update" ou tentava instalar qualquer outro pacote.
estava dando o seguinte erro
Citar
matheus@Teste:~$ sudo apt-get install update
A ler as listas de pacotes... Pronto
A construir árvore de dependências
A ler a informação de estado... Pronto
E: Impossível encontrar o pacote update

utilizei este comando
Citar
apt-get update --fix-missing
de acordo com o sugerido e funcionou perfeitamente, agora consigo installar outros pacotes trankilamente.

agora so tenho uma duvida, este comando faz o q? e pq estava dando este erro comigo?


Código: [Selecionar]
matheus@Teste:~$ sudo apt-get install update
sudo ( vire super usuario ) apt-get ( front end do dpkg ) install (instale o pacote ) update ( nome do pacote update, {não existe no Ubuntu um pacote chamado update })

Código: [Selecionar]
matheus@Teste:~$ sudo apt-get update - fiix missing
sudo ( vire super usuario ) apt-get ( front end do dpkg ) update ( atualize)  -fix ( conserte ) missing ( pacotes quebrados )


Percebeu a diferença?

Voce estava usando => apgt-get install update e não => apt-get update

[],s

Offline Dobrowolsky

  • Usuário Ubuntu
  • *
  • Mensagens: 14
    • Ver perfil
Re: Erro ao usar apt-get update / upgrade e instalar o postgresql
« Resposta #4 Online: 01 de Outubro de 2009, 22:12 »
hm, entendi
mais a questao era que pacote nenhum esta instalando...
+ vlw a dica e ja resolvido ^^