How to Edit Ubuntu Repositories

Has a website told you to add a Ubuntu Repository? Then follow these Steps. Any changes require you to be in the 'sudo' user group and have your password handy. Open the Ubuntu Software Centre.
Method 1 of 2:

Disable and Enable "Ubuntu Software" Repositories

  1. How to Edit Ubuntu Repositories Picture 1How to Edit Ubuntu Repositories Picture 1
    Open the Ubuntu Software Centre.
  2. How to Edit Ubuntu Repositories Picture 2How to Edit Ubuntu Repositories Picture 2
    Click on "Edit". If you can't see it, try hovering over "Ubuntu Software Centre".
  3. How to Edit Ubuntu Repositories Picture 3How to Edit Ubuntu Repositories Picture 3
    Click on "Software Sources...".
  4. How to Edit Ubuntu Repositories Picture 4How to Edit Ubuntu Repositories Picture 4
    If you want to enable/disable "Ubuntu Software" Repositories, just check/uncheck the tick boxes to the right of each repository entry. A minus (-) like the default setting for "Source Code" means only part of it is enabled (by the way, source code means "let me download source code for all my "Ubuntu Software" repositories"). To add/remove/edit/enable/disable a different repository, continue to Method 2.
Method 2 of 2:

Add/remove/edit/enable/disable "Other Software" Repositories

  1. How to Edit Ubuntu Repositories Picture 5How to Edit Ubuntu Repositories Picture 5
    Click "Other Software" to open the "Other Software" section
  2. How to Edit Ubuntu Repositories Picture 6How to Edit Ubuntu Repositories Picture 6
    Tick the check box next to a repository to enable the respective repository, and Vice Versa (uncheck the box to disable the repository).
  3. How to Edit Ubuntu Repositories Picture 7How to Edit Ubuntu Repositories Picture 7
    To remove a repository, click it's entry in the list and then click the button labeled "Remove".
  4. How to Edit Ubuntu Repositories Picture 8How to Edit Ubuntu Repositories Picture 8
    To add a CD, click "Add Volume..." and Ubuntu will add the inserted disk. To add a regular repository click "Add..." and Paste or type in the APT Line into the text box. Then Press enter. After adding a repository, the Ubuntu Software Centre will start updating your local cache of software.
  5. How to Edit Ubuntu Repositories Picture 9How to Edit Ubuntu Repositories Picture 9
    You can Edit an entry, but we recommend Removing it and then Adding it with the new details.However, if you really want to, click the entry and click "Edit...". You will then be greeted with a prompt to enter the Repository information.
  6. How to Edit Ubuntu Repositories Picture 10How to Edit Ubuntu Repositories Picture 10
    If you need to add a Signing Key, click on "Authentication". Then click on "Import Key File..." and select the file.
  7. How to Edit Ubuntu Repositories Picture 11How to Edit Ubuntu Repositories Picture 11
    When you are done, click Close.
5 ★ | 1 Vote