Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • Differenze per "Repository"
Differenze tra le versioni 1 e 13 (in 12 versioni)
Versione 1 del 10/07/2005 14.09.42
Dimensione: 6115
Autore: host52-121
Commento:
Versione 13 del 12/07/2005 18.25.43
Dimensione: 6256
Autore: host96-197
Commento: translation
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 4: Linea 4:
da AddingRepositoriesHowto
by BlackDesert
Linea 5: Linea 7:
= How to add repositories to your sources.list = = Come aggiungere repositories al proprio sources.list =
Linea 9: Linea 11:
This page will discuss how to add other [:Repositories: repositories] to your {{{/etc/apt/sources.list}}}.  It will also show how to uncomment {{{universe}}}. Questo documento spiega come aggiungere altri [:IRepositories: repositories] al proprio {{{/etc/apt/sources.list}}}. Spiega anche come uncomment il repository {{{universe}}}.
Linea 11: Linea 13:
== Index ==

 * Uncommenting Universe
 * Using Synaptic
 * Using Terminal
 * Adding outside repositories
 * Adding outside repositories using Synaptic
 * Adding outside repositories using a Terminal
[[TableOfContents]]
Linea 22: Linea 17:
=== Using Synaptic === === Usare Synaptic ===
Linea 24: Linea 19:
To uncomment the {{{universe}}} repository, follow these instructions. Per togliere il commento al repository {{{universe}}}, segui queste istruzioni
Linea 26: Linea 21:
On Hoary:
Start {{{Synaptic Package Manager}}} from the {{{System}}} , {{{Administration}}} menu.
Su Hoary 5.04

Avvi
a {{{Synaptic Package Manager}}} dal menu {{{System}}} > {{{Administration}}}
Linea 31: Linea 28:
On Warty:
Start {{{Synaptic Package Manager}}} from the {{{Computer}}} , {{{System Configuration}}} menu
Su Warty 4.10:
Avvia {{{Synaptic Package Manager}}} del menu {{{Computer}}} > {{{System Configuration}}}
Linea 36: Linea 33:
In Synaptic, choose the {{{Repositories}}} item in the {{{Settings}}} menu In Synaptic, selezionare la voce {{{Repositories}}} nel menu {{{Settings}}}
Linea 40: Linea 37:
A list of repositories is shown. Click the {{{Settings}}} button at the bottom and tick {{{Show disabled software sources}}}. Then click the {{{Close}}} button. Viene mostrata una lista di repositories. Cliccare sul pulsante {{{Settings}}} in basso e spuntare l'opzione {{{Show disabled software sources}}}. Infine cliccare su {{{Close}}}.
Linea 44: Linea 41:
You should now see checkboxes next to the repositories. Scroll down and enable the Universe repository by ticking the checkbox next to {{{Community Maintained (Universe)}}}. Click {{{OK}}} to save your settings. You may also want to enable Multiverse and the Universe Security updates repositories. Ora dovrebbe apparire una lista di repositories affiancati dal una casella d'opzione (checkbox?). Scorri la lista ed attiva il repository Universe, spuntando la casella (checkbox) che si trova a fianco di {{{Community Maintained (Universe)}}}.
Ota clicca su {{{OK}}} per salvare le impostazioni. Allo stesso modo puoi anche attivare i repository {{{Multiverse}}} e {{{Universe Security}}}.
Linea 48: Linea 46:
Save the changes and close the window by clicking {{{OK}}}. Salva le impostazioni e chiudi la finestra cliccando su {{{OK}}}.
Linea 50: Linea 48:
Update the list of available packages with {{{Reload}}} in the main window. Aggiorna la lista dei pacchetti disponibili con il comando {{{Reload}}} nella finestra principale.
Linea 54: Linea 52:
Once the package list has been updated, packages from universe can be installed. Una volta che la lista dei pacchetti è stata aggiornata, i pacchetti del repository universe possono essere installati.
Linea 56: Linea 54:
--------------
Using Terminal
--------------
Linea 60: Linea 55:
Alternatively, use a terminal and command line tools to enable universe. Start {{{Terminal}}} from {{{Applications}}}, {{{System Tools}}} in the menubar. === Usare il Terminale ===
Linea 62: Linea 57:
Type the following command: In alternativa, per abilitare il repository universe, si può usare il terminale con i suoi comandi.
Avviate {{{Terminal}}} dal menu {{{Applications}}} > {{{System Tools}}}

Digitate il seguente comando:
Linea 67: Linea 66:
The texteditor {{{nano}}} starts and opens the configuration file for repositories.
Remove the comment "{{{#}}}" marks from the start of lines that look like this:
Si avvia l'editor di testo {{{nano}}} che aprirà il file di configurazione per i repositories (n.d.t. il file è /etc/apt/sources.list).

Rimuovete il commento "{{{#}}}" dall'inizio di queste linee:
Linea 75: Linea 75:
then add the word {{{multiverse}}} making them look like this: poi aggiungete la parola {{{multiverse}}}, devono risultare così:
Linea 82: Linea 82:
Afterwards, update the package list with the following command: In seguito, aggiornate la lista dei pacchetti con il seguente comando:
Linea 87: Linea 87:
== Adding outside repositories == == Aggiungere repositories esterni ==
Linea 89: Linea 89:
Sometimes other users will make repositories for packages they have made. It is real easy to add these repositories to the system package manager. Talvolta altri utenti creano dei repositories per i pacchetti che hanno creato. E' davvero semplice aggiungere questi repositories al gestore dei pacchetti.

