I am new to linux, and just beginning to learn bash. I am using Ubuntu 9.04, and would like to add repositories to /etc/apt/sources.list from the command line. Basically, I would like to do this:
sudo echo "[some repository]" >> /etc/apt/sources.list
However, even when I use sudo, I get this error:
bash: /etc/apt/sources.list: Permission denied
How do I avoid this error?
/etc/apt/sources.list.d
rather than modifying/etc/apt/sources.list
. See stackoverflow.com/questions/1584066/… – Neil Mayhew Jan 8 at 19:04