Debian Admin - Your way to Debian World

September 12, 2006

Adding Ubuntu Repositories

by @ 11:08 am. Filed under Package Mgmt

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Using sources.list file
If you want to add repositories for ubuntu you need to add in /etc/apt/sources.list file before adding any new repositories take backup of this file and add more repositories.

#cp -p /etc/apt/sources.list /etc/apt/sources.list_backup

#vi /etc/apt/sources.list

Replace everything with the following lines

To use your local mirror you can add “cc.” before archive.ubuntu.com (cc = your country code)

e.g. deb http://lv.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse

## Add comments (##) in front of any line to remove it from being checked.
## Use the following sources.list at your own risk.

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

## MAJOR BUG FIX UPDATES produced after the final release
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse

## UBUNTU SECURITY UPDATES
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse

## BACKPORTS REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
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

## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
deb http://packages.freecontrib.org/plf dapper free non-free
deb-src http://packages.freecontrib.org/plf dapper free non-free

## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
## servers. RealPlayer10, Opera and more to come.)
deb http://archive.canonical.com/ubuntu dapper-commercial main
Save the edited file
#apt-get update

If you want to generate youe own source list check here

Adding repositories Using Synaptic package management

go to System -> Administration -> Synaptic Package Manager

To enable the extra Universe and Multiverse repositories

Settings -> Repositories

In the Installation Media tab, click Add. There are three separate repositories; Dapper Drake, Security Updates and Updates. Select each repository and check Officially supported, Restricted copyright, Community maintained (Universe) and Non-free (Multiverse). Ensure you click OK between each repository to save your changes

You should now see those three repositories under Channels. Make sure Officially supported, Restricted copyright, Community maintained (Universe) and Non-free (Multiverse) appears under each repository

To add backports and PLF (new versions of many applications. Unsupported. May contain illegal packages. Use at own risk.)

Settings -> Repositories

Click on Add and then Custom

Paste the following four lines into the box and click Add Repository, one line at a time

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://packages.freecontrib.org/ubuntu/plf dapper free non-free
deb-src http://packages.freecontrib.org/ubuntu/plf dapper free non-free

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

To refresh the list of known packages (equivalent to apt-get update)

Edit Menu -> Reload Package Information

To install all possible upgrades (equivalent to apt-get upgrade)

Edit Menu -> Mark All Upgrades… -> Default Upgrade

Edit Menu -> Apply Marked Changes

To search for a package (equivalent to apt-cache search package_name)

Edit Menu -> Search… Specify the package name

To install the selected package (equivalent to apt-get install package_name)

Select “package_name”

Package Menu -> Mark for Installation

Edit Menu -> Apply Marked Changes

To remove installed package (equivalent to apt-get remove package_name)

Select “package_name”

Package Menu -> Mark for Removal

Edit Menu -> Apply Marked Changes

Tags: , , , ,

6 Responses to “Adding Ubuntu Repositories”

  1. Ross Says:

    Thanks,

    The best repository info I could find on the web.

    good work

  2. Eric Anderson Says:

    You may also need to set up the GPG key for apt. If you get an error like the following when using the new repository,that’s what’s going on.

    “GPG error: http://archive.ubuntu.com dapper Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5″

    To correct this, retrieve the GPG key:
    $ gpg –recv-keys 40976EAF437D05B5
    And then add it to apt-keys:
    $ gpg –export –armor 40976EAF437D05B5 | sudo apt-key add -

  3. Gord Fisch Says:

    Thanks so much. Installed studio64 (debian distro) and was trying to add ubuntu sources.

    Eric, I don’t know if it was the form interface, but the long dashes in front of the gpg commands should be –
    gpg –recv-keys 40976EAF437D05B5
    gpg –export –armor 40976EAF437D05B5 | sudo apt-key add -

  4. Gord Fisch Says:

    Hey, it did it to me too. that’s not a long dash, it’s a double dash. I’ll try again:
    gpg - -recv-keys 40976EAF437D05B5
    gpg - -export –armor 40976EAF437D05B5 | sudo apt-key add -

  5. pete greening Says:

    but more importantly… what do I need to use as a keyserver to get this bad boy 40976EAF437D05B5

  6. Krasimir Milchev Says:

    And if you get:

    gpg –recv-keys 40976EAF437D05B5
    gpg: no keyserver known (use option –keyserver)
    gpg: keyserver receive failed: bad URI

    you need to explicitly say which is the key server:

    gpg –keyserver keyserver.ubuntu.com –recv-keys 40976EAF437D05B5

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

Related Links:


Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.