<div dir="ltr">The sudo command runs 'echo' as root but the '>' redirection happens in your shell as your normal user.<div><br></div><div>Try this instead:</div><div>echo<span style="font-size:12.8px"> "deb </span><a href="http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6/" target="_blank" style="font-size:12.8px">http://files.freeswitch.org/<wbr>repo/ubuntu-1604/freeswitch-1.<wbr>6/</a><span style="font-size:12.8px"> xenial main" | sudo tee /etc/apt/sources.list.d/</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">freeswitch.list</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">tee will send the line to both stdout and the file, and since it's run as root will overwrite the file with permission to do so.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 January 2018 at 15:34, Ali Haider <span dir="ltr"><<a href="mailto:alihaider.4189@gmail.com" target="_blank">alihaider.4189@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hiii<br>how to solve<br>   sudo echo "deb <a href="http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6/" target="_blank">http://files.freeswitch.org/<wbr>repo/ubuntu-1604/freeswitch-1.<wbr>6/</a> xenial main" > /etc/apt/sources.list.d/<wbr>freeswitch.list<br>bash: /etc/apt/sources.list.d/<wbr>freeswitch.list: Permission denied<br><br></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>