{{{ Traduzione in corso ... }}}

da AddingRepositoriesHowto by BlackDesert

Come aggiungere repositories al proprio sources.list

attachment:IconsPage/IconHelp.png

Questo documento spiega come aggiungere altri [:IRepositories: repositories] al proprio /etc/apt/sources.list. Spiega anche come uncomment il repository universe.

TableOfContents

Uncommenting Universe

Usare Synaptic

Per togliere il commento al repository universe, segui queste istruzioni

Su Hoary 5.04

Avvia Synaptic Package Manager dal menu System > Administration

attachment:hoarysynaptic.jpg

Su Warty 4.10: Avvia Synaptic Package Manager del menu Computer > System Configuration

attachment:PicSelectSynapticFromtheMenu.png

In Synaptic, selezionare la voce Repositories nel menu Settings

attachment:PicOpentheRepositoriesDialog.png

Viene mostrata una lista di repositories. Cliccare sul pulsante Settings in basso e spuntare l'opzione Show disabled software sources. Infine cliccare su Close.

attachment:showdisabled.jpg

Ora dovrebbe apparire una lista di repositories affiancati dal una casella d'opzione (checkbox?). Scorri la lista ed attiva il repository Universe, spuntando la casella (checkbox) che si trova a fianco di Community Maintained (Universe). Ota clicca su OK per salvare le impostazioni. Allo stesso modo puoi anche attivare i repository Multiverse e Universe Security.

attachment:enableuniverse.jpg

Salva le impostazioni e chiudi la finestra cliccando su OK.

Aggiorna la lista dei pacchetti disponibili con il comando Reload nella finestra principale.

attachment:PicApplyTheseSettings.png

Una volta che la lista dei pacchetti è stata aggiornata, i pacchetti del repository universe possono essere installati.

Usare il Terminale

In alternativa, per abilitare il repository universe, si può usare il terminale con i suoi comandi. Avviate Terminal dal menu Applications > System Tools

Digitate il seguente comando:

   bash:~$ sudo nano -w /etc/apt/sources.list

Si avvia l'editor di testo nano che aprirà il file di configurazione per i repositories (n.d.t. il file è /etc/apt/sources.list).

Rimuovete il commento "#" dall'inizio di queste linee:

   #deb http://archive.ubuntu.com/ubuntu hoary universe
   #deb-src ftp://archive.ubuntu.com/ubuntu hoary universe

poi aggiungete la parola multiverse, devono risultare così:

   deb http://archive.ubuntu.com/ubuntu hoary universe multiverse
   deb-src ftp://archive.ubuntu.com/ubuntu hoary universe multiverse

In seguito, aggiornate la lista dei pacchetti con il seguente comando:

   bash:~$ sudo apt-get update

Aggiungere repositories esterni

Talvolta altri utenti creano dei repositories per i pacchetti che hanno creato. E' davvero semplice aggiungere questi repositories al gestore dei pacchetti.

attachment:IconsPage/IconNote.png

Note: BE CAREFUL doing this, some outside packages could break your Ubuntu installation.

For a list of outside repositories see BreakMyUbuntu.

Adding outside repositories using Synaptic

As shown in the Using Synaptic screenshot above, start Synaptic Package Manager from the Computer menu, System Configuration item. Once Synaptic has launched, choose the Settings menu, [Repositories] item.

You now see a window with a list of repositories. Push the button New to add a repository. Type in the information about the repositories in the dropdown menu and three textfields according to the following examples.

Normally you find websites providing information about a repository in a form like the following example:

   deb http://www.grawert.net/ubuntu/ warty universe

This line provides the information for the Synaptic fields.

* deb means it is a binary, so use the drop-down list to choose binary. Normally this is the default setting.

* http://www.grawert.net/ubuntu/ is the URI (Uniform Resource Identifier), which means in this case the location.

* warty is the release name.

* universe is the section name.

Sometimes the repository line has less information though, as shown in the next example.

   deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ 

The first two fields (deb and URI) are clearly similar to the first example above. However, the release-name is "./" so just put this (without the quotes) in the release field of Synaptic. It looks weird, but simply specifies the release as being whatever is in the directory given by the URI. Furthermore, there is no section information so just leave that text field blnk in your Synaptic entry.

attachment:IconsPage/IconNote.png

Note: Only the section information is optional, and then only with respect to the repository-maintainer. If there is section information, it must be specifed in Synaptic. It cannot be left blank.

attachment:IconsPage/IconNote.png

Note: If you make a mistake with the syntax in the fields you will get an error when you click the OK button in Synaptic. One cause is putting a trailing slash at the end of the URI. Also beware of leaving whitespaces at the beginning/end of the fields.

Save the changes and close the window by pushing on OK.

Update the list of avaible packages with Reload in the main window. After downloading the packages list from the repositories you can install packages from universe.

Adding outside repositories using the Terminal

Alternatively, use a terminal and command line tools to enable other repositories. Start Terminal from Applications, System Tools in the menubar.

Type in the command line:

This example uses tseng's repository.

   bash:~$ echo deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ | sudo tee -a /etc/apt/sources.list

You would just substitute the deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ with any other outside repositories name.