here is a solution, use visudo to edit /etc/sudoers file, and change this line
from:
Defaults env_reset
to
Defaults !env_reset
and solved this problem.
** Also affects: sudo (Ubuntu)
Importance: Undecided
Status: New
--
gksudo --preserve-env can't keep environment variables
https://bugs.launchpad.net/bugs/207167
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs