Voltar a Revista Fórum

Ubuntu: repositórios de versões anteriores

02/07/2012 | Publicado por Tatiane Pires em Ubuntu

Depois de concluir a instalação da versão 9.04 do Ubuntu em um computador antigo, diversos erros ocorriam após o comando sudo apt-get update.

Apt-get é um comando utilizado no Ubuntu para instalar, atualizar e remover pacotes de software que compõem o sistema operacional. Apt-get update atualiza o banco de dados local dos pacotes disponíveis nos repositórios definidos em /etc/apt/sources.list.

Depois de algum tempo pesquisando pela solução, descobri que versões antigas do Ubuntu cujo período de suporte já foi encerrado pela Canonical tem seus repositórios removidos dos servidores principais como archive.ubuntu.com e security.ubuntu.com, causando os erros.

A solução é alterar o arquivo /etc/apt/sources.list para direcionar os repositórios para old-releases.ubuntu.com. A seguir um exemplo de como esse arquivo deve ser editado para a versão 9.04:

## Uncomment the following two lines to fetch updated software from the network
deb http://old-releases.ubuntu.com/ubuntu jaunty main restricted
deb-src http://old-releases.ubuntu.com/ubuntu jaunty main restricted

## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://old-releases.ubuntu.com/ubuntu jaunty-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu jaunty-updates main restricted

## Uncomment the following two lines to add software from the ‘universe’
## repository.
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://old-releases.ubuntu.com/ubuntu jaunty universe
deb-src http://old-releases.ubuntu.com/ubuntu jaunty universe

deb http://old-releases.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu jaunty-security main restricted

deb http://old-releases.ubuntu.com/ubuntu jaunty-security universe
deb-src http://old-releases.ubuntu.com/ubuntu jaunty-security universe

deb http://old-releases.ubuntu.com/ubuntu jaunty multiverse
deb-src http://old-releases.ubuntu.com/ubuntu jaunty multiverse

deb http://old-releases.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse

Cada versão do Ubuntu tem um codenome que deve ser mantido ao alterar as linhas do arquivo sources.list. O codinome da versão 9.04, por exemplo, é jaunty.

Codinomes das versões do Ubuntu
Versão Codinome
9.10 karmic
9.04 jaunty
8.10 intrepid
8.04 hardy
7.10 gutsy
7.04 feisty
6.10 edgy
6.06 dapper
5.10 breezy
5.04 hoary
4.10 warty

Você pode acompanhar as respostas através do RSS 2.0 Você pode deixar comentário, or trackback.

6 comentários



Deixar comentário

O seu endereço de email não será publicado Campos obrigatórios são marcados *

*

Você pode usar estas tags e atributos de HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>