Repositório para Debian 5 Lenny

Você já ainda utiliza o Debian 5 (lenny) e não está conseguindo instalar novos pacotes ou atualizar o sistema?

Veja como minimizar os seus problemas

Problema

O suporte a versão 5 Debian Lenny acabou no inicio do ano de 2012, veja o anuncio em http://www.debian.org/News/2012/20120209

Por este motivo você vai ver erros quando tentar utilizar o apt-get, veja um exemplo de erro.

# apt-get update
Ign http://security.debian.org lenny/updates Release.gpg
Ign http://security.debian.org lenny/updates Release 
Ign http://ftp.br.debian.org lenny Release.gpg 
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://ftp.br.debian.org lenny Release 
Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
Ign http://ftp.br.debian.org lenny/main Packages/DiffIndex 
Ign http://security.debian.org lenny/updates/non-free Packages/DiffIndex 
Ign http://ftp.br.debian.org lenny/non-free Packages/DiffIndex 
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex 
Ign http://ftp.br.debian.org lenny/contrib Packages/DiffIndex 
Ign http://security.debian.org lenny/updates/contrib Sources/DiffIndex 
Ign http://ftp.br.debian.org lenny/main Sources/DiffIndex 
Ign http://security.debian.org lenny/updates/non-free Sources/DiffIndex 
Ign http://ftp.br.debian.org lenny/non-free Sources/DiffIndex 
Ign http://security.debian.org lenny/updates/main Packages 
Ign http://ftp.br.debian.org lenny/contrib Sources/DiffIndex 
Ign http://security.debian.org lenny/updates/contrib Packages 
Ign http://ftp.br.debian.org lenny/main Packages 
Ign http://security.debian.org lenny/updates/non-free Packages 
Ign http://ftp.br.debian.org lenny/non-free Packages 
Ign http://security.debian.org lenny/updates/main Sources 
Ign http://ftp.br.debian.org lenny/contrib Packages 
Ign http://security.debian.org lenny/updates/contrib Sources 
Ign http://ftp.br.debian.org lenny/main Sources 
Ign http://security.debian.org lenny/updates/non-free Sources 
Ign http://ftp.br.debian.org lenny/non-free Sources 
Err http://security.debian.org lenny/updates/main Packages 
 404 Not Found
Ign http://ftp.br.debian.org lenny/contrib Sources 
Err http://security.debian.org lenny/updates/contrib Packages 
 404 Not Found
Err http://ftp.br.debian.org lenny/main Packages 
 404 Not Found [IP: 200.236.31.3 80]
Err http://security.debian.org lenny/updates/non-free Packages 
 404 Not Found
Err http://ftp.br.debian.org lenny/non-free Packages 
 404 Not Found [IP: 200.236.31.3 80]
Err http://security.debian.org lenny/updates/main Sources 
 404 Not Found
Err http://ftp.br.debian.org lenny/contrib Packages 
 404 Not Found [IP: 200.236.31.3 80]
Err http://security.debian.org lenny/updates/contrib Sources 
 404 Not Found
Err http://ftp.br.debian.org lenny/main Sources 
 404 Not Found [IP: 200.236.31.3 80]
Err http://security.debian.org lenny/updates/non-free Sources 
 404 Not Found
Err http://ftp.br.debian.org lenny/non-free Sources 
 404 Not Found [IP: 200.236.31.3 80]
Err http://ftp.br.debian.org lenny/contrib Sources 
 404 Not Found [IP: 200.236.31.3 80]
Hit http://volatile.debian.org lenny/volatile Release.gpg 
Hit http://volatile.debian.org lenny/volatile Release
Ign http://volatile.debian.org lenny/volatile/main Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/contrib Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/non-free Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/main Sources/DiffIndex
Ign http://volatile.debian.org lenny/volatile/contrib Sources/DiffIndex
Ign http://volatile.debian.org lenny/volatile/non-free Sources/DiffIndex
Hit http://volatile.debian.org lenny/volatile/main Packages
Hit http://volatile.debian.org lenny/volatile/contrib Packages
Hit http://volatile.debian.org lenny/volatile/non-free Packages
Hit http://volatile.debian.org lenny/volatile/main Sources
Hit http://volatile.debian.org lenny/volatile/contrib Sources
Hit http://volatile.debian.org lenny/volatile/non-free Sources
W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://security.debian.org/dists/lenny/updates/contrib/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ftp.br.debian.org/debian/dists/lenny/main/binary-amd64/Packages 404 Not Found [IP: 200.236.31.3 80]
W: Failed to fetch http://security.debian.org/dists/lenny/updates/non-free/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ftp.br.debian.org/debian/dists/lenny/non-free/binary-amd64/Packages 404 Not Found [IP: 200.236.31.3 80]
W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/source/Sources 404 Not Found
W: Failed to fetch http://ftp.br.debian.org/debian/dists/lenny/contrib/binary-amd64/Packages 404 Not Found [IP: 200.236.31.3 80]
W: Failed to fetch http://security.debian.org/dists/lenny/updates/contrib/source/Sources 404 Not Found
W: Failed to fetch http://ftp.br.debian.org/debian/dists/lenny/main/source/Sources 404 Not Found [IP: 200.236.31.3 80]
W: Failed to fetch http://security.debian.org/dists/lenny/updates/non-free/source/Sources 404 Not Found
W: Failed to fetch http://ftp.br.debian.org/debian/dists/lenny/non-free/source/Sources 404 Not Found [IP: 200.236.31.3 80]
W: Failed to fetch http://ftp.br.debian.org/debian/dists/lenny/contrib/source/Sources 404 Not Found [IP: 200.236.31.3 80]
E: Some index files failed to download, they have been ignored, or old ones used instead.

