1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title xmlns="">Aggiungere un repository software</title>
<link rel="stylesheet" href="../../libs/ubuntu-book.css" type="text/css" />
<link rel="home" href="index.html" title="Aggiungere, rimuovere e aggiornare applicazioni" />
<link rel="up" href="index.html" title="Aggiungere, rimuovere e aggiornare applicazioni" />
<link rel="prev" href="removing.html" title="Rimuovere un'applicazione" />
<link rel="next" href="offline.html" title="Installare pacchetti software senza una connessione a Internet" />
<link rel="copyright" href="/legal.html" title="Riconoscimenti e licenza" />
</head>
<link href="http://help.ubuntu-it.org/favicon.ico" rel="shortcut icon" />
<body>
<div id="page-border-left-repeat">
<div id="page-border-right-repeat">
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8147493-2");
pageTracker._trackPageview();
} catch(err) {}</script>
<div id="page-border-top-repeat">
<div id="header">
<div id="header-navigation">
<ul>
<li>
<a href="http://www.ubuntu-it.org">Web</a>
</li>
<li>
<a href="http://wiki.ubuntu-it.org">Documentazione</a>
</li>
<li>
<a href="http://forum.ubuntu-it.org">Forum</a>
</li>
<li>
<a href="http://planet.ubuntu-it.org">Planet</a>
</li>
</ul>
</div>
<form action="http://help.ubuntu-it.org/11.04/ubuntu/search.php" id="cse-search-box">
<div>
<input type="text" name="s" size="28" title="search" />
<input type="submit" value="Cerca" title="search" />
</div>
</form>
</div>
</div>
<div>
<div id="bodyarea">
<div class="pagelocation"><a href="http://help.ubuntu-it.org/">Documentazione di Ubuntu</a> > <a href="http://help.ubuntu-it.org/11.04/ubuntu/index.html">Ubuntu 11.04</a> > <span class="breadcrumb-link"><a href="index.html">Aggiungere, rimuovere e aggiornare applicazioni</a></span> > <span class="breadcrumb-node">Aggiungere un repository software</span></div>
<div xmlns="http://www.w3.org/1999/xhtml" class="sect1" title="Aggiungere un repository software">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="adding-repos"></a>Aggiungere un repository software</h2>
</div>
</div>
</div>
<p>I programmi di Ubuntu, oltre che attraverso i repository predefiniti, sono disponibili anche attraverso dei canali di terze parti. Per installare dei programmi da questi repository è necessario aggiungerli tra quelli disponibili del gestore di pacchetti.</p>
<div class="caution" title="Attenzione" style="margin-left: 0.5in; margin-right: 0.5in;">
<table border="0" summary="Caution">
<tr>
<td rowspan="2" align="center" valign="top" width="25">
<img alt="[Attenzione]" src="../../libs/admon/caution.png" />
</td>
<th align="left"></th>
</tr>
<tr>
<td align="left" valign="top">
<p>Aggiungere solamente repository software da fonti fidate. I repository di terze parti non vengono controllati dal gruppo di sicurezza di Ubuntu e potrebbero contenere programmi potenzialmente dannosi.</p>
</td>
</tr>
</table>
</div>
<div class="procedure">
<ol class="procedure" type="1">
<li class="step" title="Passo 1">
<p>Open <span class="guimenu">Applications</span> → <span class="guimenuitem">Ubuntu Software Center</span>.</p>
</li>
<li class="step" title="Passo 2">
<p>Click <span class="guimenuitem">Edit</span> → <span class="guimenuitem">Software Sources...</span>
and enter your password if prompted.
</p>
</li>
<li class="step" title="Passo 3">
<p>Select <em class="guilabel">Other Software</em>.</p>
</li>
<li class="step" title="Passo 4">
<p>Fare clic su <span class="guibutton"><strong>Aggiungi</strong></span> per aggiungere un nuovo repository.</p>
</li>
<li class="step" title="Passo 5">
<p>Inserire la riga APT per il repository aggiuntivo. Questa dovrebbe essere disponibile dal sito web del repository e dovrebbe essere simile alla seguente:</p>
<pre class="programlisting">deb http://archive.ubuntu.com/ubuntu/ natty main</pre>
</li>
<li class="step" title="Passo 6">
<p>Fare clic su <span class="guibutton"><strong>Aggiungi sorgente</strong></span> e quindi su <span class="guibutton"><strong>Chiudi</strong></span>.</p>
</li>
<li class="step" title="Passo 7">
<p>
Software Center will automatically apply the changes and packages from
the new repository should now be available in your package manager.
</p>
</li>
</ol>
</div>
<p>Come misura di sicurezza la maggior parte dei repository software utilizza una chiave GPG per firmare digitalmente i file forniti, semplificando la verifica dell'originalità e dell'integrità dei file. Per poter verificare questi file con il gestore di pacchetti, è necessaria la chiave pubblica che corrisponde alle firme apposte sui file. Tale chiave dovrebbe essere disponibile da scaricare dal sito web del repository.</p>
<p>
Download the GPG key. Click <span class="guimenu">Applications</span> → <span class="guimenuitem">Ubuntu Software Center</span>, then click
<span class="guimenuitem">Edit</span> → <span class="guimenuitem">Software Sources...</span>, select the <em class="guilabel">Authentication</em> tab, click
<span class="guibutton"><strong>Import Key File</strong></span> and select the GPG key to be imported.
</p>
<p>È anche possibile aggiungere la chiave GPG usando il terminale con il seguente comando:</p>
<pre class="screen">
<span class="command">
<strong>sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com key-fingerprint</strong>
</span>
</pre>
<div class="sect2" title="Aggiungere un PPA (Personal Package Archive)">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="adding-ppa"></a>Aggiungere un PPA (Personal Package Archive)</h3>
</div>
</div>
</div>
<p><a class="ulink" href="https://launchpad.net/" target="_top">Launchpad</a> fornisce a ciascun utente un proprio PPA (Personal Package Archive) che può essere usato per creare e archiviare pacchetti per Ubuntu. Aggiungere un PPA al proprio elenco dei repository viene fatto allo stesso modo con cui si aggiunge un normale repository software: i PPA funzionano come dei normali archivi di Ubuntu. Anche l'installazione di software da un PPA avviene allo stesso modo - per esempio usando apt-get o «Gestore pacchetti» - e qualora sia disponibile un aggiornamento, Ubuntu avvisa di installarlo.</p>
<div class="caution" title="Attenzione" style="margin-left: 0.5in; margin-right: 0.5in;">
<table border="0" summary="Caution">
<tr>
<td rowspan="2" align="center" valign="top" width="25">
<img alt="[Attenzione]" src="../../libs/admon/caution.png" />
</td>
<th align="left"></th>
</tr>
<tr>
<td align="left" valign="top">
<p>I pacchetti presenti in un PPA vengono scaricati e installati a proprio rischio e pericolo. Ubuntu, Launchpad e Canonical non garantiscono questi pacchetti. È necessario essere certi di potersi fidare del proprietario del PPA prima di installare il loro software.</p>
</td>
</tr>
</table>
</div>
<p>Prima di iniziare, è utile acquisire un po' di familiarità con <a class="xref" href="adding-repos.html" title="Aggiungere un repository software">la sezione chiamata «Aggiungere un repository software»</a>.</p>
<p>La riga APT per il PPA dovrebbe essere disponibile nella pagine web del PPA su Launchpad edovrebbe essere simile alla seguente:</p>
<pre class="programlisting">deb http://ppa.launchpad.net/<span class="emphasis"><em>user</em></span>/ppa/<span class="emphasis"><em>ppa-name</em></span> natty main</pre>
<p>Come misura di sicurezza, ciascun PPA utilizza una chiave GPG unica per firmare digitalmente i pacchetti forniti. Questo facilita la verifica di manomissioni dei pacchetti e assicura che il PPA da cui si scarica il software sia effettivamente quello desiderato. Affinché il gestore di pacchetti sia in grado di effettuare questo controllo, è necessario avere la chiave pubblica corrispondente alla firma. La chiave dovrebbe essere scaricabile dalla pagina del PPA su Launchpad e finché non viene aggiunta al sistema, vengono visualizzati degli avvisi quando si tenta di scaricare software da fonti non fidate.</p>
<p>La chiave usata per firmare un PPA è presente nella pagina web del PPA stesso. Per maggiori informazioni su come installare una chiave, consultare <a class="xref" href="adding-repos.html" title="Aggiungere un repository software">la sezione chiamata «Aggiungere un repository software»</a>.</p>
<p>Per maggiori informazioni su come aggiungere un repository PPA, consultare <a class="ulink" href="https://help.launchpad.net/Packaging/PPA" target="_top">l'aiuto di Launchpad</a> (in inglese).</p>
</div>
</div>
<div xmlns="http://www.w3.org/1999/xhtml" class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="removing.html"><img src="../../libs/navig/prev.png" alt="Indietro" /></a> </td>
<td width="20%" align="center"> </td>
<td width="40%" align="right"> <a accesskey="n" href="offline.html"><img src="../../libs/navig/next.png" alt="Avanti" /></a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Rimuovere un'applicazione </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">
<img src="../../libs/navig/home.png" alt="Partenza" />
</a>
</td>
<td width="40%" align="right" valign="top"> Installare pacchetti software senza una connessione a Internet</td>
</tr>
</table>
</div>
</div>
</div>
<div id="page-border-bottom-repeat">
<div id="footer">
<div id="copyright">
Ubuntu e Canonical sono marchi registrati da Canonical Ltd.
</div>
</div>
</div>
<div id="page-border-right-top"></div>
<div id="page-border-right-bottom"></div>
</div>
<div id="page-border-left-top"></div>
<div id="page-border-left-bottom"></div>
</div>
<p></p>
</body>
</html>