Autor Tópico: [Resolvido] Erros instalação do git e atualização o repositório - Ubuntu 11.04  (Lida 3001 vezes)

Offline UsagiMD

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Bom dia/tarde/noite a todos.

Sou novato em Ubuntu, comecei a utilizar para desenvolver com Ruby on Rails, e devo dizer, era verdade sobre "desistir do windows", apesar das dificuldades para trocar o costume de usar Windows. É sobre essas que venho buscar ajuda :]

De inicio parecerá duplicado, mas no final do tópico vou informar o que ja tentei fazer (segundo erros semelhantes que encontrei neste fórum e em páginas da internet) e perceberão que as soluções dos tópicos existentes não me ajudaram.

Eu instalei o ubuntu 10.10 em uma VM (VirtualBox) no trabalho (sim eles não me permitiram instalar apenas Ubuntu).
Fiz todas atualizações e estou agora com a versão do Ubuntu 11.04.

E comecei a instalar aplicativos para desenvolvimento, mysql e todas outras coisas necesárias. Porém quando cheguei na vez do GIT para controle de versão de projetos.

Tento:

Código: [Selecionar]
sudo apt-get install git-core
ou

Código: [Selecionar]
sudo apt-get install git
Recebo a mensagem:

Código: [Selecionar]
E: Impossível buscar alguns arquivos, talvez executar apt-get update ou tentar com --fix-missing?
Então tento:

Código: [Selecionar]
sudo apt-get update
E recebo diversas mensagens de erro (segue algumas):

Código: [Selecionar]
W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/binary-i386/Packages  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/binary-i386/Packages  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/binary-i386/Packages  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/main/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/main/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/main/i18n/Translation-en  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/i18n/Translation-en  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/i18n/Translation-en  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/i18n/Translation-en  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/main/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/main/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/main/i18n/Translation-en  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/multiverse/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/multiverse/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/multiverse/i18n/Translation-en  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/restricted/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/restricted/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/restricted/i18n/Translation-en  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/universe/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/universe/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/natty-backports/universe/i18n/Translation-en  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

E: Alguns arquivos index falharam ao ser baixados. Eles foram ignorados, ou cópias antigas são usadas ao invés.

E se tento:

Código: [Selecionar]
sudo apt-get install git (ou git-core) --fix-missing
Recebo diversas mensagens de erro (segue exemplos):

Código: [Selecionar]
Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/pool/main/libe/liberror-perl/liberror-perl_0.17-1_all.deb  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/pool/main/g/git/git-man_1.7.4.1-3_all.deb  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/pool/main/g/git/git_1.7.4.1-3_i386.deb  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/pool/main/g/git/git-core_1.7.4.1-3_all.deb  Algo estranho aconteceu ao resolver 'br.archive.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Impossível corrigir pacotes faltantes.

Com isso comecei a pesquisar o que poderia ser, tentei verificar erros na sources.list inclusive copiei uma sources.list do Ubuntu 11.04 que encontrei na internet e o erro persistiu.

Encontrei um post que pedia para verificar a resposta a um comando:

Código: [Selecionar]
cat /etc/apt/sources.list.d/geod-ppa-geod-natty.list
E ele me informa:

Código: [Selecionar]
cat: /etc/apt/sources.list.d/geod-ppa-geod-natty.list: Arquivo ou diretório não encontrado
Segue minha sources.list atual (sudo gedit /etc/apt/sources.list)

Código: [Selecionar]
#deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1)]/ natty 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/ natty main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ natty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-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/ natty universe
deb-src http://br.archive.ubuntu.com/ubuntu/ natty universe
deb http://br.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-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/ natty multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ natty multiverse
deb http://br.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-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/ natty-backports main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security 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 natty partner
deb-src http://archive.canonical.com/ubuntu natty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main

Não faço idéia de como corrigir isso, agradeceria muito se alguém encontrasse uma solução caso seja um problema, ou que saiba me dizer onde estou errando caso seja por causa da minha falta de experiencia com Ubuntu.

Grande abraço a todos.
« Última modificação: 14 de Junho de 2011, 10:05 por UsagiMD »
Matheus Dewes

Offline UsagiMD

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Atualizando,

Utilizei um gerador de sources.list

http://repogen.simplylinux.ch/

Também não foi possível.

Modifiquei configurações de atualização em Sistema > Administração > Gerenciador de atualizações, após cliquei em Configurações, e nas configurações de canais, selecionei a aba Aplicativos e mandei escolher o melhor servidor de atualizações.

O Ubuntu selecionou para mim o server http://76.73.4.58/ubuntu nos EUA e ao recarregar os indices de repositórios recebi os erros a seguir:

Código: [Selecionar]
Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/Release.gpg  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/source/Sources  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/binary-i386/Packages  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/source/Sources  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/i18n/Translation-en  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)
Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/i18n/Translation-en  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)
Alguns arquivos index falharam ao ser baixados. Eles foram ignorados, ou cópias antigas são usadas ao invés.

Mesmo assim tentei: sudo apt-get update e recebi:

Código: [Selecionar]
W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/Release.gpg  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/source/Sources  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/binary-i386/Packages  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/natty/partner/i18n/Translation-en  Algo estranho aconteceu ao resolver 'archive.canonical.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/source/Sources  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/i18n/Translation-pt_BR  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/i18n/Translation-pt  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/natty/main/i18n/Translation-en  Algo estranho aconteceu ao resolver 'extras.ubuntu.com:http' (-5 - Não há endereço associado com o nome)

E: Alguns arquivos index falharam ao ser baixados. Eles foram ignorados, ou cópias antigas são usadas ao invés.

Abs.
« Última modificação: 13 de Junho de 2011, 13:37 por UsagiMD »
Matheus Dewes

Offline UsagiMD

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Reparei que os erros foram reduzidos à "archive.canonical" e "extras.ubuntu"
Então tentei instalar o GIT novamente:

Código: [Selecionar]
$ sudo apt-get install git-core
...
$ Desempacotando emacsen-common (de .../emacsen-common_1.4.19ubuntu2_all.deb) ...
$ Selecionando pacote previamente não selecionado liberror-perl.
$ Desempacotando liberror-perl (de .../liberror-perl_0.17-1_all.deb) ...
$ Selecionando pacote previamente não selecionado git-man.
$ Desempacotando git-man (de .../git-man_1%3a1.7.4.1-3_all.deb) ...
$ Selecionando pacote previamente não selecionado git.
$ Desempacotando git (de .../git_1%3a1.7.4.1-3_i386.deb) ...
$ Selecionando pacote previamente não selecionado git-core.
$ Desempacotando git-core (de .../git-core_1%3a1.7.4.1-3_all.deb) ...
$ Processando gatilhos para man-db ...
$ Configurando emacsen-common (1.4.19ubuntu2) ...
$ emacsen-common: Handling install of emacsen flavor emacs
$ Configurando liberror-perl (0.17-1) ...
$ Configurando git-man (1:1.7.4.1-3) ...
$ Configurando git (1:1.7.4.1-3) ...
$ Configurando git-core (1:1.7.4.1-3) ...

Logo o bug do GIT parou, consegui instalar.

MAS ainda tenho erros para fazer o update do apt-get.

Abs.
Matheus Dewes

Offline UsagiMD

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Murphy estava presente, todos meus problemas acabaram essa manhã, estranhamente.

O mencionado aqui para atualização do apt-get está OK.

Outras questões não postadas foram resolvidas misteriosamente.

Começo a suspeitar da internet disponivel.

Grato a quem dedicou um tempo a ler, para ver se sabia como ajudar.
Matheus Dewes