Различия
Здесь показаны различия между двумя версиями данной страницы.
Следующая версия | Предыдущая версия | ||
wiki:руководство_по_ubuntu_server:управление_пакетами:configuration [2012/05/16 10:17] создано |
wiki:руководство_по_ubuntu_server:управление_пакетами:configuration [2012/12/14 17:36] (текущий) [Настройка] |
||
---|---|---|---|
Строка 6: | Строка 6: | ||
=====Настройка===== | =====Настройка===== | ||
- | Configuration of the Advanced Packaging Tool (APT) system repositories is stored in the /etc/apt/sources.list file and the /etc/apt/sources.list.d directory. An example of this file is referenced here, along with information on adding or removing repository references from the file. | + | Настройка системных репозиториев Улучшенного инструментария пакетов (APT) сохраняется в файле /etc/apt/sources.list и каталоге /etc/apt/sources.list.d. Пример такого файла приведен здесь вместе с информацией по добавлению или удалению ссылок на репозитории в этом файле. |
- | Here is a simple example of a typical /etc/apt/sources.list file. | + | [[https://help.ubuntu.com/12.04/sample/sources.list|Здесь]] приведен простейший пример обычного файла /etc/apt/sources.list. |
- | You may edit the file to enable repositories or disable them. For example, to disable the requirement of inserting the Ubuntu CD-ROM whenever package operations occur, simply comment out the appropriate line for the CD-ROM, which appears at the top of the file: | + | Вы можете редактировать файл для разрешения или блокирования репозиториев. Например, для блокирования требования вставить CD-ROM с Ubuntu всякий раз когда производятся действия с пакетами, просто закомментируйте соответствующую строку с CD-ROM, находящуюся в начале файла: |
+ | <code># no more prompting for CD-ROM please | ||
+ | # deb cdrom:[Ubuntu 12.04 _Precise Pangolin_ - Release i386 (20111013.1)]/ precise main restricted</code> | ||
+ | ====Дополнительные репозитории==== | ||
- | # no more prompting for CD-ROM please | + | В дополнение к официально поддерживаемым репозиториям для Ubuntu, существуют дополнительные репозитории, поддерживаемые сообществом, которые добавляют сотни пакетов для возможной установки. Два из наиболее популярных, это Universe и Multiverse. Эти репозитории официально не поддерживаются Ubuntu, но поскольку они поддерживаются сообществом, они предоставляют пакеты, которые в целом безопасны при установке на компьютеры с Ubuntu. |
- | # deb cdrom:[Ubuntu 12.04 _Precise Pangolin_ - Release i386 (20111013.1)]/ precise main restricted | + | |
- | Extra Repositories | + | <note>Пакеты из Multiverse обычно лицензионные ограничения, которые ограничивают их распространение со свободными операционными системами, и они могут быть незаконными на вашей территории.</note> |
- | Extra Repositories | + | <note important>Имейте ввиду, что ни Universe, ни Multiverse не содержат официально поддерживаемых пакетов. В частности, эти пакеты могут не получать обновления безопасности.</note> |
- | In addition to the officially supported package repositories available for Ubuntu, there exist additional community-maintained repositories which add thousands more packages for potential installation. Two of the most popular are the Universe and Multiverse repositories. These repositories are not officially supported by Ubuntu, but because they are maintained by the community they generally provide packages which are safe for use with your Ubuntu computer. | + | Доступно много других источников пакетов, иногда предлагающих только один пакет, как в случае с источниками пакетов от разработчиков одного приложения. Однако, вы должны быть всегда очень внимательными и осторожными при использовании нестандартных источников пакетов. Изучайте источники и пакеты внимательно перед тем, как выполнять установку, поскольку некоторые источники и их пакеты могут сделать вашу систему нестабильной или неработающей в ряде важных аспектов. |
- | Packages in the Multiverse repository often have licensing issues that prevent them from being distributed with a free operating system, and they may be illegal in your locality. | + | По умолчанию Universe и Multiverse репозитории доступны, но если вы хотите их заблокировать, откройте /etc/apt/sources.list на редактирование и закомментируйте следующие строки: |
- | Be advised that neither the Universe or Multiverse repositories contain officially supported packages. In particular, there may not be security updates for these packages. | + | <code>deb http://archive.ubuntu.com/ubuntu precise universe multiverse |
- | + | ||
- | Many other package sources are available, sometimes even offering only one package, as in the case of package sources provided by the developer of a single application. You should always be very careful and cautious when using non-standard package sources, however. Research the source and packages carefully before performing any installation, as some package sources and their packages could render your system unstable or non-functional in some respects. | + | |
- | + | ||
- | By default, the Universe and Multiverse repositories are enabled but if you would like to disable them edit /etc/apt/sources.list and comment the following lines: | + | |
- | + | ||
- | deb http://archive.ubuntu.com/ubuntu precise universe multiverse | + | |
deb-src http://archive.ubuntu.com/ubuntu precise universe multiverse | deb-src http://archive.ubuntu.com/ubuntu precise universe multiverse | ||
Строка 45: | Строка 41: | ||
deb-src http://security.ubuntu.com/ubuntu precise-security universe | deb-src http://security.ubuntu.com/ubuntu precise-security universe | ||
deb http://security.ubuntu.com/ubuntu precise-security multiverse | deb http://security.ubuntu.com/ubuntu precise-security multiverse | ||
- | deb-src http://security.ubuntu.com/ubuntu precise-security multiverse | + | deb-src http://security.ubuntu.com/ubuntu precise-security multiverse</code> |
---- | ---- |