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:
sudo apt-get install git-core
ou
sudo apt-get install git
Recebo a mensagem:
E: Impossível buscar alguns arquivos, talvez executar apt-get update ou tentar com --fix-missing?
Então tento:
sudo apt-get update
E recebo diversas mensagens de erro (segue algumas):
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:
sudo apt-get install git (ou git-core) --fix-missing
Recebo diversas mensagens de erro (segue exemplos):
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:
cat /etc/apt/sources.list.d/geod-ppa-geod-natty.list
E ele me informa:
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)
#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.