SourcesList

Differences between revisions 2 and 7 (spanning 5 versions)
Revision 2 as of 2005-12-13 20:58:32
Size: 4808
Editor: c-24-2-76-178
Comment: included links to AptGetHowTo and SynapticHowTo
Revision 7 as of 2006-01-14 00:15:02
Size: 822
Editor: 65
Comment: cleanup of wiki per CategoryCleanup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== definition ==
The sources.list file works in conjunction with the apt-get command or Synaptic program to retrieve pre-built packages for installation. The file is basically the roadmap for apt-get/Synaptic to know where it may download programs for installation on your system.
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents(2)]]||
Line 4: Line 3:
For details on the apt-get system or the Synaptic Package Manager see: The sources.list is a key factor in adding or upgrading applications to your Ubuntu installation. This is also used by your system for system updates. The file is basically the roadmap for your system to know where it may download programs for installation or upgrade.
Line 6: Line 5:
["AptGetHowto"] Below are the preferred methods for updating/editing your sources.list & repositories:
Line 8: Line 7:
["SynapticHowto"] == Preferred Methods ==
This is the preferred method of adding repositories via a graphical interface.
Line 10: Line 10:
== location ==
Your sources.list file is found at: /etc/apt/sources.list. Access to this is generally found through use of the terminal:
["AddingRepositoriesHowto"]
Line 13: Line 12:
via GNOME:
{{{
sudo gedit /etc/apt/sources.list
}}}
via KDE
{{{
sudo knote /etc/apt/sources.list
}}}
generic / server
{{{
sudo nano /etc/apt/sources.list
}}}
This is the preferred method of adding repositories via a terminal-only (server) interface.
Line 26: Line 14:
== editing ==
It is up to you what you list in your sources.list file. Many outside parties have setup repositories for package distribution in addition to the base repositories supplied by Ubuntu. Each case is different, but unless you know what you're doing (and in that case, you're probably not reading this Wiki) you should stick to the basics below.

To manually edit your sources.list file use one of the commands above & copy/paste the appropriate template below to replace the contents of your current file.

If you are not comfortable manually editing your file you may also try the following steps:

System > Administration > Synaptic Package Manager : {enter password}

Settings : Repositories : Add

Check "Community Maintained (Universe)"

Check "Non-free (Multiverse)"

All four boxes should be checked at this point. This will cause Synaptic to update to the added lists and, if applicable, clicking "Apply" will apply available updates.

== common template ==
Below is a common sources.list file that will give you access to most additional programs you need. Be sure to backup your original list before making any changes! This can be done, again from the terminal, by:
{{{
sudo cp /etc/apt/sources.list etc/apt/sources.list.backup
}}}

Basic sources.list including updates, security, ubuntu supported & community supported.

5.10 Breezy
{{{
# Ubuntu supported packages (packages/source)
deb http://archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://archive.ubuntu.com/ubuntu breezy main restricted
deb http://archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu breezy-updates main restricted
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

# Ubuntu community supported packages (packages/source)
deb http://archive.ubuntu.com/ubuntu breezy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu breezy universe multiverse
deb http://archive.ubuntu.com/ubuntu breezy-updates universe multiverse
deb-src http://archive.ubuntu.com/ubuntu breezy-updates universe multiverse
deb http://security.ubuntu.com/ubuntu breezy-security universe multiverse
deb-src http://security.ubuntu.com/ubuntu breezy-security universe multiverse
}}}

5.04 Hoary
{{{
# Ubuntu supported packages (packages/source)
deb http://archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://archive.ubuntu.com/ubuntu hoary main restricted
deb http://archive.ubuntu.com/ubuntu hoary-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu hoary-updates main restricted
deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted

# Ubuntu community supported packages (packages)
deb http://archive.ubuntu.com/ubuntu hoary universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary universe multiverse
deb http://archive.ubuntu.com/ubuntu hoary-updates universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary-updates universe multiverse
deb http://security.ubuntu.com/ubuntu hoary-security universe multiverse
deb-src http://security.ubuntu.com/ubuntu hoary-security universe multiverse
}}}

== backports ==
Many users also include the Ubuntu Backports:

(The Ubuntu backports project provides packages from the development version, built for the latest stable release. This way you can mix stability with being on the bleeding edge. Use with care.)

Breezy 5.10
{{{
# Ubuntu backports project (packages/source)
deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
}}}

Hoary 5.04
{{{
# Ubuntu backports project (packages/source)
deb http://archive.ubuntu.com/ubuntu hoary-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary-backports main restricted universe multiverse
}}}
["AddingRepositoriesCliHowto"]
----
CategoryCleanup

The sources.list is a key factor in adding or upgrading applications to your Ubuntu installation. This is also used by your system for system updates. The file is basically the roadmap for your system to know where it may download programs for installation or upgrade.

Below are the preferred methods for updating/editing your sources.list & repositories:

Preferred Methods

This is the preferred method of adding repositories via a graphical interface.

["AddingRepositoriesHowto"]

This is the preferred method of adding repositories via a terminal-only (server) interface.

["AddingRepositoriesCliHowto"]


CategoryCleanup

SourcesList (last edited 2008-08-06 16:19:58 by localhost)