个人工具

“UbuntuHelp:Repositories/Ubuntu/Breezy”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy}} {{Languages|UbuntuHelp:Repositories/Ubuntu/Breezy}} === Managing Repositories in Ubuntu === https://help.ubuntu.co...)
 
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy}}
 
{{From|https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy}}
 
{{Languages|UbuntuHelp:Repositories/Ubuntu/Breezy}}
 
{{Languages|UbuntuHelp:Repositories/Ubuntu/Breezy}}
 
 
 
=== Managing Repositories in Ubuntu ===
 
=== Managing Repositories in Ubuntu ===
 
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Applies to: Ubuntu 5.10 (Breezy Badger) and earlier'''
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Applies to: Ubuntu 5.10 (Breezy Badger) and earlier'''
 
 
See the [[UbuntuHelp:../| Managing Repositories]] wiki page for instructions for the current version of Ubuntu.  
 
See the [[UbuntuHelp:../| Managing Repositories]] wiki page for instructions for the current version of Ubuntu.  
 
 
<br>
 
<br>
 
=== Adding Universe and Multiverse ===
 
=== Adding Universe and Multiverse ===
 
 
 
* Depending on your version, select "Synaptic Package Manager" from the "Computer" > "System Configuration" or "System" > "Administration" menu.
 
* Depending on your version, select "Synaptic Package Manager" from the "Computer" > "System Configuration" or "System" > "Administration" menu.
 
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=hoary-synaptic.png
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=hoary-synaptic.png
 
 
* Choose the '''Repositories''' item in the '''Settings''' menu
 
* Choose the '''Repositories''' item in the '''Settings''' menu
 
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-syn-repos.png
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-syn-repos.png
 
 
* A list of repositories is shown. Click the '''Settings''' button at the bottom and tick '''Show disabled software sources'''.
 
* A list of repositories is shown. Click the '''Settings''' button at the bottom and tick '''Show disabled software sources'''.
 
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-checkbox.png
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-checkbox.png
 
 
* Click the '''Close''' button. You should now see checkboxes next to the repositories. Scroll down and enable the Universe repository by ticking the checkboxes next to the '''Community Maintained (Universe)''' entries. To enable the Multiverse repository, for each of the '''Community Maintained (Universe)''' entries click on the entry, click '''Edit''', then change the entry for '''Sections''' from "universe" to "universe multiverse". Click '''OK''' to save your settings.
 
* Click the '''Close''' button. You should now see checkboxes next to the repositories. Scroll down and enable the Universe repository by ticking the checkboxes next to the '''Community Maintained (Universe)''' entries. To enable the Multiverse repository, for each of the '''Community Maintained (Universe)''' entries click on the entry, click '''Edit''', then change the entry for '''Sections''' from "universe" to "universe multiverse". Click '''OK''' to save your settings.
 
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-universe.png
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-universe.png
 
 
* Save the changes and close the window by clicking '''OK'''.
 
* Save the changes and close the window by clicking '''OK'''.
 
 
* Update the list of available packages with '''Reload''' in the '''Synaptic''' window.
 
* Update the list of available packages with '''Reload''' in the '''Synaptic''' window.
 
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-reload.png
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-reload.png
 
 
* Once the package list has been updated, packages from Universe and Multiverse can be installed.
 
* Once the package list has been updated, packages from Universe and Multiverse can be installed.
 
 
 
<br>
 
<br>
 
=== Adding Outside Repositories ===
 
=== Adding Outside Repositories ===
 
 
<br>
 