Correção

Para que você possa instalar pacotes do repositório via apt-get ou instalar as últimas atualizações você precisa alterar a lista de repositórios.

Lembro que a recomendação é atualizar para versão Debian 6 (Squeeze)

Conheço duas opções que podem ser usadas, os sites abaixo são mantidos com as versões antigas dos pacotes Debian.

http://archive.debian.org/

http://snapshot.debian.org/

No link abaixo você tem acesso aos pacotes do Debian 5 (Lenny)

http://snapshot.debian.org/archive/debian/20120131T214008Z/

Vamos editar o arquivo /etc/apt/sources.list e alterar as configurações para os novos repositórios.

vi /etc/apt/sources.list

Remova as linhas antigas e adicione as linhas abaixo no arquivo sources.list

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

deb http://archive.debian.org/debian-security lenny/updates main contrib non-free
deb-src http://archive.debian.org/debian-security lenny/updates main contrib non-free

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

Agora atualize a lista de pacotes

# apt-get update
Get:1 http://archive.debian.org lenny Release.gpg [1034B]
Get:2 http://archive.debian.org lenny/updates Release.gpg [836B]
Get:3 http://archive.debian.org lenny/volatile Release.gpg [481B]
Get:4 http://archive.debian.org lenny Release [99.6kB]
Get:5 http://archive.debian.org lenny/updates Release [92.4kB]
Get:6 http://archive.debian.org lenny/volatile Release [40.7kB]
Get:7 http://archive.debian.org lenny/main Packages [6814kB]
Get:8 http://archive.debian.org lenny/non-free Packages [108kB] 
Get:9 http://archive.debian.org lenny/contrib Packages [88.9kB] 
Get:10 http://archive.debian.org lenny/main Sources [3482kB] 
Get:11 http://archive.debian.org lenny/non-free Sources [67.6kB] 
Get:12 http://archive.debian.org lenny/contrib Sources [54.1kB] 
Get:13 http://archive.debian.org lenny/updates/main Packages [432kB] 
Get:14 http://archive.debian.org lenny/updates/contrib Packages [683B] 
Get:15 http://archive.debian.org lenny/updates/non-free Packages [20B] 
Get:16 http://archive.debian.org lenny/updates/main Sources [151kB] 
Get:17 http://archive.debian.org lenny/updates/contrib Sources [731B] 
Get:18 http://archive.debian.org lenny/updates/non-free Sources [20B] 
Get:19 http://archive.debian.org lenny/volatile/main Packages [7398B] 
Get:20 http://archive.debian.org lenny/volatile/contrib Packages [20B] 
Get:21 http://archive.debian.org lenny/volatile/non-free Packages [737B] 
Get:22 http://archive.debian.org lenny/volatile/main Sources [3436B] 
Get:23 http://archive.debian.org lenny/volatile/contrib Sources [20B] 
Get:24 http://archive.debian.org lenny/volatile/non-free Sources [609B] 
Fetched 11.4MB in 54s (212kB/s) 
Reading package lists... Done

Se na hora de atualizar você receber a mensagem de erro abaixo.

W: GPG error: http://archive.debian.org lenny Release: The following signatures were invalid: KEYEXPIRED 1337087218 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
W: You may want to run apt-get update to correct these problems

Instale o pacotes debian-archive-keyring conforme descrito neste tutorial.

# aptitude install debian-archive-keyring

Agora basta atualizar o sistema com os últimos pacotes lançados para o Lenny ou instalar o pacote desejado

# apt-get upgrade
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following packages will be upgraded:
 acpid apache2-mpm-prefork apache2-utils apache2.2-common base-files bind9-host dnsutils libapache2-mod-php5 libapr1 libbind9-40 libdns45 libisc45 libisccc40 libisccfg40 libkrb53 liblwres40 libpq5
 libssl0.9.8 libt1-5 libxml2 linux-headers-2.6.26-2-amd64 linux-headers-2.6.26-2-common linux-image-2.6.26-2-amd64 linux-libc-dev openssl php5-common php5-gd php5-mcrypt php5-mysql
29 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.6MB of archives.
After this operation, 77.8kB disk space will be freed.
Do you want to continue [Y/n]?

Até a próxima galera.

Rodrigo Luis Silva

Gestor de equipes especialista em sistemas GNU/Linux com vasta experiência em gerenciamento de storage, virtualização, network, desenvolvimento e outros.

More Posts - Website

Follow Me:
Twitter

3 Respostas

  1. Wilton Leite

    Parabéns Rodrigo pelo tuto e obrigado por disseminar seu conhecimento. Foi muito útil para mim.
    Abraços

      (Citar)

  2. Sidney Donizeti

    Obrigado, funcionou muito bem !!!

      (Citar)

  3. Muito obrigado cara.. o repositorio deu certo!!!

      (Citar)

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Home Linux Repositório para Debian 5 Lenny