echo bug?
Shannon McMackin
smcmackin at gmail.com
Sat Sep 12 14:03:57 UTC 2009
On 09/11/2009 11:02 PM, Derek Broughton wrote:
> Jay Daniels wrote:
>
>> Why doesn't this work???
>>
>>
>> sudo echo "deb http://ppa.launchpad.net/gwibber-team/ubuntu hardy main"
>>> /etc/apt/sources.list.d/gwibber.list
>> bash: /etc/apt/sources.list.d/gwibber.list: Permission denied
>>
>>
>> Now I thought sudo was the equivalent to root permissions?
>
> Yes, but the redirection isn't happening in the same environment. I'm sure
> there's some way to do it, but I just "sudo -i" if I need to do it.
>
> And Shannon said:
>> Appears he's trying an easy way to add a line to an apt-repo file.
>>
>> Can you do a sudo vi of that file?
>
> And that's an _easy_ way? :-)
>
> In this case, I'd use synaptic.
So, if I use synaptic or software sources, that appends to my primary
sources.list file, which is fine for me and probably many others. Is
there a way in synaptic to indicate a repo file as the OP was trying to
modify?
More information about the ubuntu-users
mailing list