Ühel kenal päeval, T, 03.07.2018 kell 14:00, kirjutas gevisz:
> Are you, by any chance, running this command through something like
> > lxc-attach or ssh?
> > I had the exact same problem two days ago and it turned out to be
> > something about the
> > environment being passed to the remote system. Sourcing
> > /etc/profile did the trick.
> 
> No, I do it on my desktop staying just in front of me.
> So, no need for ssh (and I do not know what lxc-attach is at all).
> 
> Still, sourcing /etc/profile somehow helped:

How do you obtain root privileges for the command?

If you use su, you should be using "su -" (or "su -l" or "su --login"), 
not "su".

If you use sudo, you might need to pass -i (--login) option to it.

And I mean that in general, not just for overcoming this error.


Mart

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to