主要是由于环境变量设置出了问题,修改/etc/environment即可。 sudo nano /etc/environment 修改后source /etc/environment 转载于:https://www.cnblogs.com/xby1993/p/3162379.html