Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I keep seeing places refer to the "partner" repository as a place I can get software, how can I enable this repository? Please specify how to do this graphically and via command line.

share|improve this question

8 Answers 8

up vote 27 down vote accepted

GUI Way:

Click on the ubuntu button, then search for "Software Sources" and go to the "Other Software" tab.

enter image description here

Command Line Way:

  • Open the sources.list file: gksudo gedit /etc/apt/sources.list
  • Add the partner repositories by removing the # in front of the following lines (maverick is the version of your Ubuntu installation, it may differ)

    # deb maverick partner
    # deb-src maverick partner

alt text

  • Save and Close.
  • Resynchronize the package index files from their sources: sudo apt-get update

  • Official documentation for reference

share|improve this answer
As of Ubuntu Precise, "Software Sources" is no longer accessible via the launcher. It has to be accessed through the menu (Edit => Edit software sources). –  Lekensteyn May 2 '12 at 21:02

The simplest way to enable "partner" repository:

sed -i "/^# deb .*partner/ s/^# //" /etc/apt/sources.list && apt-get update
share|improve this answer

To enable the partner repository from the command line, edit /etc/apt/sources.list:
sudoedit /etc/apt/sources.list and remove the # from the beginning of these two lines:

#deb maverick partner  
#deb-src maverick partner

So they are like this:

deb maverick partner  
deb-src maverick partner

Then update your apt cache: sudo apt-get update.

share|improve this answer

TERMINAL version, just copy and paste this commands to activate the partners repository (skype, etc):

DISTRO=`cat /etc/*-release | grep DISTRIB_CODENAME | sed 's/.*=//g'`
sudo sed -i 's/\(# \)\(deb .*ubuntu '${DISTRO}' partner\)/\2/g' /etc/apt/sources.list
sudo apt-get -y update

@ERGuille: FTFY, with a cleaner version

share|improve this answer

You may try this command also for enabling partner repositories,

sudo sh -c "echo deb $(lsb_release -c | awk '{print $2}') partner > /etc/apt/sources.list.d/canonical_partner.list"
share|improve this answer


sudo add-apt-repository "deb $(lsb_release -sc) partner"
share|improve this answer

This is how I did it within shell, I took the time for a little variation to increase stability, re-usability and idempotence (and not checking for the distro):

grep -qe '^# deb[- ].* partner$' /etc/apt/sources.list \
  && sudo sed -i"~$(date -%s)" 's/^# \(deb[- ].* parnter$\)/\1/' /etc/apt/sources.list
  • grep check: change file only if it is to change.
  • sed backup: keep timestamp'ed backups so you can go back in time.
  • handle both source and non-source.
  • use the name (last field) not the distro to identify the repositories.

Alternatives here:

In the end this might need another iteration or two. I hope next to the personal note on comments this was giving some useful summary.

share|improve this answer

TERMINAL just to make it easier, copy and paste this one command:

sed 's/\# deb http\:\/\/archive\.canonical\.com\/ubuntu natty partner/deb http\:\/\/archive\.canonical\.com\/ubuntu natty partner/' /etc/apt/sources.list | sed 's/\# deb-src http\:\/\/archive\.canonical\.com\/ubuntu natty partner/deb-src http\:\/\/archive\.canonical\.com\/ubuntu natty partner/' - > /tmp/newfile && sudo mv -f /tmp/newfile /etc/apt/sources.list

share|improve this answer
There are way easier and more elegant one-liners you could come up with. sed -i~ 's|^# *\(deb\(-src\)* http://archive\.canonical\.com/ubuntu natty partner|\1|' /etc/apt/sources.list uses a single regular expression, but creating a new file in /etc/apt/sources.list.d/ would be much better still. –  tripleee May 5 at 12:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.