Ubuntu 13.04 нет меню

Имена файлов в /etc/sources.list.d должны заканчиваться на .list, если они должны быть включены в качестве источников программного обеспечения.

Поскольку справочная страница sources.list говорит:

ОПИСАНИЕ
   The package resource list is used to locate archives of the package
   distribution system in use on the system. At this time, this manual
   page documents only the packaging system used by the Debian GNU/Linux
   system. This control file is /etc/apt/sources.list.

   The source list is designed to support any number of active sources and
   a variety of source media. The file lists one source per line, with the
   most preferred source listed first. The format of each line is: type
   uri args The first item, type determines the format for args.  uri is a
   Universal Resource Identifier (URI), which is a superset of the more
   specific and well-known Universal Resource Locator, or URL. The rest of
   the line can be marked as a comment by using a #.
SOURCES.LIST.D
   The /etc/apt/sources.list.d directory provides a way to add
   sources.list entries in separate files. The format is the same as for
   the regular sources.list file. File names need to end with .list and
   may only contain letters (a-z and A-Z), digits (0-9), underscore (_),
   hyphen (-) and period (.) characters. Otherwise APT will print a notice
   that it has ignored a file if the file doesn't match a pattern in the
   Dir::Ignore-Files-Silently configuration list - in this case it will be
   silently ignored.

Взяв пример с этой страницы, предположим, что вы хотите установить шеф-повара (из opscode), то вы бы сделали:

Создайте и откройте файл с именем opscode.list: sudo vim /etc/apt/sources.list.d/opscode.list Создайте и откройте файл с именем opscode.list: deb http://apt.opscode.com/ oneiric main

Вышеупомянутые шаги могут быть объединены, чтобы сделать одну команду:

sudo echo "deb http://apt.opscode.com/ onereic main" > /etc/apt/sources.list.d/opscode.list

Пример с этой страницы Команда содержит onereic, потому что кодовое имя Ubuntu вы используя Onereic. Если бы вы использовали Precise (12.04), у вас был бы писатель precise.

1
задан 13 April 2018 в 18:35

0 ответов

Другие вопросы по тегам:

Похожие вопросы: