[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: about installing Java



On Sat, Feb 14, 2015 at 01:22:52AM +1300, Richard Hector wrote:
> On 13/02/15 16:54, Jack Chuge wrote:
> 
[cut]
> 
> Alternatively, when you used this line:
> echo "deb ..." | tee /etc/apt/...java.list
> 
> did you put sudo in front of tee as well? Like this:
> sudo echo "deb ..." | sudo tee /etc/apt/...java.list

There's no reason to run "echo" as root. Most unprivileged users should
be quite capable of echoing text.

> 
> Otherwise, I think tee won't run as root, and therefore won't be able
> to write to the file. That might be why it couldn't find the packages.
> 
> I think I'd use the first option - get a root shell.
> 
> Richard
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 54DDEC9C.5040400@walnut.gen.nz">https://lists.debian.org/[🔎] 54DDEC9C.5040400@walnut.gen.nz
> 

Attachment: signature.asc
Description: Digital signature


Reply to: