~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

Viewing changes to da/boot-new/modules/apt.xml

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- retain these comments for translator revision tracking -->
 
2
<!-- original version: 18642 untranslated -->
 
3
 
 
4
 <sect2 id="configure-apt">
 
5
 <title>Configuring APT</title>
 
6
 
 
7
<para>
 
8
 
 
9
The main means that people use to install packages on their system is
 
10
via a program called <command>apt-get</command>, from the
 
11
<classname>apt</classname> package.<footnote>
 
12
 
 
13
<para>
 
14
 
 
15
Note that the actual program that installs packages is called
 
16
<command>dpkg</command>.  However, this package is more of a low-level
 
17
tool.  <command>apt-get</command> will invoke <command>dpkg</command>
 
18
as appropriate; it is a higher-level too, however, because it knows to
 
19
install other packages which are required for the package you're
 
20
trying to install, as well as how to retrieve the package from your
 
21
CD, the network, or wherever.
 
22
 
 
23
</para>
 
24
</footnote>
 
25
 
 
26
APT must be configured, however, so that it knows where to retrieve
 
27
packages from.  The helper application which assists in this task is
 
28
called <command>apt-setup</command>.
 
29
 
 
30
</para><para>
 
31
 
 
32
The next step in your configuration process is to tell APT where other
 
33
Debian packages can be found.  Note that you can re-run this tool at
 
34
any point after installation by running <command>apt-setup</command>,
 
35
or by manually editing <filename>/etc/apt/sources.list</filename>.
 
36
 
 
37
</para><para>
 
38
 
 
39
If an official CD-ROM is in the drive at this point, then that CD-ROM
 
40
should automatically be configured as an apt source without prompting.
 
41
You will notice this because you will see the CD-ROM being scanned.
 
42
 
 
43
</para><para>
 
44
 
 
45
For users without an official CD-ROM, you will be offered an array of
 
46
choices for how Debian packages are accessed: FTP, HTTP, CD-ROM, or
 
47
a local file system.
 
48
 
 
49
</para><para>
 
50
 
 
51
You should know that it's perfectly acceptable to have a number of
 
52
different APT sources, even for the same Debian archive.
 
53
<command>apt-get</command> will automatically pick the package with
 
54
the highest version number given all the available versions.  Or, for
 
55
instance, if you have both an HTTP and a CD-ROM APT source,
 
56
<command>apt-get</command> should automatically use the local CD-ROM
 
57
when possible, and only resort to HTTP if a newer version is available
 
58
there.  However, it is not a good idea to add unnecessary APT sources,
 
59
since this will tend to slow down the process of checking the network
 
60
archives for new versions.
 
61
 
 
62
</para>
 
63
 
 
64
  <sect3 id="configure-apt-net">
 
65
  <title>Configuring Network Package Sources</title>
 
66
 
 
67
<para>
 
68
 
 
69
If you plan on installing the rest of your system via the network, the
 
70
most common option is to select the <userinput>http</userinput>
 
71
source.  The <userinput>ftp</userinput> source is also acceptable, but
 
72
tends to be a little slower making connections.
 
73
 
 
74
</para><para>
 
75
 
 
76
The next step during the configuration of network packages sources is
 
77
to tell <command>apt-setup</command> which country you live in.  This
 
78
configures which of the official Debian Internet mirror network you
 
79
connect to.  Depending on which country you select, you will be given
 
80
a list of possible machines.  Its generally fine to pick the one on
 
81
the top of the list, but any of them should work.
 
82
 
 
83
</para><para>
 
84
 
 
85
If you are installing via HTTP, you will be asked to configure your
 
86
proxy server.  This is sometimes required by people behind firewalls,
 
87
on corporate networks, etc.
 
88
 
 
89
</para><para>
 
90
 
 
91
Finally, your new network package source will be tested.  If all goes
 
92
well, you will be prompted whether you want to do it all over again
 
93
with another network source.
 
94
 
 
95
</para>
 
96
  </sect3>
 
97
 </sect2>