AdicionandoRepositorios

Differences between revisions 1 and 15 (spanning 14 versions)
Revision 1 as of 2005-12-02 18:04:48
Size: 6783
Editor: OgMaciel
Comment:
Revision 15 as of 2006-07-19 17:58:51
Size: 11321
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Conteúdo'''[[BR]][[TableOfContents(3)]]|| ## page was renamed from AddingRepositoriesHowto
||<tablebgcolor="#f1f1ed" tablewidth="40%" tablestyle="margin: 0pt 0pt 1em 1em; float: right; font-size: 0.9em;"style="padding: 0.5em;">'''Contents'''[[BR]][[TableOfContents(3)]] ||
Line 3: Line 4:
'''Tradução em Inglês''' - AddingRepositoriesHowto
---------------------------------------
'''Necessita de tradução e screenshots''' Fonte https://help.ubuntu.com/community/Repositories/Ubuntu
Line 6: Line 6:
Por ''default'' o Ubuntu não habilita os repositórios {{{Universe}}} e {{{Multiverse}}}. Existem também repositórios não-Ubuntu que você pode querer adicionar em sua máquina Ubuntu, embora isto geralmente não é recomendável. [[Anchor(what)]]
== What are Repositories? ==
There are thousands of programs available to install on Ubuntu. These programs are stored in software archives ''(repositories)'' and are available for installation over the Internet. This makes it very easy to install new programs. It is also very secure, because each program you install is thoroughly tested and built specifically for Ubuntu.
Line 8: Line 10:
= Adicionando Universe e Multiverse =
== Usando Synaptic ==
The Ubuntu software repository is organised into four "components", on the basis of the level of support Ubuntu can offer them, and whether or not they comply with Ubuntu's [http://www.ubuntu.com/ubuntu/philosophy Free Software Philosophy]. The components are called '''Main''' (officially supported software), '''Restricted''' (supported software that is not available under a completely free license), '''Universe''' (community-maintained, i.e. not officially supported software) and '''Multiverse''' (software that is "not free"). You can find more information about the Ubuntu Repositories [http://www.ubuntu.com/ubuntu/components here].
Line 11: Line 12:
O gerenciador de pacotes Synaptic se encontra em lugares diferentes nas versões Warty e Hoary/Breezy. The Ubuntu Install CDs contain software from the '''Main''' and '''Restricted''' components. Once your system is made aware of the Internet-based locations for these repositories, many more software programs are made available for installation. Using the software package management tools already installed on your system, you can search for, install and update any piece of software directly over the Internet, without the need for the CD.
Line 13: Line 14:
=== Ubuntu Hoary e Breezy ===
Inicie Gerenciador de Pacotes {{{Synaptic}}} do menu {{{Sistema}}} , {{{Administração}}}.
[[BR]]
== Adding Repositories in Ubuntu ==
attachment:Icones/informacao.png This page describes how to manage software repositories in '''Ubuntu 6.06 (Dapper Drake)'''. For '''Kubuntu 6.06''' please see [:KubuntuAddingRepositoriesHowto:Kubuntu repository management]. For '''earlier versions of Ubuntu''' please see [:AdicionandoRepositorios/Breezy:this wiki page].
Line 16: Line 18:
attachment:AddingRepositoriesHowto/hoarysynaptic.jpg attachment:Icones/terminal.png The operations described on this page modify the software repositories configuration file located at
Line 18: Line 20:
=== Ubuntu Warty Warthog ===  . {{{
/etc/apt/sources.list }}}
 Software sources can also be managed by making direct modifications to this file using the command line. If you prefer to use the command line instead of a graphical user interface, see [:CommandLine:Managing Repositories from the Command Line] instead.
Line 20: Line 24:
Inicie Gerenciador de Pacotes {{{Synaptic}}} do menu {{{Computador}}} , {{{Configurações do Sistema}}}. [[BR]]
== Adding the Universe and Multiverse Repositories ==
[[BR]] * Navigate to "System" > "Administration" > "Software Properties". You will have to enter your password here.
Line 22: Line 28:
attachment:AddingRepositoriesHowto/PicSelectSynapticFromtheMenu.png attachment:menu-sw.png
Line 24: Line 30:
=== Todas as versões do Ubuntu ===  * A list of repositories or "Channels" will be shown. Select "Ubuntu 6.06 LTS (source)" from the list (should be the first one), click "Add...", select "non-free (multiverse)" and "community maintained (universe)" by clicking their check boxes. Now click the "add" button.
 attachment:activating-repos.png
Line 26: Line 33:
Quando Synaptic iniciar escolha o item {{{Repositórios}}} no menu {{{Configurações}}}.  * Click '''Close''' to save your changes. A dialog box should appear, asking whether you'd like to update the list of repositories. Click '''Reload''' to apply your changes.
Line 28: Line 35:
attachment:AddingRepositoriesHowto/PicOpentheRepositoriesDialog.png [[BR]] attachment:Icones/informacao.png '''Integration with Synaptic Package Manager'''
Line 30: Line 37:
Você verá uma lista de repositórios. Clique no botão {{{configurações}}} na parte de baixo da janela e marque {{{Exibir fontes de software desabilitadas}}}. Depois clique no botão {{{Fechar}}}.  * The next time you use the '''Synaptic''' package manager, click on the '''Reload''' button to make it aware of the new software repositories.
 attachment:reload.png
Line 32: Line 40:
attachment:AddingRepositoriesHowto/showdisabled.jpg  * You can also manage software repositories from within '''Synaptic''' by selecting "Settings" > "Repositories".
 attachment:synaptic-repos.png
Line 34: Line 43:
Use os botões de verificação (checkboxes) próximos aos repositórios para habilitar ou desabilitar um repositórios. Deslize o scroll e habilite o repositório Universe marcando o checkbox ao lado de {{{Mantido pela comunidade (Universo)}}}. Você pode querer também habilitar os repositórios {{{Multiverso}}} e {{{Atualizações de segurança (Universo)}}}. Clique no botão {{{OK}}} para salvar suas mudanças. [[BR]]
== Adding Canonical Commercial Repositories ==
To launch the Synaptic Package Manager hit '''''System -> Administration -> Synaptic Package Manager''''' .
Line 36: Line 47:
attachment:AddingRepositoriesHowto/enableuniverse.jpg attachment:RepositoriesUbuntu01.png
Line 38: Line 49:
Atualize a lista de pacotes disponíveis com Recarregar na janela principal.
 
attachment:AddingRepositoriesHowto/PicApplyTheseSettings.png
Next you will be prompted for your password to be able to launch Synaptic as super user.
Line 42: Line 51:
Após baixar a lista de pacotes dos repositórios você pode instalar pacotes do universe. attachment:RepositoriesUbuntu02.png
Line 44: Line 53:
== Usando o Terminal == Once that's all done you should now have the Synaptic package manager on your screen. On the menu of this screen you will want to click on '''''Settings -> Repositories'''''
Line 46: Line 55:
Alternativamente, você pode usar um terminal e as ferramentas de linha de comando para habilitar universe. Inicie Terminal em Ferramentas do Sistema de Aplicações na barra de menu. attachment:RepositoriesUbuntu03.png
Line 48: Line 57:
Digite na linha de comando:
 
{{{
   bash:~$ sudo nano -w /etc/apt/sources.list
}}}
This is were you will be able to add the Canonical commercial repositories. on the left of the screen click on the button '''''Add'''''.
Line 54: Line 59:
O editor de texto nano inicia e abre o arquivo de configuração para repositórios.
Então você deve remover as marcas {{{#}}} do início das seguintes linhas
attachment:RepositoriesUbuntu04.png
Line 57: Line 61:
{{{
   #deb http://archive.ubuntu.com/ubuntu warty main restricted universe
   #deb-src ftp://archive.ubuntu.com/ubuntu warty main restricted universe
}}}
The Add Channel screen will come up. On this screen select the Custom option.
Line 62: Line 63:
o que lhes dará esta aparência. attachment:RepositoriesUbuntu05.png
Line 64: Line 65:
{{{
   deb http://archive.ubuntu.com/ubuntu warty main restricted universe
   deb-src ftp://archive.ubuntu.com/ubuntu warty main restricted universe
}}}
On this screen type the following line and then click on '''''Add Channel'''''.
Line 69: Line 67:
A seguir você deve atualizar suas fontes com o comando: ''''' deb {{{http://archive.canonical.com/ubuntu}}} dapper-commercial main '''''
Line 71: Line 69:
{{{
   bash:~$ sudo apt-get update
}}}
attachment:RepositoriesUbuntu06.png
Line 75: Line 71:
= Adicionando repositórios externos = Now hit '''''Close'''''. From the main Synaptic window, hit '''''Reload'''''. Once this finishes, you will now be able to get packages from the Canonical commercial repositories using the Synaptic Package Manager.
Line 77: Line 73:
Algumas vezes outros usuários farão repositórios para pacotes que tenham produzido. É bem fácil adicionar estes repositórios ao gerenciador de pacotes do seu sistema. [[BR]][[Anchor(other)]]
== Adding Other Repositories ==
[[BR]] attachment:Icones/importante.png '''Note:''' There are some (but not many) good reasons for which you might want to add non-Ubuntu repositories to your list of software sources. For example, some software cannot be distributed by Ubuntu due to patent and licensing restrictions in some countries (see the RestrictedFormats page for examples). You might want to add repositories that offer such software. Make sure that '''all''' repositories you add in this way have been tested and are known to work on Ubuntu systems. Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install.
Line 79: Line 77:
attachment:IconsPage/IconNote.png ----
[[BR]][[Anchor(add)]]You can add custom software repositories by adding the '''apt repository line''' of your software source to the list of repositories. To do so, click on the '''Add''' button next to the Channel list in the Software Preferences panel, then select '''Custom'''.
Line 81: Line 80:
'''Nota:''' Você deve ser cuidadoso ao fazer isso, alguns pacotes externos podem quebrar sua instalação do Ubuntu  . attachment:add-custom.png
Line 83: Line 82:
Para uma lista de repositórios externos veja BreakMyUbuntu. [[Anchor(aptline)]] * Enter the apt line into the dialog box. It should look something like this:
 {{{
deb http://mirror3.ubuntulinux.nl/ dapper-seveas freenx }}}
Line 85: Line 86:
== Adicionando repositórios externos usando Synaptic == attachment:Icones/informacao.png For an explanation of the different parts of the apt line, see the [#edit Editing Repositories] section below.
Line 87: Line 88:
Como mostrado no screenshot Usando Synaptic acima, inicie Gerenciador de Pacotes Synaptic do menu Computador, Configurações do Sistema. Uma vez que o Synaptic esteja rodando, escolha o item Repositories no menu Configurações. [[BR]]
== Managing Local Repositories ==
=== Disable the CD-ROM Repository ===
If you have installed Ubuntu from one of Ubuntu's CD-ROMs, the CD will be included in the list of repositories used by the package managment tools. When you install a new package, '''Synaptic''' will check whether the package is available locally (i.e. on the CD-ROM). '''Synaptic''' may then ask for the CD-ROM. This can help reduce the size of downloads and speed up the installation process. If you would like '''Synaptic''' to rely solely on the internet repositories for package management, you can disable the CD-ROM entry with a few steps:
Line 89: Line 93:
Agora você vê uma janela com uma lista de repositórios. Aperte o botão Novo para adicionar um repositório. Digite as informações sobre os repositórios nos três campos de texto de acordo com os exemplos a seguir.  * Launch Synaptic and navigate to "Settings" > "Repositories". [[BR]] A list of software repositories or "Channels" will be shown.
Line 91: Line 95:
Normalmente você encontrará websites provendo informações sobre um repositórios numa forma como a do exemplo:  * Locate the entry for the CD-ROM (it may say something like '''CD disk with Ubuntu 6.06 LTS'''). Click on the checkbox next to it to disable the CD-ROM as a software source.
Line 93: Line 97:
{{{
   deb http://www.grawert.net/ubuntu/ warty universe
}}}
 * Click the '''Close''' button to save the changes you have made.
Line 97: Line 99:
Esta linha fornece a informação para os campos do Synaptic.  * You can re-enable the CD-ROM at any time using the checkbox next to its entry.
Line 99: Line 101:
 * {{{deb}}} significa que ele é um binário, então use a lista da caixa de combo para escolher binário. Normalmente está opção é padrão.
 * {{{http://www.grawert.net/ubuntu/}}} é a URI (Uniform Resource Identifier), que neste caso significa a localização.
 * {{{warty}}} é o nome da distribuição.
 * {{{universe}}} é o nome da seção.
[[BR]]
== Removing Repositories ==
To remove software sources ("Channels") from the list, select the source and click on the '''Remove''' button. (If you only want to disable the repository temporarily, uncheck the checkbox next to the source instead.)
Line 104: Line 105:
attachment:IconsPage/eyes.png Use with caution: At present, you will not be asked to confirm the remove action. This is not a problem with the Ubuntu repositories as you can simply [#add add them again], but you may have to look up a custom repository line if you mistakenly delete it. (It is always a good idea to back up your sources.list)
Line 105: Line 107:
Algumas vezes a linha do repositório tem menos informação que isso, como mostrado no próximo exemplo. [[BR]][[Anchor(edit)]]
== Editing Repositories ==
To make changes to a software source, select it in the list and click the '''Edit''' button. A dialog box displays the apt line, broken up into its components.
Line 107: Line 111:
{{{
   deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./
}}}
 . attachment:edit-channel.png
Line 111: Line 113:
Os dois primeiros campos (deb and URI) são claramente similares ao primeiro exemplo acima. Contudo, nome da distribuição é "./", então apenas coloque isto (sem as aspas) no campo de distribuição do Synaptic. Parare estranho, mas simplesmente especifique a distribuição como sendo o que quer que esteja no diretório indicado pela URI. Além disso, não há informação sobre ''seção'' de forma que apenas deixe em branco este campo de texto em sua entrada do Synaptic.  * '''Type''' Software sources may contain software in '''binary''' or '''source code''' format. Select the option that corresponds to the repository.
 attachment:IconsPage/eyes.png The corresponding apt line has '''deb''' for binary repositories and '''deb-src''' for source code repositories.
Line 113: Line 116:
attachment:IconsPage/IconNote.png [[BR]] * '''URI''' Enter a valid Uniform Resource Indicator or URI for the software repository. Here's a list of examples:
  * '''cdrom''' [[BR]]
  {{{
cdrom:[description_of_cd]/ }}}
  * '''ftp''' [[BR]]
  {{{
ftp://ftp.domain.ext/path/to/repository }}}
  * '''http''' [[BR]]
  {{{
http://www.domain.ext/path/to/repository }}}
  * '''smb''' (works only when the computer is connected to a Samba share) [[BR]]
  {{{
file://path/to/repository }}}
  * '''nfs''' (works only if the computer is connected to a NFS share) [[BR]]
  {{{
file://path/to/local/directory }}}
Line 115: Line 133:
'''Nota:''' Apenas a informação ''seção'' é opcional, e apenas para o mantenedor do repositório. Se houver informação de seção, ela deve ser espeficidada no Synaptic. Ela não pode ser deixada em branco. [[BR]] * '''Distribution''' [[BR]] Select the name of the distribution or the name of the distribution version. [[BR]](''dapper-seveas'' [#aptline in the example above].)
Line 117: Line 135:
attachment:IconsPage/IconNote.png [[BR]] * '''Components''' [[BR]] Select the repository section to access. Add more sections separated by spaces. [[BR]](The [#aptline example repository] has a ''freenx'' section.)
Line 119: Line 137:
**Nota:** Se você cometer algum erro na sintaxe dos campos você receberá uma mensagem de erro quando clicar no botão OK do Synaptic. Uma causa é colocar a barra ao fim da URI. Também tome cuidado para não deixar espaços em branco ao fim dos campos. [[BR]] * '''Comment''' [[BR]]Add a comment to describe the repository for easier reference.
Line 121: Line 139:
Salve as mudanças e feche a janela apertando OK. [[BR]] attachment:Icones/informacao.png Repositories defined using the '''Software Preferences''' panel are available to '''Update-Manager''' and will be periodically checked for updates.
Line 123: Line 141:
Atualize a lista de pacotes disponíveis com Recarregar na janela principal. Após baixar a lista de pacotes dos repositórios você pode instalar pacotes do universo. [[BR]]
== Managing Authentication Keys ==
'''Authentication keys''' are usually obtained from the maintainer of the software repository. The maintainer will often place a copy of the authentication key on a public key server such as www.keyserver.net. The key can then be retrieved using the command
Line 125: Line 145:
== Adicionando repositórios externos usando um Terminal ==  . {{{
gpg --keyserver [name of keyserver] --recv-keys [keyhash] }}}
Line 127: Line 148:
Alternativamente você pode usar um terminal e ferramentas de linha de comando para habilitar outros repositórios. Inicie Terminal em Ferramentas do Sistema de Aplicações na barra de menu.  * In our example above, you would import the maintainer's authentication key as follows:
 {{{
gpg --keyserver subkeys.pgp.net --recv-keys 1135D466 }}}
Line 129: Line 152:
Digite na linha de comando:  * Then, add the key to Ubuntu's apt trusted keys database with the following command
 {{{
gpg --export --armor 1135D466 | sudo apt-key add - }}}
Line 131: Line 156:
Este exemplo usa o repositório de tseng.  * Note there's a dash at the end of the line
Line 133: Line 158:
{{{
   bash:~$ echo deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ | sudo tee -a /etc/apt/sources.list
}}}
[[BR]] attachment:Icones/informacao.png For more on apt and authentication keys, see [http://wiki.debian.org/SecureApt SecureApt] on the Debian Wiki.
Line 137: Line 160:
Você presica apenas substituir o {{{deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./}}} pelo nome de qualquer outro repositório externo. [[BR]]
== See also ==
 * [:CommandLine:Managing Software Repositories from the Command Line]

 * [:Kubuntu:Managing Software Repositories in Kubuntu]

 * Chapter 2 of the Ubuntu Desktop Guide, [http://help.ubuntu.com/ubuntu/desktopguide/C/add-applications.html Adding, Removing and Updating Applications]

 * An [http://www.ubuntulinux.nl/source-o-matic automatic sources.list generator]

 * The [http://www.debian.org/doc/user-manuals#apt-howto Debian Apt User Manual]

 * '''man pages'''
  * sources.list

[[BR]]
----
 CategoryTraduzir

Necessita de tradução e screenshots Fonte https://help.ubuntu.com/community/Repositories/Ubuntu

Anchor(what)

What are Repositories?

There are thousands of programs available to install on Ubuntu. These programs are stored in software archives (repositories) and are available for installation over the Internet. This makes it very easy to install new programs. It is also very secure, because each program you install is thoroughly tested and built specifically for Ubuntu.

The Ubuntu software repository is organised into four "components", on the basis of the level of support Ubuntu can offer them, and whether or not they comply with Ubuntu's [http://www.ubuntu.com/ubuntu/philosophy Free Software Philosophy]. The components are called Main (officially supported software), Restricted (supported software that is not available under a completely free license), Universe (community-maintained, i.e. not officially supported software) and Multiverse (software that is "not free"). You can find more information about the Ubuntu Repositories [http://www.ubuntu.com/ubuntu/components here].

The Ubuntu Install CDs contain software from the Main and Restricted components. Once your system is made aware of the Internet-based locations for these repositories, many more software programs are made available for installation. Using the software package management tools already installed on your system, you can search for, install and update any piece of software directly over the Internet, without the need for the CD.

BR

Adding Repositories in Ubuntu

attachment:Icones/informacao.png This page describes how to manage software repositories in Ubuntu 6.06 (Dapper Drake). For Kubuntu 6.06 please see [:KubuntuAddingRepositoriesHowto:Kubuntu repository management]. For earlier versions of Ubuntu please see [:AdicionandoRepositorios/Breezy:this wiki page].

attachment:Icones/terminal.png The operations described on this page modify the software repositories configuration file located at

  • /etc/apt/sources.list 

    Software sources can also be managed by making direct modifications to this file using the command line. If you prefer to use the command line instead of a graphical user interface, see [:CommandLine:Managing Repositories from the Command Line] instead.

BR

Adding the Universe and Multiverse Repositories

BR * Navigate to "System" > "Administration" > "Software Properties". You will have to enter your password here.

attachment:menu-sw.png

  • A list of repositories or "Channels" will be shown. Select "Ubuntu 6.06 LTS (source)" from the list (should be the first one), click "Add...", select "non-free (multiverse)" and "community maintained (universe)" by clicking their check boxes. Now click the "add" button. attachment:activating-repos.png
  • Click Close to save your changes. A dialog box should appear, asking whether you'd like to update the list of repositories. Click Reload to apply your changes.

BR attachment:Icones/informacao.png Integration with Synaptic Package Manager

  • The next time you use the Synaptic package manager, click on the Reload button to make it aware of the new software repositories. attachment:reload.png

  • You can also manage software repositories from within Synaptic by selecting "Settings" > "Repositories". attachment:synaptic-repos.png

BR

Adding Canonical Commercial Repositories

To launch the Synaptic Package Manager hit System -> Administration -> Synaptic Package Manager .

attachment:RepositoriesUbuntu01.png

Next you will be prompted for your password to be able to launch Synaptic as super user.

attachment:RepositoriesUbuntu02.png

Once that's all done you should now have the Synaptic package manager on your screen. On the menu of this screen you will want to click on Settings -> Repositories

attachment:RepositoriesUbuntu03.png

This is were you will be able to add the Canonical commercial repositories. on the left of the screen click on the button Add.

attachment:RepositoriesUbuntu04.png

The Add Channel screen will come up. On this screen select the Custom option.

attachment:RepositoriesUbuntu05.png

On this screen type the following line and then click on Add Channel.

deb http://archive.canonical.com/ubuntu dapper-commercial main

attachment:RepositoriesUbuntu06.png

Now hit Close. From the main Synaptic window, hit Reload. Once this finishes, you will now be able to get packages from the Canonical commercial repositories using the Synaptic Package Manager.

BRAnchor(other)

Adding Other Repositories

BR attachment:Icones/importante.png Note: There are some (but not many) good reasons for which you might want to add non-Ubuntu repositories to your list of software sources. For example, some software cannot be distributed by Ubuntu due to patent and licensing restrictions in some countries (see the RestrictedFormats page for examples). You might want to add repositories that offer such software. Make sure that all repositories you add in this way have been tested and are known to work on Ubuntu systems. Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install.


BRAnchor(add)You can add custom software repositories by adding the apt repository line of your software source to the list of repositories. To do so, click on the Add button next to the Channel list in the Software Preferences panel, then select Custom.

  • attachment:add-custom.png

Anchor(aptline) * Enter the apt line into the dialog box. It should look something like this:

  • deb http://mirror3.ubuntulinux.nl/ dapper-seveas freenx 

attachment:Icones/informacao.png For an explanation of the different parts of the apt line, see the [#edit Editing Repositories] section below.

BR

Managing Local Repositories

Disable the CD-ROM Repository

If you have installed Ubuntu from one of Ubuntu's CD-ROMs, the CD will be included in the list of repositories used by the package managment tools. When you install a new package, Synaptic will check whether the package is available locally (i.e. on the CD-ROM). Synaptic may then ask for the CD-ROM. This can help reduce the size of downloads and speed up the installation process. If you would like Synaptic to rely solely on the internet repositories for package management, you can disable the CD-ROM entry with a few steps:

  • Launch Synaptic and navigate to "Settings" > "Repositories". BR A list of software repositories or "Channels" will be shown.

  • Locate the entry for the CD-ROM (it may say something like CD disk with Ubuntu 6.06 LTS). Click on the checkbox next to it to disable the CD-ROM as a software source.

  • Click the Close button to save the changes you have made.

  • You can re-enable the CD-ROM at any time using the checkbox next to its entry.

BR

Removing Repositories

To remove software sources ("Channels") from the list, select the source and click on the Remove button. (If you only want to disable the repository temporarily, uncheck the checkbox next to the source instead.)

attachment:IconsPage/eyes.png Use with caution: At present, you will not be asked to confirm the remove action. This is not a problem with the Ubuntu repositories as you can simply [#add add them again], but you may have to look up a custom repository line if you mistakenly delete it. (It is always a good idea to back up your sources.list)

BRAnchor(edit)

Editing Repositories

To make changes to a software source, select it in the list and click the Edit button. A dialog box displays the apt line, broken up into its components.

  • attachment:edit-channel.png
  • Type Software sources may contain software in binary or source code format. Select the option that corresponds to the repository. attachment:IconsPage/eyes.png The corresponding apt line has deb for binary repositories and deb-src for source code repositories.

BR * URI Enter a valid Uniform Resource Indicator or URI for the software repository. Here's a list of examples:

  • cdrom BR

    cdrom:[description_of_cd]/ 
  • ftp BR

    ftp://ftp.domain.ext/path/to/repository 
  • http BR

    http://www.domain.ext/path/to/repository 
  • smb (works only when the computer is connected to a Samba share) BR

    file://path/to/repository   
  • nfs (works only if the computer is connected to a NFS share) BR

    file://path/to/local/directory   

BR * Distribution BR Select the name of the distribution or the name of the distribution version. BR(dapper-seveas [#aptline in the example above].)

BR * Components BR Select the repository section to access. Add more sections separated by spaces. BR(The [#aptline example repository] has a freenx section.)

BR * Comment BRAdd a comment to describe the repository for easier reference.

BR attachment:Icones/informacao.png Repositories defined using the Software Preferences panel are available to Update-Manager and will be periodically checked for updates.

BR

Managing Authentication Keys

Authentication keys are usually obtained from the maintainer of the software repository. The maintainer will often place a copy of the authentication key on a public key server such as www.keyserver.net. The key can then be retrieved using the command

  • gpg --keyserver [name of keyserver] --recv-keys [keyhash] 
  • In our example above, you would import the maintainer's authentication key as follows:
    gpg --keyserver subkeys.pgp.net --recv-keys 1135D466 
  • Then, add the key to Ubuntu's apt trusted keys database with the following command
    gpg --export --armor 1135D466 | sudo apt-key add - 
  • Note there's a dash at the end of the line

BR attachment:Icones/informacao.png For more on apt and authentication keys, see [http://wiki.debian.org/SecureApt SecureApt] on the Debian Wiki.

BR

See also

BR


AdicionandoRepositorios (last edited 2011-09-19 23:19:24 by localhost)