<br>
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=warning.png '''Note:''' some outside packages could [[UbuntuHelp:../#other| break your Ubuntu installation]].
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=warning.png '''Note:''' some outside packages could [[UbuntuHelp:../#other| break your Ubuntu installation]].
 
----
 
----
 
 
<br>
 
<br>
 
* As above, select "Synaptic Package Manager" from the "Computer" > "System Configuration" or "System" > "Administration" menu (depending on your Ubuntu version). In Synaptic, choose the '''Repositories''' item from the '''Settings''' menu.
 
* As above, select "Synaptic Package Manager" from the "Computer" > "System Configuration" or "System" > "Administration" menu (depending on your Ubuntu version). In Synaptic, choose the '''Repositories''' item from the '''Settings''' menu.
 
 
* You now see a window with a list of repositories.  
 
* You now see a window with a list of repositories.  
 
+
** Click '''New''' to add a repository.
*** Click '''New''' to add a repository.
+
 
+
 
*** Click '''Custom''' in the dialog box that appears.
 
*** Click '''Custom''' in the dialog box that appears.
 
 
<br>
 
<br>
 
----
 
----
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Applies to Ubuntu 5.10 (Breezy Badger) and 5.04 (Hoary Hedgehog)'''
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Applies to Ubuntu 5.10 (Breezy Badger) and 5.04 (Hoary Hedgehog)'''
 
 
Paste the the '''apt line''' (repository information) into the dialog box that appears. Usually, the repository's maintainer will provide an apt line in a form like the following example:
 
Paste the the '''apt line''' (repository information) into the dialog box that appears. Usually, the repository's maintainer will provide an apt line in a form like the following example:
 
<pre><nowiki>
 
<pre><nowiki>
 
deb http://www.grawert.net/ubuntu/ warty universe</nowiki></pre>
 
deb http://www.grawert.net/ubuntu/ warty universe</nowiki></pre>
 
 
Click '''OK'''.  
 
Click '''OK'''.  
 
 
<br>
 
<br>
 
----
 
----
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Applies to Ubuntu 4.10 (Warty Warthog)'''
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Applies to Ubuntu 4.10 (Warty Warthog)'''
 
 
<br>
 
<br>
 
* You'll need to break the line down as follows:
 
* You'll need to break the line down as follows:
 
+
** '''deb''' means it is a binary, so use the drop-down list to choose '''binary'''. Normally this is the default setting.
*** '''deb''' means it is a binary, so use the drop-down list to choose '''binary'''. Normally this is the default setting.
+
 
+
 
*** `http://www.grawert.net/ubuntu/` is the URI (Uniform Resource Identifier), i.e. the location of the repository on the internet for example.  
 
*** `http://www.grawert.net/ubuntu/` is the URI (Uniform Resource Identifier), i.e. the location of the repository on the internet for example.  
 
 
*** '''warty''' is the name of the distribution it applies to.
 
*** '''warty''' is the name of the distribution it applies to.
 
 
*** '''universe''' is the name of the section of the repository we are interested in. There can be several sections, seperated by spaces.
 
*** '''universe''' is the name of the section of the repository we are interested in. There can be several sections, seperated by spaces.
 
 
*** Sometimes the repository line has less information though, as shown in the next example.  
 
*** Sometimes the repository line has less information though, as shown in the next example.  
 
<pre><nowiki>
 
<pre><nowiki>
 
deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ </nowiki></pre>
 
deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ </nowiki></pre>
 
+
* The first two fields (deb and URI) are similar to the example above. However, the release-name is "./" so just put this (without the quotes) in the release field of Synaptic. It looks weird, but simply specifies the release as being whatever is in the directory given by the URI. Note that there is no '''section''' information so just leave that text field blank in the dialog box entry.
*** The first two fields (deb and URI) are similar to the example above. However, the release-name is "./" so just put this (without the quotes) in the release field of Synaptic. It looks weird, but simply specifies the release as being whatever is in the directory given by the URI. Note that there is no '''section''' information so just leave that text field blank in the dialog box entry.
+
 
+
 
<br>
 
<br>
 
----
 
----
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Applies to Ubuntu 5.10 and all earlier versions'''
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Applies to Ubuntu 5.10 and all earlier versions'''
 
 
* Save the changes and close the window by clicking '''OK'''.
 
* Save the changes and close the window by clicking '''OK'''.
 
* Update the list of avaible packages with '''Reload''' in the main window.
 
* Update the list of avaible packages with '''Reload''' in the main window.
 
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-reload.png
 
https://help.ubuntu.com/community/Repositories/Ubuntu/Breezy?action=AttachFile&do=get&target=breezy-reload.png
 
 
* '''Done!'''
 
* '''Done!'''
 
 
<br>
 
<br>
 
=== Apt line Syntax ===
 
=== Apt line Syntax ===
 
 
* Only the '''section''' information of the apt line is optional, and then only with respect to the repository maintainer. If section information is available, it must be specifed on the apt line. In this case, the section field should not be left blank.
 
* Only the '''section''' information of the apt line is optional, and then only with respect to the repository maintainer. If section information is available, it must be specifed on the apt line. In this case, the section field should not be left blank.
 
* If you make a mistake with the syntax in the fields you will get an error when you click the OK button in Synaptic. One cause is putting a trailing slash at the end of the URI. Also beware of leaving whitespaces at the beginning/end of the fields.
 
* If you make a mistake with the syntax in the fields you will get an error when you click the OK button in Synaptic. One cause is putting a trailing slash at the end of the URI. Also beware of leaving whitespaces at the beginning/end of the fields.
 
 
 
 
 
 
<br>
 
<br>
 
----
 
----

2007年11月30日 (五) 21:15的版本

Managing Repositories in Ubuntu

IconsPage?action=AttachFile&do=get&target=eyes.png Applies to: Ubuntu 5.10 (Breezy Badger) and earlier See the [[UbuntuHelp:../| Managing Repositories]] wiki page for instructions for the current version of Ubuntu.

Adding Universe and Multiverse

  • Depending on your version, select "Synaptic Package Manager" from the "Computer" > "System Configuration" or "System" > "Administration" menu.

Breezy?action=AttachFile&do=get&target=hoary-synaptic.png

  • Choose the Repositories item in the Settings menu

Breezy?action=AttachFile&do=get&target=breezy-syn-repos.png

  • A list of repositories is shown. Click the Settings button at the bottom and tick Show disabled software sources.

Breezy?action=AttachFile&do=get&target=breezy-checkbox.png

  • Click the Close button. You should now see checkboxes next to the repositories. Scroll down and enable the Universe repository by ticking the checkboxes next to the Community Maintained (Universe) entries. To enable the Multiverse repository, for each of the Community Maintained (Universe) entries click on the entry, click Edit, then change the entry for Sections from "universe" to "universe multiverse". Click OK to save your settings.

Breezy?action=AttachFile&do=get&target=breezy-universe.png

  • Save the changes and close the window by clicking OK.
  • Update the list of available packages with Reload in the Synaptic window.

Breezy?action=AttachFile&do=get&target=breezy-reload.png

  • Once the package list has been updated, packages from Universe and Multiverse can be installed.


Adding Outside Repositories


IconsPage?action=AttachFile&do=get&target=warning.png Note: some outside packages could [[UbuntuHelp:../#other| break your Ubuntu installation]].



  • As above, select "Synaptic Package Manager" from the "Computer" > "System Configuration" or "System" > "Administration" menu (depending on your Ubuntu version). In Synaptic, choose the Repositories item from the Settings menu.
  • You now see a window with a list of repositories.
    • Click New to add a repository.
      • Click Custom in the dialog box that appears.



IconsPage?action=AttachFile&do=get&target=eyes.png Applies to Ubuntu 5.10 (Breezy Badger) and 5.04 (Hoary Hedgehog) Paste the the apt line (repository information) into the dialog box that appears. Usually, the repository's maintainer will provide an apt line in a form like the following example:

deb http://www.grawert.net/ubuntu/ warty universe

Click OK.


IconsPage?action=AttachFile&do=get&target=eyes.png Applies to Ubuntu 4.10 (Warty Warthog)

  • You'll need to break the line down as follows:
    • deb means it is a binary, so use the drop-down list to choose binary. Normally this is the default setting.
      • `http://www.grawert.net/ubuntu/` is the URI (Uniform Resource Identifier), i.e. the location of the repository on the internet for example.
      • warty is the name of the distribution it applies to.
      • universe is the name of the section of the repository we are interested in. There can be several sections, seperated by spaces.
      • Sometimes the repository line has less information though, as shown in the next example.
deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ 
  • The first two fields (deb and URI) are similar to the example above. However, the release-name is "./" so just put this (without the quotes) in the release field of Synaptic. It looks weird, but simply specifies the release as being whatever is in the directory given by the URI. Note that there is no section information so just leave that text field blank in the dialog box entry.



IconsPage?action=AttachFile&do=get&target=eyes.png Applies to Ubuntu 5.10 and all earlier versions

  • Save the changes and close the window by clicking OK.
  • Update the list of avaible packages with Reload in the main window.

Breezy?action=AttachFile&do=get&target=breezy-reload.png

  • Done!


Apt line Syntax

  • Only the section information of the apt line is optional, and then only with respect to the repository maintainer. If section information is available, it must be specifed on the apt line. In this case, the section field should not be left blank.
  • If you make a mistake with the syntax in the fields you will get an error when you click the OK button in Synaptic. One cause is putting a trailing slash at the end of the URI. Also beware of leaving whitespaces at the beginning/end of the fields.