add-apt-repository throws an error if I try to add a source repository:
This works:
sudo add-apt-repository 'deb http://dl.ajaxplorer.info/repos/apt squeeze main'
This fails with an error:
sudo add-apt-repository 'deb-src http://dl.ajaxplorer.info/repos/apt squeeze main'
Error: 'deb-src http://dl.ajaxplorer.info/repos/apt squeeze main' invalid
Leaving off the quotes doesn't help:
sudo add-apt-repository deb-src http://dl.ajaxplorer.info/repos/apt squeeze main
Error: need a repository as argument
If you want to add your repo as source repo as well you have to put the -s flag in the command line:
And thats all.
This will add:
and
as well.
The man page for
apt-add-repository
says (emphasis added):Now, while
deb-src
is a legal type forsources.list
and you may wish to file a bug, it appears that this will do the job just as well, since GPG keys are only downloaded for PPAs: