个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Repositories/CommandLine}}
 
{{From|https://help.ubuntu.com/community/Repositories/CommandLine}}
 
{{Languages|UbuntuHelp:Repositories/CommandLine}}
 
{{Languages|UbuntuHelp:Repositories/CommandLine}}
 
 
 
 
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=terminal.png This page describes how to manage software [[UbuntuHelp:Repositories|repositories]] from the command line. This is useful if you prefer not to use (or are unable to access) a graphical user interface. Also, it may come in handy as it works uniformly across all versions of Ubuntu.
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=terminal.png This page describes how to manage software [[UbuntuHelp:Repositories|repositories]] from the command line. This is useful if you prefer not to use (or are unable to access) a graphical user interface. Also, it may come in handy as it works uniformly across all versions of Ubuntu.
 
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png The instructions on this page assume that you are comfortable using a text editor like GEdit or [[UbuntuHelp:NanoHowto|nano]].
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png The instructions on this page assume that you are comfortable using a text editor like GEdit or [[UbuntuHelp:NanoHowto|nano]].
 
'''Using the graphical interface to manage software repositories is recommended''', see [[UbuntuHelp:../Ubuntu|Managing Repositories in Ubuntu]] or [[UbuntuHelp:../Kubuntu|Kubuntu]] instead.
 
'''Using the graphical interface to manage software repositories is recommended''', see [[UbuntuHelp:../Ubuntu|Managing Repositories in Ubuntu]] or [[UbuntuHelp:../Kubuntu|Kubuntu]] instead.
 
 
 
=== Background Information ===
 
=== Background Information ===
 
 
Ubuntu uses [http://www.debian.org/doc/user-manuals#apt-howto apt] for package management. Apt stores a list of repositories or software channels in the file  
 
Ubuntu uses [http://www.debian.org/doc/user-manuals#apt-howto apt] for package management. Apt stores a list of repositories or software channels in the file  
 
<pre><nowiki>
 
<pre><nowiki>
 
/etc/apt/sources.list</nowiki></pre>
 
/etc/apt/sources.list</nowiki></pre>
 
 
By editing this file from the command line, we can add, remove, or temporarily disable software repositories.
 
By editing this file from the command line, we can add, remove, or temporarily disable software repositories.
 
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Note:''' It's always a good idea to backup a configuration file like '''sources.list''' before you edit it. To do so, issue the following command:
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Note:''' It's always a good idea to backup a configuration file like '''sources.list''' before you edit it. To do so, issue the following command:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
 
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
 
</nowiki></pre>
 
</nowiki></pre>
 
 
<br>
 
<br>
 
Typically, the contents of the ''/etc/apt/sources.list'' file may look something like this:
 
Typically, the contents of the ''/etc/apt/sources.list'' file may look something like this:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
deb http://archive.ubuntu.com/ubuntu dapper main restricted
 
deb http://archive.ubuntu.com/ubuntu dapper main restricted
 
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
 
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
 
 
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
 
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
 
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted
 
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted
 
 
# deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
 
# deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
 
# deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse
 
# deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse
 
 
# deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
 
# deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
 
# deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse  
 
# deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse  
第42行: 第27行:
 
# deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
 
# deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
 
</nowiki></pre>  
 
</nowiki></pre>  
 
 
 
 
=== Explanation of the Repository Format ===
 
=== Explanation of the Repository Format ===
 
 
* All the lines beginning with one or two hashes (#) are comments and do not get read by apt or its front-ends apt-get, Synaptic, and Adept.
 
* All the lines beginning with one or two hashes (#) are comments and do not get read by apt or its front-ends apt-get, Synaptic, and Adept.
 
 
* The lines without hashes are ''apt repository lines''. The first two apt lines in our example are
 
* The lines without hashes are ''apt repository lines''. The first two apt lines in our example are
 
<pre><nowiki>
 
<pre><nowiki>
第54行: 第34行:
 
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
 
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
 
</nowiki></pre>
 
</nowiki></pre>
 
 
* Here's what they say:
 
* Here's what they say:
 
 
** '''deb''': These repositories contain binaries or precompiled packages. These repositories are required for most users.
 
** '''deb''': These repositories contain binaries or precompiled packages. These repositories are required for most users.
 
** '''deb-src''': These repositories contain the source code of the packages. Useful for developers.  
 
** '''deb-src''': These repositories contain the source code of the packages. Useful for developers.  
第62行: 第40行:
 
** '''dapper''' is the release name or version of your distribution.
 
** '''dapper''' is the release name or version of your distribution.
 
** '''main''' & '''restricted''' are the section names or [[what components]]. There can be several section names, separated by spaces.  
 
** '''main''' & '''restricted''' are the section names or [[what components]]. There can be several section names, separated by spaces.  
 
 
 
 
=== Adding the Universe and Multiverse Repositories ===
 
=== Adding the Universe and Multiverse Repositories ===
 
 
Additional software repositories such as [[what Universe and Multiverse]] can be enabled by uncommenting the corresponding apt line (i.e. delete the '#' at the beginning of the line). In our example, we would uncomment the following lines:
 
Additional software repositories such as [[what Universe and Multiverse]] can be enabled by uncommenting the corresponding apt line (i.e. delete the '#' at the beginning of the line). In our example, we would uncomment the following lines:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
 
deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
 
deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse
 
deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse
 
</nowiki></pre>
 
</nowiki></pre>
 
 
and, if security fixes and updates are enabled for Main and Restricted, we'd also add the following lines, to make sure we get upgrades for our Universe and Multiverse packages (not doing so '''may result in version mismatch''' when installing or upgrading packages):
 
and, if security fixes and updates are enabled for Main and Restricted, we'd also add the following lines, to make sure we get upgrades for our Universe and Multiverse packages (not doing so '''may result in version mismatch''' when installing or upgrading packages):
 
 
<pre><nowiki>
 
<pre><nowiki>
 
deb http://archive.ubuntu.com/ubuntu dapper-security universe multiverse
 
deb http://archive.ubuntu.com/ubuntu dapper-security universe multiverse
第82行: 第53行:
 
deb-src http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse
 
deb-src http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse
 
</nowiki></pre>
 
</nowiki></pre>
 
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png If you want to enable only Universe but not Multiverse, delete the word 'multiverse' from the lines.
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png If you want to enable only Universe but not Multiverse, delete the word 'multiverse' from the lines.
 
 
Once you are satisfied with your choices, save the file. Now, retrieve the updated package lists from the newly added repositories by issuing the following command:
 
Once you are satisfied with your choices, save the file. Now, retrieve the updated package lists from the newly added repositories by issuing the following command:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get update
 
sudo apt-get update
 
</nowiki></pre>
 
</nowiki></pre>
 
 
'''Done!''' Your system is ready to install packages from the Universe and Multiverse repositories.
 
'''Done!''' Your system is ready to install packages from the Universe and Multiverse repositories.
 
 
=== Adding Commercial Repository ===
 
=== Adding Commercial Repository ===
 
 
With Feisty (7.04) there is now a repository specially for commercial software.  You can add it with following line in your /etc/apt/sources.list file:
 
With Feisty (7.04) there is now a repository specially for commercial software.  You can add it with following line in your /etc/apt/sources.list file:
 
<pre><nowiki>
 
<pre><nowiki>
 
deb http://archive.canonical.com/ubuntu feisty-commercial main
 
deb http://archive.canonical.com/ubuntu feisty-commercial main
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Then update as before:
 
Then update as before:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get update
 
sudo apt-get update
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Be aware that the software contained within this repository is NOT open source.
 
Be aware that the software contained within this repository is NOT open source.
 
 
=== Adding Other Repositories ===
 
=== Adding Other Repositories ===
 
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=warning.png '''Note:''' There are some (but not many) good reasons for which you might want to add non-Ubuntu repositories to your list of software sources. Some software cannot be distributed by Ubuntu due to patent and licensing restrictions in some countries (see the RestrictedFormats page for examples). You might want to add repositories that offer such software. Make sure that '''all''' repositories you add in this way have been tested and are known to work on Ubuntu systems. Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install.
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=warning.png '''Note:''' There are some (but not many) good reasons for which you might want to add non-Ubuntu repositories to your list of software sources. Some software cannot be distributed by Ubuntu due to patent and licensing restrictions in some countries (see the RestrictedFormats page for examples). You might want to add repositories that offer such software. Make sure that '''all''' repositories you add in this way have been tested and are known to work on Ubuntu systems. Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install.
 
----
 
----
 
 
* You can add custom software repositories by adding the apt repository line of your software source to the list of repositories. It should look somehting like this:
 
* You can add custom software repositories by adding the apt repository line of your software source to the list of repositories. It should look somehting like this:
 
<pre><nowiki>
 
<pre><nowiki>
 
deb http://mirror3.ubuntulinux.nl/ dapper-seveas freenx
 
deb http://mirror3.ubuntulinux.nl/ dapper-seveas freenx
 
</nowiki></pre>
 
</nowiki></pre>
 
 
* Add the line at the end of your '''sources.list''' and save the file.  
 
* Add the line at the end of your '''sources.list''' and save the file.  
 
 
* Next, make apt aware of the new software repositories by issuing the following command:
 
* Next, make apt aware of the new software repositories by issuing the following command:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get update
 
sudo apt-get update
 
</nowiki></pre>
 
</nowiki></pre>
 
 
* '''Done!''' The new software repositories should now be available for use.  
 
* '''Done!''' The new software repositories should now be available for use.  
 
 
 
 
=== Enabling Repositories with a (non-interactive) Script ===
 
=== Enabling Repositories with a (non-interactive) Script ===
 
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png This section is directed at advanced users.
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png This section is directed at advanced users.
 
 
'''Problem:''' You are looking for a way to enable the extra repositories without any user input. <br> '''Example:''' You are creating a custom install script for an application that needs software packages from the Universe or Multiverse repositories. <br> What follows is a simple script that enables the extra repositories that are commented out on a default install of Ubuntu 6.06 LTS.
 
'''Problem:''' You are looking for a way to enable the extra repositories without any user input. <br> '''Example:''' You are creating a custom install script for an application that needs software packages from the Universe or Multiverse repositories. <br> What follows is a simple script that enables the extra repositories that are commented out on a default install of Ubuntu 6.06 LTS.
 
 
* First, save your original sources.list file.
 
* First, save your original sources.list file.
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /etc/apt/sources.list /etc/apt/sources.list.orig
 
sudo cp /etc/apt/sources.list /etc/apt/sources.list.orig
 
</nowiki></pre>
 
</nowiki></pre>
 
 
* Now make the changes to uncomment all respositories listed in the sources.list file.
 
* Now make the changes to uncomment all respositories listed in the sources.list file.
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo sed -i -e "s/# deb/deb/g" /etc/apt/sources.list
 
sudo sed -i -e "s/# deb/deb/g" /etc/apt/sources.list
 
</nowiki></pre>
 
</nowiki></pre>
 
 
* Make apt aware of the new software repositories by issuing the following command:
 
* Make apt aware of the new software repositories by issuing the following command:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get update
 
sudo apt-get update
 
</nowiki></pre>
 
</nowiki></pre>
 
 
* '''Done!''' The new software repositories should now be available for use.  
 
* '''Done!''' The new software repositories should now be available for use.  
 
 
 
 
 
 
=== Suggestions & Recommendations ===
 
=== Suggestions & Recommendations ===
 
 
* It is always a good idea to '''back up''' configuration files like '''/etc/apt/sources.list''' before you begin editing. You can then revert your changes if needed. If things go badly wrong, head over to http://www.ubuntulinux.nl/source-o-matic and let the script create a new '''sources.list''' file for you.
 
* It is always a good idea to '''back up''' configuration files like '''/etc/apt/sources.list''' before you begin editing. You can then revert your changes if needed. If things go badly wrong, head over to http://www.ubuntulinux.nl/source-o-matic and let the script create a new '''sources.list''' file for you.
 
 
* If you decide to add other repositories to sources.list, make sure that the repository is '''meant to work (and known to work)''' with Ubuntu. Repositories that are '''not designed to work with your version of Ubuntu''' can introduce inconsistencies in your system and might force you to re-install. Also, make sure that you really need to add external repositories as the software package(s) you are looking for may already have been introduced into the official repositories!
 
* If you decide to add other repositories to sources.list, make sure that the repository is '''meant to work (and known to work)''' with Ubuntu. Repositories that are '''not designed to work with your version of Ubuntu''' can introduce inconsistencies in your system and might force you to re-install. Also, make sure that you really need to add external repositories as the software package(s) you are looking for may already have been introduced into the official repositories!
 
 
* Please keep in mind that it may not be legal to enable some ''non-Ubuntu'' software repositories in some countries.
 
* Please keep in mind that it may not be legal to enable some ''non-Ubuntu'' software repositories in some countries.
 
 
* You may be asked enter a security key when adding a non-Ubuntu repository to your sources. See [[UbuntuHelp:Repositories/Ubuntu?action=show#head-589d9639c60888f17e3d660b375340777b436077|Managing Authentication Keys]] for instructions.
 
* You may be asked enter a security key when adding a non-Ubuntu repository to your sources. See [[UbuntuHelp:Repositories/Ubuntu?action=show#head-589d9639c60888f17e3d660b375340777b436077|Managing Authentication Keys]] for instructions.
 
 
* Remember to retrieve updated package lists by issuing a '''sudo apt-get update''' when you're done editing '''sources.list'''.
 
* Remember to retrieve updated package lists by issuing a '''sudo apt-get update''' when you're done editing '''sources.list'''.
 
 
 
 
=== Further Reading ===
 
=== Further Reading ===
 
 
 
* [http://www.debian.org/doc/manuals/apt-howto/index.en.html The Debian Apt User Manual]
 
* [http://www.debian.org/doc/manuals/apt-howto/index.en.html The Debian Apt User Manual]
 
 
* [[UbuntuHelp:AptGetHowto|Apt-get]]  
 
* [[UbuntuHelp:AptGetHowto|Apt-get]]  
 
 
* [[UbuntuHelp:SoftwareManagement|Software Management]]
 
* [[UbuntuHelp:SoftwareManagement|Software Management]]
 
 
* [http://wiki.debian.org/SecureApt Secure Apt] on the Debian Wiki
 
* [http://wiki.debian.org/SecureApt Secure Apt] on the Debian Wiki
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

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


IconsPage?action=AttachFile&do=get&target=terminal.png This page describes how to manage software repositories from the command line. This is useful if you prefer not to use (or are unable to access) a graphical user interface. Also, it may come in handy as it works uniformly across all versions of Ubuntu. IconsPage?action=AttachFile&do=get&target=eyes.png The instructions on this page assume that you are comfortable using a text editor like GEdit or nano. Using the graphical interface to manage software repositories is recommended, see [[UbuntuHelp:../Ubuntu|Managing Repositories in Ubuntu]] or [[UbuntuHelp:../Kubuntu|Kubuntu]] instead.

Background Information

Ubuntu uses apt for package management. Apt stores a list of repositories or software channels in the file

/etc/apt/sources.list

By editing this file from the command line, we can add, remove, or temporarily disable software repositories. IconsPage?action=AttachFile&do=get&target=eyes.png Note: It's always a good idea to backup a configuration file like sources.list before you edit it. To do so, issue the following command:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup


Typically, the contents of the /etc/apt/sources.list file may look something like this:

deb http://archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted
# deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse
# deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse 
# deb http://security.ubuntu.com/ubuntu breezy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

Explanation of the Repository Format

  • All the lines beginning with one or two hashes (#) are comments and do not get read by apt or its front-ends apt-get, Synaptic, and Adept.
  • The lines without hashes are apt repository lines. The first two apt lines in our example are
deb http://archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
  • Here's what they say:
    • deb: These repositories contain binaries or precompiled packages. These repositories are required for most users.
    • deb-src: These repositories contain the source code of the packages. Useful for developers.
    • http://archive.ubuntu.com/ubuntu: The URI (Uniform Resource Identifier), in this case a location on the internet. See the official mirror list or the self-maintained mirror list to find other mirrors.
    • dapper is the release name or version of your distribution.
    • main & restricted are the section names or what components. There can be several section names, separated by spaces.

Adding the Universe and Multiverse Repositories

Additional software repositories such as what Universe and Multiverse can be enabled by uncommenting the corresponding apt line (i.e. delete the '#' at the beginning of the line). In our example, we would uncomment the following lines:

deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse

and, if security fixes and updates are enabled for Main and Restricted, we'd also add the following lines, to make sure we get upgrades for our Universe and Multiverse packages (not doing so may result in version mismatch when installing or upgrading packages):

deb http://archive.ubuntu.com/ubuntu dapper-security universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-security universe multiverse
deb http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse

IconsPage?action=AttachFile&do=get&target=eyes.png If you want to enable only Universe but not Multiverse, delete the word 'multiverse' from the lines. Once you are satisfied with your choices, save the file. Now, retrieve the updated package lists from the newly added repositories by issuing the following command:

sudo apt-get update

Done! Your system is ready to install packages from the Universe and Multiverse repositories.

Adding Commercial Repository

With Feisty (7.04) there is now a repository specially for commercial software. You can add it with following line in your /etc/apt/sources.list file:

deb http://archive.canonical.com/ubuntu feisty-commercial main

Then update as before:

sudo apt-get update

Be aware that the software contained within this repository is NOT open source.

Adding Other Repositories

IconsPage?action=AttachFile&do=get&target=warning.png Note: There are some (but not many) good reasons for which you might want to add non-Ubuntu repositories to your list of software sources. Some software cannot be distributed by Ubuntu due to patent and licensing restrictions in some countries (see the RestrictedFormats page for examples). You might want to add repositories that offer such software. Make sure that all repositories you add in this way have been tested and are known to work on Ubuntu systems. Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install.


  • You can add custom software repositories by adding the apt repository line of your software source to the list of repositories. It should look somehting like this:
deb http://mirror3.ubuntulinux.nl/ dapper-seveas freenx
  • Add the line at the end of your sources.list and save the file.
  • Next, make apt aware of the new software repositories by issuing the following command:
sudo apt-get update
  • Done! The new software repositories should now be available for use.

Enabling Repositories with a (non-interactive) Script

IconsPage?action=AttachFile&do=get&target=eyes.png This section is directed at advanced users. Problem: You are looking for a way to enable the extra repositories without any user input.
Example: You are creating a custom install script for an application that needs software packages from the Universe or Multiverse repositories.
What follows is a simple script that enables the extra repositories that are commented out on a default install of Ubuntu 6.06 LTS.

  • First, save your original sources.list file.
sudo cp /etc/apt/sources.list /etc/apt/sources.list.orig
  • Now make the changes to uncomment all respositories listed in the sources.list file.
sudo sed -i -e "s/# deb/deb/g" /etc/apt/sources.list
  • Make apt aware of the new software repositories by issuing the following command:
sudo apt-get update
  • Done! The new software repositories should now be available for use.

Suggestions & Recommendations

  • It is always a good idea to back up configuration files like /etc/apt/sources.list before you begin editing. You can then revert your changes if needed. If things go badly wrong, head over to http://www.ubuntulinux.nl/source-o-matic and let the script create a new sources.list file for you.
  • If you decide to add other repositories to sources.list, make sure that the repository is meant to work (and known to work) with Ubuntu. Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install. Also, make sure that you really need to add external repositories as the software package(s) you are looking for may already have been introduced into the official repositories!
  • Please keep in mind that it may not be legal to enable some non-Ubuntu software repositories in some countries.
  • You may be asked enter a security key when adding a non-Ubuntu repository to your sources. See Managing Authentication Keys for instructions.
  • Remember to retrieve updated package lists by issuing a sudo apt-get update when you're done editing sources.list.

Further Reading