4/10/2023 0 Comments Gedit etc apt sources.list![]() You can then revert your changes if needed. ![]() It is always a good idea to back up configuration files like /etc/apt/sources.list before you begin editing. This section seemed obsolete due to the add-apt-repository command, thus it has been removed. On older or minimal Ubuntu releases, you may have to install software-properties-common and/or python-software-properties first (sudo apt-get install python-software-properties) sudo add-apt-repository ppa:Įxample: sudo add-apt-repository ppa:nhandler/ppaĮnabling Repositories with a (non-interactive) Script If a public key is required and available it is automatically downloaded and registered.Type man add-apt-repository for detailed help. The command updates your sources.list file or adds/edits files under /. This command is similar to "addrepo" on Debian. Don't forget to make apt aware of your changes: sudo apt-get updateĪdding Launchpad PPA (Personal Package Archive) is possible conveniently via the command: add-apt-repository.It should look something like this: deb hardy-seveas freenx You can add custom software repositories by adding the apt repository line of your software source to the end of the sources.list file. Caution: To avoid trouble with your sytem, only add repositories that are trustworthy and that are known to work on Ubuntu systems! There are some reasons for which you might want to add non-Ubuntu repositories to your list of software sources. You can add the partner repositories by uncommenting the following lines in your /etc/apt/sources.list file:īe aware that the software contained within this repository is NOT open source. You may repeat the commands with "deb-src" instead of "deb" in order to install the source files.ĭon't forget to retrieve the updated package lists: Type lsb_release -sc to find out your release. Sudo add-apt-repository "deb saucy-updates universe multiverse"ĭepending on your location, you should replace 'us.' by another country code, referring to a mirror server in your region. sudo add-apt-repository "deb saucy universe multiverse".OR you may use the add-apt-repository command. There are four similar lines for 'multiverse'. delete the '#' at the beginning of the line). ) Type lsb_release -sc to find out your release.Īdding the Universe and Multiverse RepositoriesĪdditional software repositories such as Universe and Multiverse can be enabled by uncommenting the corresponding apt lines (i.e. There can be several section names, separated by spaces.įor other Ubuntu releases you would replace the 'saucy' with the current version you have installed ('precise', 'quantal', 'raring', 'saucy', 'trusty'. Main & restricted are the section names or components. Saucy is the release name or version of your distribution. See the official mirror list or the self-maintained mirror list to find other mirrors. : The URI (Uniform Resource Identifier), in this case a location on the internet. These repositories are required for most users.ĭeb-src: These repositories contain the source code of the packages. Here's what they say:ĭeb: These repositories contain binaries or precompiled packages. The lines without hashes are apt repository lines. All the lines beginning with one or two hashes (#) are comments, for information only. ![]() Typically, the beginning of the file /etc/apt/sources.list looks like this: To do so, issue the following command: sudo cp /etc/apt/sources.list /etc/apt/ Note: It's always a good idea to backup a configuration file like sources.list before you edit it. See man sources.list for more about this storage mechanism.īy editing these files from the command line, we can add, remove, or temporarily disable software repositories. Apt stores a list of repositories or software channels in the file /etc/apt/sources.listĪnd in any file with the suffix. If you are using a GUI install you can use Nano or GEdit. If you are using a minimal install or server install you will need to be familiar with a terminal based text editor like nano. (GUI tools are also available: Managing Repositories in Ubuntu or Kubuntu). This page describes how to manage software repositories from the command line. Enabling Repositories with a (non-interactive) Script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |