Why does add-apt-repository fail to add source repositories?
Posted
by
Lorin Hochstein
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Lorin Hochstein
Published on 2012-07-06T16:18:05Z
Indexed on
2012/07/07
3:22 UTC
Read the original article
Hit count: 468
apt
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
© Ask Ubuntu or respective owner