sources.list.ja.5.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
  4. <!ENTITY % aptent SYSTEM "apt.ent.ja">
  5. %aptent;
  6. ]>
  7. <refentry>
  8. <refentryinfo>
  9. &apt-author.jgunthorpe;
  10. &apt-author.team;
  11. &apt-email;
  12. &apt-product;
  13. <!-- The last update date -->
  14. <date>29 February 2004</date>
  15. </refentryinfo>
  16. <refmeta>
  17. <refentrytitle>sources.list</refentrytitle>
  18. <manvolnum>5</manvolnum>
  19. </refmeta>
  20. <!-- Man page title -->
  21. <refnamediv>
  22. <refname>sources.list</refname>
  23. <!--
  24. <refpurpose>Package resource list for APT</refpurpose>
  25. -->
  26. <refpurpose>APT 用パッケージリソースリスト</refpurpose>
  27. </refnamediv>
  28. <!--
  29. <refsect1><title>Description</title>
  30. -->
  31. <refsect1><title>説明</title>
  32. <!--
  33. <para>The package resource list is used to locate archives of the package
  34. distribution system in use on the system. At this time, this manual page
  35. documents only the packaging system used by the Debian GNU/Linux system.
  36. This control file is located in <filename>/etc/apt/sources.list</filename></para>
  37. -->
  38. <para>このパッケージリソースリストは、
  39. システムで使用するパッケージの保管場所を特定するのに使用されます。
  40. 今回このマニュアルページには、
  41. Debian GNU/Linux システムで使用するパッケージシステムについてのみ記述します。
  42. この制御ファイルは、<filename>/etc/apt/sources.list</filename> にあります。</para>
  43. <!--
  44. <para>The source list is designed to support any number of active sources and a
  45. variety of source media. The file lists one source per line, with the
  46. most preferred source listed first. The format of each line is:
  47. <literal>type uri args</literal> The first item, <literal>type</literal>
  48. determines the format for <literal>args</literal> <literal>uri</literal> is
  49. a Universal Resource Identifier
  50. (URI), which is a superset of the more specific and well-known Universal
  51. Resource Locator, or URL. The rest of the line can be marked as a comment
  52. by using a #.</para>
  53. -->
  54. <para>ソースリストは複数の有効な取得元と、
  55. 様々な取得メディアをサポートしています。
  56. ファイルには 1 行ごと取得元を列挙し、上の方にあるものから使用します。
  57. 行のフォーマットは、<literal>タイプ uri 引数</literal> となります。
  58. 先頭の <literal>タイプ</literal> で、
  59. <literal>引数</literal> のフォーマットを決定します。
  60. <literal>uri</literal> は Universal Resource Identifier (URI) で、
  61. よく知られた URL のスーパーセットです。
  62. 行の残りに # を付けて、コメントにできます。</para>
  63. </refsect1>
  64. <refsect1><title>sources.list.d</title>
  65. <!--
  66. <para>The <filename>/etc/apt/sources.list.d</filename> directory provides
  67. a way to add sources.list entries in seperate files that end with
  68. <literal>.list</literal>. The format is the same as for the regular
  69. <filename>sources.list</filename> file. </para>
  70. -->
  71. <para><filename>/etc/apt/sources.list.d</filename> ディレクトリに
  72. ファイル名が <literal>.list</literal> で終わる個別ファイルを置いておくと、
  73. sources.list エントリに追加できます。フォーマットは、
  74. 通常の <filename>sources.list</filename> ファイルと同じです。</para>
  75. </refsect1>
  76. <!--
  77. <refsect1><title>The deb and deb-src types</title>
  78. -->
  79. <refsect1><title>deb タイプと deb-src タイプ</title>
  80. <!--
  81. <para>The <literal>deb</literal> type describes a typical two-level Debian
  82. archive, <filename>distribution/component</filename>. Typically,
  83. <literal>distribution</literal> is generally one of
  84. <literal>stable</literal> <literal>unstable</literal> or
  85. <literal>testing</literal> while component is one of <literal>main</literal>
  86. <literal>contrib</literal> <literal>non-free</literal> or
  87. <literal>non-us</literal> The
  88. <literal>deb-src</literal> type describes a debian distribution's source
  89. code in the same form as the <literal>deb</literal> type.
  90. A <literal>deb-src</literal> line is required to fetch source indexes.</para>
  91. -->
  92. <para><literal>deb</literal> タイプでは典型的な 2 段階の Debian アーカイブ
  93. (<filename>distribution/component</filename>) を記述します。
  94. よくあるケースでは、<literal>distribution</literal> は通常
  95. <literal>stable</literal> <literal>unstable</literal>
  96. <literal>testing</literal> のどれか、
  97. component は、<literal>main</literal> <literal>contrib</literal>
  98. <literal>non-free</literal> <literal>non-us</literal> のどれかです。
  99. <literal>deb-src</literal> タイプでは、
  100. Debian ディストリビューションのソースコードを、
  101. <literal>deb</literal> タイプと同じ形式で記述します。
  102. <literal>deb-src</literal> 行は、
  103. ソースインデックスを取得するのに必要です。</para>
  104. <!--
  105. <para>The format for a <filename>sources.list</filename> entry using the
  106. <literal>deb</literal> and <literal>deb-src</literal> types are:</para>
  107. -->
  108. <para><literal>deb</literal> タイプと <literal>deb-src</literal>
  109. タイプで使用する <filename>sources.list</filename>
  110. エントリのフォーマットは、以下になります。</para>
  111. <literallayout>deb uri distribution [component1] [component2] [...]</literallayout>
  112. <!--
  113. <para>The URI for the <literal>deb</literal> type must specify the base of the
  114. Debian distribution, from which APT will find the information it needs.
  115. <literal>distribution</literal> can specify an exact path, in which case the
  116. components must be omitted and <literal>distribution</literal> must end with
  117. a slash (/). This is useful for when only a particular sub-section of the
  118. archive denoted by the URI is of interest.
  119. If <literal>distribution</literal> does not specify an exact path, at least
  120. one <literal>component</literal> must be present.</para>
  121. -->
  122. <para><literal>deb</literal> タイプの URI は、
  123. APT が情報を見つけられるように、
  124. Debian ディストリビューションの基底を指定しなければなりません。
  125. <literal>distribution</literal> には正確なパスを指定できます。
  126. その場合 component を省略し、<literal>distribution</literal>
  127. はスラッシュ (/) で終わらなくてはなりません。
  128. これは URL で指定されたアーカイブの、
  129. 特定のサブセクションのみに関心があるときに役に立ちます。
  130. <literal>distribution</literal> に正確なパスを指定しないのなら、
  131. 少なくともひとつは <literal>component</literal> を指定しなければなりません。</para>
  132. <!--
  133. <para><literal>distribution</literal> may also contain a variable,
  134. <literal>$(ARCH)</literal>
  135. which expands to the Debian architecture (i386, m68k, powerpc, ...)
  136. used on the system. This permits architecture-independent
  137. <filename>sources.list</filename> files to be used. In general this is only
  138. of interest when specifying an exact path, <literal>APT</literal> will
  139. automatically generate a URI with the current architecture otherwise.</para>
  140. -->
  141. <para><literal>distribution</literal> は、
  142. <literal>$(ARCH)</literal> 変数を含む場合があります。
  143. <literal>$(ARCH)</literal> 変数は、システムで使用している
  144. Debian アーキテクチャ (i386, m68k, powerpc, ...) に展開されます。
  145. これにより、アーキテクチャに依存しない <filename>sources.list</filename>
  146. ファイルを使用できます。
  147. 一般的に、これは正しいパスを指定するときに気にするだけです。
  148. そうでない場合は、<literal>APT</literal> は現在のアーキテクチャで URI
  149. を自動的に生成します。</para>
  150. <!--
  151. <para>Since only one distribution can be specified per line it may be necessary
  152. to have multiple lines for the same URI, if a subset of all available
  153. distributions or components at that location is desired.
  154. APT will sort the URI list after it has generated a complete set
  155. internally, and will collapse multiple references to the same Internet
  156. host, for instance, into a single connection, so that it does not
  157. inefficiently establish an FTP connection, close it, do something else,
  158. and then re-establish a connection to that same host. This feature is
  159. useful for accessing busy FTP sites with limits on the number of
  160. simultaneous anonymous users. APT also parallelizes connections to
  161. different hosts to more effectively deal with sites with low bandwidth.</para>
  162. -->
  163. <para>有効な全 distribution, component の場所から、
  164. 一部が必要な場合、1 行につき 1 distribution しか指定できないため、
  165. 同じ URI の行を複数記述することになるでしょう。
  166. APT は内部で URI リストを生成してから、並べ替えます。
  167. そして、同じインターネットホストに対しては複数の参照をまとめます。
  168. 例えば FTP 接続後、切断してからまた同じホストに再接続するといった、
  169. 効率の悪いことをせずに、1 接続にまとめます。
  170. この機能は、同時接続匿名ユーザ数を制限している、
  171. 混んでいる FTP サイトにアクセスするのに便利です。
  172. APT は、帯域の狭いサイトを効率よく扱うのに、
  173. 異なるホストへは、接続を並行して行うようにもしています。</para>
  174. <!--
  175. <para>It is important to list sources in order of preference, with the most
  176. preferred source listed first. Typically this will result in sorting
  177. by speed from fastest to slowest (CD-ROM followed by hosts on a local
  178. network, followed by distant Internet hosts, for example).</para>
  179. -->
  180. <para>最優先する取得元を最初に記述するというように、
  181. 優先順に取得元を記述するのは重要です。
  182. 一般的には、スピードの速い順に並べることになる
  183. (例えば、CD-ROM に続いてローカルネットワークのホスト、
  184. さらに続いて彼方のインターネットホスト) でしょう。</para>
  185. <!--
  186. <para>Some examples:</para>
  187. -->
  188. <para>例:</para>
  189. <literallayout>
  190. deb http://http.us.debian.org/debian stable main contrib non-free
  191. deb http://http.us.debian.org/debian dists/stable-updates/
  192. </literallayout>
  193. </refsect1>
  194. <!--
  195. <refsect1><title>URI specification</title>
  196. -->
  197. <refsect1><title>URI の仕様</title>
  198. <!--
  199. <para>The currently recognized URI types are cdrom, file, http, and ftp.
  200. -->
  201. <para>現在認識する URI 対応は、cdrom, file, http, ftp です。
  202. <variablelist>
  203. <varlistentry><term>file</term>
  204. <!--
  205. <listitem><para>
  206. The file scheme allows an arbitrary directory in the file system to be
  207. considered an archive. This is useful for NFS mounts and local mirrors or
  208. archives.</para></listitem>
  209. -->
  210. <listitem><para>
  211. file スキームは、システム内の任意のディレクトリを、
  212. アーカイブとして扱えるようにします。
  213. これは NFS マウントやローカルミラーで便利です。</para></listitem>
  214. </varlistentry>
  215. <varlistentry><term>cdrom</term>
  216. <!--
  217. <listitem><para>
  218. The cdrom scheme allows APT to use a local CDROM drive with media
  219. swapping. Use the &apt-cdrom; program to create cdrom entries in the
  220. source list.</para></listitem>
  221. -->
  222. <listitem><para>
  223. cdrom スキームは、APT がローカル CD-ROM ドライブを、
  224. メディア交換しながら使えるようにします。
  225. 取得元リストに cdrom エントリを追加するには、
  226. &apt-cdrom; プログラムを使用してください。</para></listitem>
  227. </varlistentry>
  228. <varlistentry><term>http</term>
  229. <!--
  230. <listitem><para>
  231. The http scheme specifies an HTTP server for the archive. If an environment
  232. variable <envar>http_proxy</envar> is set with the format
  233. http://server:port/, the proxy server specified in
  234. <envar>http_proxy</envar> will be used. Users of authenticated
  235. HTTP/1.1 proxies may use a string of the format
  236. http://user:pass@server:port/
  237. Note that this is an insecure method of authentication.</para></listitem>
  238. -->
  239. <listitem><para>
  240. http スキームはアーカイブとして、HTTP サーバを指定します。
  241. 環境変数 <envar>http_proxy</envar> が、
  242. http://server:port/ と言った形で指定されていれば、
  243. <envar>http_proxy</envar> で指定した プロキシサーバを使用します。
  244. ユーザ認証が必要な HTTP/1.1 プロキシの場合、
  245. http://user:pass@server:port/ と言う形で指定してください。
  246. この認証方法は安全ではないことに注意してください。</para></listitem>
  247. </varlistentry>
  248. <varlistentry><term>ftp</term>
  249. <!--
  250. <listitem><para>
  251. The ftp scheme specifies an FTP server for the archive. APT's FTP behavior
  252. is highly configurable; for more information see the
  253. &apt-conf; manual page. Please note that a ftp proxy can be specified
  254. by using the <envar>ftp_proxy</envar> environment variable. It is possible
  255. to specify a http proxy (http proxy servers often understand ftp urls)
  256. using this method and ONLY this method. ftp proxies using http specified in
  257. the configuration file will be ignored.</para></listitem>
  258. -->
  259. <listitem><para>
  260. ftp スキームは、アーカイブに FTP サーバを指定します。
  261. APT の FTP の振る舞いは、高度に設定できます。
  262. 詳細は、&apt-conf; のマニュアルページをご覧ください。
  263. ftp プロキシは、
  264. <envar>ftp_proxy</envar> 環境変数で指定することにご注意ください。
  265. この方法用に、さらにこの方法でしか使用しないのに、
  266. http プロキシを使用することができます
  267. (http プロキシサーバは大抵 ftp urlも理解できます)。
  268. 設定ファイルで http を使用する際に、
  269. ftp プロキシを使用するよう設定してあっても無視されます。</para></listitem>
  270. </varlistentry>
  271. <varlistentry><term>copy</term>
  272. <!--
  273. <listitem><para>
  274. The copy scheme is identical to the file scheme except that packages are
  275. copied into the cache directory instead of used directly at their location.
  276. This is useful for people using a zip disk to copy files around with APT.</para></listitem>
  277. -->
  278. <listitem><para>
  279. copy スキームは、file スキームと同様ですが、パッケージをその場で使用せず、
  280. キャッシュディレクトリにコピーするところが違います。
  281. zip ディスクを使用していて、APT でコピーを行う場合に便利です。</para></listitem>
  282. </varlistentry>
  283. <varlistentry><term>rsh</term><term>ssh</term>
  284. <!--
  285. <listitem><para>
  286. The rsh/ssh method invokes rsh/ssh to connect to a remote host
  287. as a given user and access the files. No password authentication is
  288. possible, prior arrangements with RSA keys or rhosts must have been made.
  289. Access to files on the remote uses standard <command>find</command> and
  290. <command>dd</command>
  291. commands to perform the file transfers from the remote.</para></listitem>
  292. -->
  293. <listitem><para>
  294. rsh/ssh メソッドは、与えられたユーザでリモートホストに接続し、
  295. ファイルにアクセスするのに rsh/ssh を使用します。
  296. あらかじめ RSA キーや rhosts の配置が必要ですが、
  297. パスワードなし認証が可能です。
  298. リモートホストのファイルへのアクセスの際、
  299. ファイル転送に標準の <command>find</command> コマンドや
  300. <command>dd</command> コマンドを使用します。</para></listitem>
  301. </varlistentry>
  302. </variablelist>
  303. </para>
  304. </refsect1>
  305. <!--
  306. <refsect1><title>Examples</title>
  307. -->
  308. <refsect1><title>サンプル</title>
  309. <!--
  310. <para>Uses the archive stored locally (or NFS mounted) at /home/jason/debian
  311. for stable/main, stable/contrib, and stable/non-free.</para>
  312. -->
  313. <para> /home/jason/debian に格納されている stable/main, stable/contrib,
  314. stable/non-free 用のローカル (または NFS) アーカイブを使用します。</para>
  315. <literallayout>deb file:/home/jason/debian stable main contrib non-free</literallayout>
  316. <!--
  317. <para>As above, except this uses the unstable (development) distribution.</para>
  318. -->
  319. <para>上記同様ですが、不安定版を使用します。</para>
  320. <literallayout>deb file:/home/jason/debian unstable main contrib non-free</literallayout>
  321. <!--
  322. <para>Source line for the above</para>
  323. -->
  324. <para>上記のソース行</para>
  325. <literallayout>deb-src file:/home/jason/debian unstable main contrib non-free</literallayout>
  326. <!--
  327. <para>Uses HTTP to access the archive at archive.debian.org, and uses only
  328. the hamm/main area.</para>
  329. -->
  330. <para>archive.debian.org のアーカイブに HTTP アクセスし、
  331. hamm/main のみを使用します。</para>
  332. <literallayout>deb http://archive.debian.org/debian-archive hamm main</literallayout>
  333. <!--
  334. <para>Uses FTP to access the archive at ftp.debian.org, under the debian
  335. directory, and uses only the stable/contrib area.</para>
  336. -->
  337. <para>ftp.debian.org のアーカイブに FTP アクセスし、
  338. debian ディレクトリ以下の stable/contrib のみを使用します。</para>
  339. <literallayout>deb ftp://ftp.debian.org/debian stable contrib</literallayout>
  340. <!--
  341. <para>Uses FTP to access the archive at ftp.debian.org, under the debian
  342. directory, and uses only the unstable/contrib area. If this line appears as
  343. well as the one in the previous example in <filename>sources.list</filename>.
  344. a single FTP session will be used for both resource lines.</para>
  345. -->
  346. <para>ftp.debian.org のアーカイブに FTP アクセスし、
  347. debian ディレクトリ以下の unstable/contrib を使用します。
  348. <filename>sources.list</filename> に上記サンプルと一緒に指定された場合、
  349. 両方のリソース行に対応する FTP セッションはひとつだけになります。</para>
  350. <literallayout>deb ftp://ftp.debian.org/debian unstable contrib</literallayout>
  351. <!--
  352. <para>Uses HTTP to access the archive at nonus.debian.org, under the
  353. debian-non-US directory.</para>
  354. -->
  355. <para>nonus.debian.org のアーカイブに HTTP アクセスし、
  356. debian-non-US ディレクトリ以下を使用します。</para>
  357. <literallayout>deb http://nonus.debian.org/debian-non-US stable/non-US main contrib non-free</literallayout>
  358. <!--
  359. <para>Uses HTTP to access the archive at nonus.debian.org, under the
  360. debian-non-US directory, and uses only files found under
  361. <filename>unstable/binary-i3866</filename> on i386 machines,
  362. <filename>unstable/binary-m68k</filename> on m68k, and so
  363. forth for other supported architectures. [Note this example only
  364. illustrates how to use the substitution variable; non-us is no longer
  365. structured like this]
  366. <literallayout>deb http://ftp.de.debian.org/debian-non-US unstable/binary-$(ARCH)/</literallayout>
  367. </para>
  368. -->
  369. <para>nonus.debian.org のアーカイブに HTTP アクセスし、
  370. debian-non-US ディレクトリ以下を使用します。
  371. また、i386 マシンでは <filename>unstable/binary-i386</filename>
  372. 以下にあるファイル、
  373. m68k マシンでは <filename>unstable/binary-m68k</filename>
  374. 以下にあるファイル、
  375. その他サポートするアーキテクチャごとのファイルのみ使用します。
  376. [このサンプルは変数展開の使用法の説明でしかないことに注意してください。
  377. non-us はこのような構造になっていません]
  378. <literallayout>deb http://ftp.de.debian.org/debian-non-US unstable/binary-$(ARCH)/</literallayout>
  379. </para>
  380. </refsect1>
  381. <!--
  382. <refsect1><title>See Also</title>
  383. -->
  384. <refsect1><title>関連項目</title>
  385. <para>&apt-cache; &apt-conf;
  386. </para>
  387. </refsect1>
  388. &manbugs;
  389. &translator;
  390. </refentry>