Erro ao dar Update [RESOLVIDO]

1. Erro ao dar Update [RESOLVIDO]

henrique de s. oliveira
okcomputer2

(usa Fedora)

Enviado em 10/10/2010 - 18:45h

Uso o Debian 5.0.4 e quando vou dar o apt-get update recebo o seguinte erro:

W: Failed to fetch http://debian.las.ic.unicamp.br/debian/dists/lenny/main/binary-i386/Packages 403 Forbidden

W: Failed to fetch http://debian.las.ic.unicamp.br/debian/dists/lenny/main/source/Sources 403 Forbidden

E: Some index files failed to download, they have been ignored, or old ones used instead.

Como consertar isso para o aptitude funcionar corretamente?


  


2. MELHOR RESPOSTA

Perfil removido
removido

(usa Nenhuma)

Enviado em 10/10/2010 - 20:36h

De vez em quando ocorre problemas de conexão com esses espelhos brasileiros: a solução usar 2 repositórios, o oficial = ftp.debian e o br.

Você pode se quiser, substituir as linhas abaixo:

deb http://debian.las.ic.unicamp.br/debian/ lenny main contrib non-free
deb-src http://debian.las.ic.unicamp.br/debian/ lenny main contrib non-free

por:

deb http://ftp.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.debian.org/debian/ lenny main contrib non-free


Então abra o sources.list com o Gedit e altere o proposto acima.

$ sudo gedit /etc/apt/sources.list


#
#
#


Se quiser usar esse sources.list mastigado quando abrir o arquivo apague tudo e use o que está abaixo:

## Debian 5.0.6 'Lenny/Stable' (Espelho Brasileiro).
## GPG Key: sudo apt-get install debian-archive-keyring debian-keyring debian-multimedia-keyring
deb http://ftp.br.debian.org/debian/ lenny main contrib non-free
deb http://ftp.br.debian.org/debian-security/ lenny/updates main contrib non-free
deb http://ftp.br.debian.org/debian-multimedia lenny main non-free
#deb-src http://ftp.br.debian.org/debian/ lenny main contrib non-free
#deb-src http://ftp.br.debian.org/debian-security/ lenny/updates main contrib non-free
#deb-src http://ftp.br.debian.org/debian-multimedia lenny main non-free

## Debian 5.0.6 'Lenny/Stable' (Espelho Oficial).
## GPG Key: sudo apt-get install debian-archive-keyring debian-keyring debian-multimedia-keyring
deb http://ftp.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb http://www.debian-multimedia.org/ lenny main non-free
#deb-src http://ftp.debian.org/debian/ lenny main contrib non-free
#deb-src http://security.debian.org/ lenny/updates main contrib non-free
#deb-src http://www.debian-multimedia.org/ lenny main non-free

## Debian 5.0.6 'Lenny/Stable' (Proposed Updates) [Desnecessário].
## deb http://ftp.debian.org/debian/ lenny-proposed-updates main contrib non-free
## deb http://ftp.br.debian.org/debian/ lenny-proposed-updates main contrib non-free
## deb-src http://ftp.debian.org/debian/ lenny-proposed-updates main contrib non-free
## deb-src http://ftp.br.debian.org/debian/ lenny-proposed-updates main contrib non-free

## Debian 5.0.6 'Lenny/Stable' (Volatile).
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

## Debian 5.0.6 Lenny Backports (Kernel 2.6.32-5, BrOffice 3.2.1, etc).
## GPG Key: sudo apt-get install debian-backports-keyring
## deb http://www.backports.org/debian lenny-backports main contrib non-free
## deb http://www.backports.org/backports.org/ lenny-backports main contrib non-free
## deb-src http://www.backports.org/debian lenny-backports main contrib non-free
## deb-src http://www.backports.org/backports.org/ lenny-backports main contrib non-free


### Outros Repositórios

## VirtualBox.
deb http://download.virtualbox.org/virtualbox/debian lenny non-free

## Opera Web Browser.
deb http://deb.opera.com/opera/ lenny non-free

## Wine.
deb http://www.lamaresh.net/apt lenny main

#
#
#

Instalação das chaves GPG (Opera, VirtualBox e Wine):

$ sudo apt-get install debian-archive-keyring debian-keyring debian-multimedia-keyring
$ wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
$ wget -O - http://www.lamaresh.net/apt/key.gpg | sudo apt-key add -


Se quiser mais coisas, vá em http://debgen.simplylinux.ch e selecione País, a release do Debian e os repositórios que quiser.

3. Re: Erro ao dar Update [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 10/10/2010 - 20:59h

No sources.list que passei, precisamente em baixo dos títulos dos repositórios estão os comandos para instalar as chaves GPG, veja:

## GPG Key: sudo apt-get install debian-archive-keyring debian-keyring debian-multimedia-keyring


Então:

$ sudo apt-get install debian-archive-keyring debian-keyring debian-multimedia-keyring
$ sudo apt-get update

e seja feliz!


4. Funcionou

henrique de s. oliveira
okcomputer2

(usa Fedora)

Enviado em 10/10/2010 - 21:02h

Valeu funcionou tudo. Abraço.


5. Re: Erro ao dar Update [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 10/10/2010 - 21:10h

falta só marcar o tópico como resolvido né?






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts