Verbete · Acervo
/etc/apt/sources.list
Neste artigo
O ficheiro sources.list guarda uma lista de endereços a partir dos quais o computador se actualiza ou instala novas aplicações. A instalação de novas aplicações pode ser realizada a partir do modo gráfico com o Synaptic ou em modo texto com o comando apt‑get.
Para editar o ficheiro sources.list deverá ter permissões de administrador e introduzir na consola:
$ sudo gedit /etc/apt/sources.list
Nota: As linhas começadas pelos caracteres # ou ## são comentários. Servem para orientar as pessoas que lêm o ficheiro com um editor de texto. O sistema operativo ignora estas linhas. Devido a este facto também é habitual usar o caracter # para comentar/descomentar linhas e com isso desactivar/activar fontes de software.
Exemplo de um ficheiro sources list para Portugal para o Edgy Eft
Exemplo para computadores com processadores compatíveis com Intel 386, versão Edgy Eft (6.10) do Ubuntu.
deb http://pt.archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse deb‑src http://pt.archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse ## Major bug fix updates produced after the final release of the ## distribution. deb http://pt.archive.ubuntu.com/ubuntu/ edgy‑updates main restricted universe multiverse deb‑src http://pt.archive.ubuntu.com/ubuntu/ edgy‑updates main restricted universe multiverse ## 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://pt.archive.ubuntu.com/ubuntu/ edgy universe # deb‑src http://pt.archive.ubuntu.com/ubuntu/ edgy universe ## 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://pt.archive.ubuntu.com/ubuntu/ edgy‑backports main restricted universe multiverse # deb‑src http://pt.archive.ubuntu.com/ubuntu/ edgy‑backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu edgy‑security main restricted universe multiverse deb‑src http://security.ubuntu.com/ubuntu edgy‑security main restricted universe multiverse # deb http://security.ubuntu.com/ubuntu edgy‑security universe deb http://archive.ubuntu.com/ubuntu/ edgy‑proposed restricted main multiverse universe deb‑src http://archive.ubuntu.com/ubuntu/ edgy‑proposed restricted main multiverse universe # deb‑src http://security.ubuntu.com/ubuntu edgy‑security universe deb http://www.getautomatix.com/apt edgy main #AUTOMATIX REPOS START deb http://dl.google.com/linux/deb/ stable non‑free deb http://archive.canonical.com/ubuntu dapper‑commercial main deb http://archive.ubuntu.com/ubuntu edgy‑backports main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu edgy‑updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu edgy‑security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse #AUTOMATIX REPOS END
Exemplo de um ficheiro sources list para Portugal para o Dapper Drake
Exemplo para computadores com processadores compatíveis com Intel 386, versão Dapper Drake (6.06) do Ubuntu.
Pacotes base:
deb‑src http://pt.archive.ubuntu.com/ubuntu/ dapper main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://pt.archive.ubuntu.com/ubuntu/ dapper‑updates main restricted deb‑src http://pt.archive.ubuntu.com/ubuntu/ dapper‑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://archive.ubuntu.com/ubuntu/ dapper universe main restricted multiverse deb‑src http://pt.archive.ubuntu.com/ubuntu/ dapper universe ## 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://pt.archive.ubuntu.com/ubuntu/ dapper‑backports main restricted universe multiverse # deb‑src http://pt.archive.ubuntu.com/ubuntu/ dapper‑backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu dapper‑security main restricted deb‑src http://security.ubuntu.com/ubuntu dapper‑security main restricted # deb http://security.ubuntu.com/ubuntu dapper‑security universe # deb‑src http://security.ubuntu.com/ubuntu dapper‑security universe
Caso esteja num ambiente de experimentação, onde a estabilidade do sistema não é tão importante pode experimentar adicionar as seguintes linhas no final do dicheiro sources.list
# Automatically generated sources.list # http://www.ubuntulinux.nl/source‑o‑matic # # If you get errors about missing keys, lookup the key in this file # and run these commands (replace KEY with the key number) # # gpg ‑‑keyserver subkeys.pgp.net ‑‑recv KEY # gpg ‑‑export ‑‑armor KEY | sudo apt‑key add · # Cipherfunk multimedia packages (packages, GPG key: 33BAC1B3) deb ftp://cipherfunk.org/pub/packages/ubuntu/ dapper main
Source‑o‑matic
O sítio Source‑o‑matic apresenta um script para gerar ficheiros "sources.list".