Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install Percona Xtrabackup to my Ubuntu 12.04 LTS insatlled on Amazon EC2. I am trying to follow instruction on the Xtrabackup installation page here. The instruction follows as

Add this to /etc/apt/sources.list, replacing squeeze with the name of your distribution:

deb squeeze main
deb-src squeeze main

In my case I will replace squeeze with precise but when I open /etc/apt/sources.list for editing it says the following

enter image description here

It is suggestion three alternatives instead of editing which are listed a.), b.) and c.).

My Question

What should I do to install Percona Xtrabackup to my box?

share|improve this question
up vote 1 down vote accepted

In general, it's more elegant to create a new file in the sources.list.d directory. It should have the 'extension' .list though. Just create a new file for example /etc/apt/sources.list.d/percona.list to contain

deb precise main
deb-src precise main

And don't forget to follow the rest of the instructions (GPG APT key, update).

For Amazon EC2 you actually ought to do so apparently, as explained perfectly in the comment you posted.

It's more elegant, because .d directories are meant for users to put their own part of the configuration in there and scripts modifying this when running dist-upgrades for example are less likely to break.

share|improve this answer

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.